• wpsaj

    (@wpsaj)


    Hey everyone!

    I did an update to my woocommerce and enfold theme plugins and PHP version to 7.4 on my photography website just a few hours ago. Upon logging on my website’s homepage, I got the following “Fatal error: Uncaught Error: Function name must be a string” error. I did some research on here and youtube and was able to locate the “class-style-generator.php on line 119″ on my server. Line 119 is coded with the following:
    $this->output .= $this->$rule[‘key’]($rule).”\n”;

    I’m not sure what code to modify this to or if I need to delete it. I’d appreciate any input to get my website back up and running.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Joy

    (@joyously)

    That line does look like it is using a variable name as a function name. Does that file belong to WP or woo or theme?
    You shouldn’t delete code (or modify it), but you can revert back to the previous version of whichever it belongs to. (If you’re not sure how, there are plugins to help with that: WP Downgrade and WP Rollback for themes/plugins.)
    I’m not sure if the PHP version has a change for that error.

    Thread Starter wpsaj

    (@wpsaj)

    Thanks for the quick reply, Joy!

    From what I can tell, it seems to be the theme. See coding information below:

    <?php if ( ! defined(‘AVIA_FW’)) exit(‘No direct script access allowed’);
    /**
    * This file holds the class that creates styles for the theme based on the backend options
    *
    *
    * @author Christian “Kriesi” Budschedl
    * @copyright Copyright (c) Christian Budschedl
    * @link http://kriesi.at
    * @link http://aviathemes.com
    * @since Version 1.0
    * @package AviaFramework

    I’ll try the rollback and see if I can revert those themes and plugins back to what it was like 8 or so hours ago.

    Thanks again for your help! 🙂

    Joy

    (@joyously)

    Be sure to report the problem to the theme’s support forum, so they can fix it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error: Uncaught Error: Function name must be a string’ is closed to new replies.