Title: Fatal error: Uncaught Error: Function name must be a string
Last modified: May 13, 2020

---

# Fatal error: Uncaught Error: Function name must be a string

 *  [wpsaj](https://wordpress.org/support/users/wpsaj/)
 * (@wpsaj)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-function-name-must-be-a-string/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-uncaught-error-function-name-must-be-a-string%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-function-name-must-be-a-string/#post-12830786)
 * 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](https://wordpress.org/plugins/wp-downgrade/)
   and [WP Rollback](https://wordpress.org/plugins/wp-rollback/) for themes/plugins.)
   I’m not sure if the PHP version has a change for that error.
 *  Thread Starter [wpsaj](https://wordpress.org/support/users/wpsaj/)
 * (@wpsaj)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-function-name-must-be-a-string/#post-12831122)
 * 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](https://wordpress.org/support/users/author/) Christian“
   Kriesi” Budschedl * [@copyright](https://wordpress.org/support/users/copyright/)
   Copyright (c) Christian Budschedl * [@link](https://wordpress.org/support/users/link/)
   [http://kriesi.at](http://kriesi.at) * [@link](https://wordpress.org/support/users/link/)
   [http://aviathemes.com](http://aviathemes.com) * [@since](https://wordpress.org/support/users/since/)
   Version 1.0 * [@package](https://wordpress.org/support/users/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](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-function-name-must-be-a-string/#post-12831227)
 * 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.

## Tags

 * [fatal error message](https://wordpress.org/support/topic-tag/fatal-error-message/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Joy](https://wordpress.org/support/users/joyously/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-function-name-must-be-a-string/#post-12831227)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
