Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #855644

    Drew L
    Participant

    I get this error when I activate the theme

    Fatal error: Function name must be a string in /home1/loomz/public_html/ideaengine.biz/rms/wp-content/themes/x/framework/functions/global/admin/addons/modules/class-addons-home.php on line 19

    I can’t go to the admin home page for the theme. Any way to solve this problem?

    #855646

    Drew L
    Participant

    This is the code from Line 15-20

    $modules = array();

    foreach ($this->script_data as $handle => $callback ) {
    if ( is_callable( $callback ) ) {
    $modules[$handle] = $callback();
    }

    #855727

    Alexander
    Keymaster

    Hey Drew,

    I’m sorry you’re having this happen. What version of PHP are you running there? It could be an incompatibility with older versions of PHP. If it’s a version conflict, usually this stuff is caught in our beta testing, but it could be specific to a version that our internal team and beta group didn’t cover. We can support anything later than 5.2 though. I’ll take a closer look at that file to see if we need to update anything there.

    If you’re on an older version, most hosts offer a way to use a more recent version of PHP. We recommend 5.5 or later.

    #855728

    Alexander
    Keymaster

    Hey again,

    I’ve just confirmed this is an issue affecting sites on PHP 5.2 and 5.3. We don’t test these as extensively because they are end-of-life, and the PHP developers themselves don’t support them anymore. We’ll update X to prevent the error, but meanwhile we do recommend updating PHP to at least 5.5. Most hosts offer a way to choose a more recent PHP version.