ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

php error using ajax and freeform

January 30, 2011 8:35pm

Subscribe [2]
  • #1 / Jan 30, 2011 8:35pm

    Natetronn

    161 posts

    Hi,

    I have setup freeform with ajax per this video.

    It shows you how to, from start to finish, setup freeform and how to use jquery form plugin to show a success message without a page load.

    It’s pretty strait forward and I setup everything exactly as per the video though, I am getting the following error:

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined property: EE::$javascript
    Filename: libraries/Functions.php
    Line Number: 374
    
    Fatal error: Call to a member function generate_json() on a non-object in /home/******/public_html/system/expressionengine/libraries/Functions.php on line 374

    When I comment line 374 out in Functions.php everything works exactly as it should so I think I did everything on my end correctly.

    I know this area of the Functions.php file has comments which talk about Ajax specifically for whatever it’s worth.

    Any thoughts on why this is happening?

    Thanks

  • #2 / Jan 31, 2011 3:55pm

    Ingmar

    29245 posts

    What version and build of EE are you using? Any other third-party add-ons?

  • #3 / Jan 31, 2011 4:13pm

    Natetronn

    161 posts

    v2.1.3
    Build: 20101220

    I have a bunch of third party addons installed. Do you want me to list each one?

    Should I do a search for generate_json() on every addon?

    Thanks

  • #4 / Jan 31, 2011 5:09pm

    Natetronn

    161 posts

    Ingmar,

    I just went back to start looking at this error again. And all seems fine!

    I updated blueprint and made some other changes since this error and now it seems to be working.

    I have done allot since this particular error has come up so it’s probably impossible for me to tell what the problem was since yesterday.

    For future reference what is the best way to pin point an error like this? Is there a proper way of disabling addons one by one, will their settings be saved without worry?

    Anyway, for now this has been resolved, Thanks

  • #5 / Feb 01, 2011 2:31am

    Greg Aker

    6022 posts

    I’m glad you got it sorted out, don’t hesitate to start a new thread if anything else comes up!

    -greg

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

ExpressionEngine News!

#eecms, #events, #releases