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.

Local copy of live site - Fatal error: Call to undefined function ee()

September 08, 2013 4:29pm

Subscribe [2]
  • #1 / Sep 08, 2013 4:29pm

    Grant Hood

    7 posts

    I’m trying to set up a local copy of an ExpressionEngine site that someone else put together so I can test an upgrade to 2.7.0 before applying it to the live site, but I’m getting a fatal error when I log into the control panel and try to view some of the sub-menu options.

    The error is as follows:
    Fatal error: Call to undefined function ee() in /path/to/my/expressionengine/libraries/EE_Table.php on line 57

    I’m not sure where the ee() function is set up, or how it is supposed to be made available for being called.

    I’ve been through all of the config settings and checked the paths are correct. The site is displaying, as is the main control panel page and some of the options within it, but most of the options crash out with the above.

    The site is still at version 2.1.3, but I’d really like to get it working fully before I attempt the upgrade. I’m not experienced with EE and I’m trying to figure things out on the hoof after having to take over the running of the site unexpectedly. Any help would be very much appreciated.

    Thanks a lot

    Grant

  • #2 / Sep 09, 2013 3:04am

    arvinsim

    23 posts

    If you look at the changelog, the global ee() function is only available since EE 2.6.0

    People used something like

    $ee =& get_instance();

    in earlier versions.

    Since your site is at 2.1.3, then it will raise an error. EE_Table may have been optimized for later versions and may not support your current version.

  • #3 / Sep 09, 2013 6:26am

    Grant Hood

    7 posts

    Thanks arvinism - that’s got it.

    I had an earlier attempt with the site and tried to upgrade it, which didn’t end well, but instead of clearing all the files out and starting from scratch, I just over-wrote them with the original ones, but there must have been something that persisted from that previous attempt. I’ve just set it up on a different machine from scratch and everything’s now working properly.

    Much appreciated.

    Grant

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

ExpressionEngine News!

#eecms, #events, #releases