Git Product home page Git Product logo

Comments (5)

nitriques avatar nitriques commented on May 17, 2024

The class is in the core since 2.6.0 https://github.com/symphonycms/symphony-2/blob/1ff58f8c82c5da4900616647c4aa494e651fa6ec/symphony/lib/toolkit/class.jsonpage.php

What about changing this line for jsonpage.php ?

from mailchimp.

beaubbe avatar beaubbe commented on May 17, 2024

Ir down not seem to change anything. There is still an error in JSONPage of the core. Here is the error message. $this->_Result['status'] does not exists when trying to set a value.

Symphony Warning: Illegal string offset 'status'
An error occurred in /home/dev/public_html/fcma/symphony/lib/toolkit/class.jsonpage.php around line 59
54 * @return string
55 */
56 public function generate($page = null)
57 {
58 // Set the actual status code in the xml response
59 $this->_Result['status'] = $this->getHttpStatusCode();
60
61 parent::generate($page);
62
63 return json_encode($this->_Result);
Backtrace
[/home/dev/public_html/fcma/symphony/lib/toolkit/class.jsonpage.php:59]
GenericErrorHandler::handler();
[/home/dev/public_html/fcma/symphony/lib/core/class.administration.php:509]
JSONPage->generate();
[/home/dev/public_html/fcma/symphony/lib/boot/func.utilities.php:231]
Administration->display();
[/home/dev/public_html/fcma/symphony/lib/boot/func.utilities.php:213]
symphony_launcher();
[/home/dev/public_html/fcma/index.php:17]
symphony();

from mailchimp.

nitriques avatar nitriques commented on May 17, 2024

Could you test https://github.com/lewiswharf/mailchimp/tree/issue-26 ? Thanks

from mailchimp.

beaubbe avatar beaubbe commented on May 17, 2024

It seems to have fixed the problem. Thanks buddy!

from mailchimp.

nitriques avatar nitriques commented on May 17, 2024

No problem guy! You can update to 3.0.1 pal!

from mailchimp.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.