Bug #15445 Bug Fixed

redirect function throws error when calling generate_json

Version: 2.1.3 Reporter: Chris Newton

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

When calling the redirect function from a 3rd party addon, I get the following error:

PHP Fatal error:  Call to a member function generate_json() on a non-object in /mnt/path/to/site/system/expressionengine/libraries/Functions.php on line 374

This is similar to another bug_tracker item here: https://support.ellislab.com/bugs/detail/13846/

I’d guess that this can be fixed by explicitly loading the javascript library within the Functions class. I’m having trouble reproducing the error though, so I’m not sure. I’ve seen it in my logs at least 50 times though, and some other CartThrob customers have seen it as well.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases