Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1342205

    Tried unsuccessfully to update my Themeforest site from PHP 5.6 to 7.4. Please help.

    1). I went to my host and updated from PHP 5.6 to 7.4, then checked my website and got this message:

    Fatal error: Uncaught Error: Function name must be a string in /hermes/bosnacweb04/bosnacweb04ck/b449/sl.wrenmark/public_html/wp-content/themes/enfold/framework/php/class-style-generator.php:123 Stack trace: #0 /hermes/bosnacweb04/bosnacweb04ck/b449/sl.wrenmark/public_html/wp-includes/class-wp-hook.php(307): avia_style_generator->create_styles(”) #1 /hermes/bosnacweb04/bosnacweb04ck/b449/sl.wrenmark/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #2 /hermes/bosnacweb04/bosnacweb04ck/b449/sl.wrenmark/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #3 /hermes/bosnacweb04/bosnacweb04ck/b449/sl.wrenmark/public_html/wp-includes/general-template.php(3042): do_action(‘wp_head’) #4 /hermes/bosnacweb04/bosnacweb04ck/b449/sl.wrenmark/public_html/wp-content/themes/enfold-child/header.php(54): wp_head() #5 /hermes/bosnacweb04/bosnacweb04ck/b449/sl.wrenmark/public_html/wp-includes/template.php(770): require_once(‘/hermes/bosnacw…’) #6 /hermes/bosnacweb04/bosnacweb04ck/b449/sl.w in /hermes/bosnacweb04/bosnacweb04ck/b449/sl.wrenmark/public_html/wp-content/themes/enfold/framework/php/class-style-generator.php on line 123

    I went back to 5.6 and it worked again.

    2). I updated the theme and all the plugins ( I think I only had two that were running). Switched back to 7.4 and got the Fatal error message again.

    3). I deactivated all the plug-ins and got the same error message.

    4). Switched theme to a basic WP Theme. It messed up the site, but at least it appeared. I guess I expected that as my content is customized for my ThemeForest child theme.

    5). 5) I have gone through the cache clearing exercise too.

    Not sure what to do to sort this out.

    #1342227

    Hey davidwren,

    Thank you for the inquiry.

    Have you tried updating PHP to version 8.0 instead? Make sure that the site is running on Enfold 4.9 before updating PHP version. Is it only happening on a specific page?

    Best regards,
    Ismael

    #1342231

    Ismael,

    Thank you for your fast response.

    I checked the “Theme Update” on my Enfold Child and it reads:
    Theme Updates
    No Updates available. You are running the latest version! (3.0.8)

    The highest PHP I can update to is version 7.4 on my host which is StartLogic.

    I only tried to load my home page and got the error message, so I presume my entire site doesn’t work with 7.4.

    What now? Dave

    #1342236

    Hi,

    No Updates available. You are running the latest version! (3.0.8)

    You are actually using a very old version of the theme containing the old auto updater, which is no longer working. You will have to manually update the theme via FTP just this once. Please check this documentation for more info about manual FTP update.

    // https://kriesi.at/documentation/enfold/theme-update/#update-via-ftp

    After the update, make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings and purge the cache before testing the page again. A lot has been added and changed in the theme since 3.0.8, so you might see some changes in the site after the update. Please make sure to update the theme regularly in the future to avoid these kind of issues.

    Best regards,
    Ismael

    #1342237

    Hi,

    IMPORTANT: Please do NOT forget to create a site backup or a restore point before attempting the update just in case.

    Best regards,
    Ismael

    #1342239

    Thank you. I thought I was getting automatic updates all along. Will see if that does it. Yay!

    #1342266

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

    #1342630

    Rikard,
    Thanks for all. This sorted out my challenge.

    Dave

    #1342637

    Hi Dave,

    We’re happy to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Update from PHP 5.6 to 7.4 and get this error message.’ is closed to new replies.