Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #1399348

    Hello,

    We are constantly seeing the notification in WordPress that our PHP version (7.4.33) is no longer supported and being prompted to update the PHP to 8.0 or 8.1, there is a fatal error and we have to get our hosting to reinstate the website to the latest backup pre-PHP update. Does anyone have any idea how we can update without it causing an issue? We have tried deactivating plugins, made sure everything else was updated first, etc, etc. Nothing seems to help

    Login details below

    #1399358

    Hey MaskiMichener,
    Thanks for the login, I see that you are using a child theme with many custom files, I suspect that some of these files are from an older version that didn’t support PHP v8, such as your header.php, for example.
    Try enabling the parent theme and then enable PHP v8, if you still get an error it could be one of your plugins, try disabling all of your plugins then enable PHP v8 and enable your plugins one at a time until you find the error.
    Enfold v5.4.1 does work with PHP v8.

    Best regards,
    Mike

    #1399360

    Hi Mike,

    The system allows me to update to v8.0 when the Parent theme is active, however, the entire website loses its custom appearance. When I reactivate, the child theme in v8.0 it again gives a fatal error crash.
    Is there someone who can update the custom files causing the errors? This is not something we have the ability to do on our end

    #1399362

    Hi,
    Can you tell us what the fatal error message is? That would help. Try enabling wp_debug with the following code, inserted in your wp-config.php file via ftp:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );

    and then a debug log should be created.

    Best regards,
    Mike

    #1399365

    “There has been a critical error on this website.” is all the page will show when you visit the website.
    Please see the attached screenshot: https://img.savvyify.com/image/rnHz

    To do the debug log, I will need to reinstate V7.4.33 as right now the entire site, including the dashboard, is down. Are you able to see that on your end?
    http://www.lacombemuseum.com

    • This reply was modified 1 year, 10 months ago by MaskiMichener.
    #1399367

    Hi,
    Thanks but the error There has been a critical error on this website. doesn’t tell us anything helpful.
    Please switch back to V7.4.33, disable all plugins, enable WP_DEBUG in the wp-config.php file via ftp, and then switch back to PHP v8, hopefully the WP_DEBUG_LOG will catch the error.
    Sorry for so many steps.
    Please include FTP access in the Private Content area so we can see the WP_DEBUG_LOG and know which child theme file is causing the error.

    Best regards,
    Mike

    #1399369

    Hello,

    I’m sorry for the delay, it took me an hour to figure out how to access the FTP and find the wp-config settings.
    I believe it has been done correctly, please take a look with the details below.

    #1399410

    Hi,
    Thanks for trying but the WordPress ▸ Dashboard ▸ Tools ▸ Site Health ▸ WordPress Constants say debug is disabled:
    Enfold_Support_490.jpeg
    I tried to login to your GoDaddy host but it requires 2-stage authorization, can you disable this?
    If so we should be able to access the FTP & the PHP settings from there, If not can you post FTP access for us in the Private Content area so we can enable wp_debug before you switch over to PHP v8?

    Best regards,
    Mike

    #1399441

    Hello Mike,

    Thanks – the 2-factor is turned off, you should be able to log in with the details below

    #1399442

    The most recent error I am seeing is:

    Fatal error: Cannot use “parent” when current class scope has no parent in /var/www/wp-content/themes/enfold-child/lacombemuseum/enfold-custom/classes/postslider.php on line 450

    #1399445

    Hi,
    Thanks, we can try disabling your custom postslider.php and see if the child theme then loads correctly, but unfortunately, the Godaddy 2-factor is still on so I can’t login. Please check.

    Best regards,
    Mike

    #1399447

    Hi Mike, I put the code below, but it is only valid for 20 minutes – I don’t know why it is asking you that, as the system is showing on my end that there is no 2-factor enabled. I will ask GoDaddy why this is happening on your end

    *Edit, I spoke with them on the phone and they believe it is an automated trigger because we are in different countries. I have made you a new login that has “delegated access” to our account as per their instructions – find the details below. There should be no 2-factor required after this step

    #1399513

    Hi,
    Thanks for the feedback but unfortunately the new login also has 2-factor activated, please try using the email address in the Private Content area for this account.

    Best regards,
    Mike

    #1399515

    Hi,
    With the WP_DEBUG active I could see these errors:

    Notice: Undefined index: id in /var/www/wp-content/themes/enfold-child/functions.php on line 145
    Notice: Undefined index: id in /var/www/wp-content/themes/enfold-child/functions.php on line 145
    Notice: Undefined index: featured in /var/www/wp-content/themes/enfold/functions.php on line 313
    Notice: Trying to access array offset on value of type null in /var/www/wp-content/themes/enfold/functions.php on line 313
    Warning: Illegal string offset 'css' in /var/www/wp-content/themes/enfold/includes/helper-assets.php on line 60
    Warning: Illegal string offset 'js' in /var/www/wp-content/themes/enfold/includes/helper-assets.php on line 61

    and I was able to disable the custom code in your child theme functions.php that caused the errors, but since I didn’t have FTP assess I was limited to what I could do.
    I don’t know what the reason for of some of these custom functions was so I don’t think that I will be able to modify them, I get the feeling that you had hired a freelancer to create these customizations for you and the core theme files have changed since then so these modifications will also need to be changed.
    Perhaps you should contact this freelancer again for assistance.

    Best regards,
    Mike

    #1399546

    Hi Mike,

    Sorry for all the headaches. A few months ago, it wasn’t an issue for members of Kriesi support to log into our GoDaddy, so I don’t know why they have changed it.
    Invitation sent to your email – valid for 48 hours.

    Do you have recommendations for where to find freelancers that work with this theme? Our website designer from a few years ago is no longer in business, which is why I am trying to manage it now even though websites are not my job

    #1399553

    Hi,
    Thanks for the Invitation, I received the email and clicked it, but when I tried the login info above it said your email was used for the 2-factor and not mine, perhaps my email requires a different login than the one posted above, please check.
    Do you know what version of the theme was used when your website designer created the custom elements in the child theme?

    Best regards,
    Mike

    #1399559

    Hi Mike, yes you do need to create a free account to log into to attain access with the email address.
    I do not, the website was made in January – May 2020 however, so most likely the most updated theme version at that time.

    #1399664

    Hi,
    I was able to login to Godaddy and I see now that the site is using PHP v8 with the child theme and the plugins are enabled, and I don’t see any obvious errors on the frontend so it seems that disabling the custom code in the child theme functions.php has worked.
    Please clear your browser cache and check.

    Best regards,
    Mike

Viewing 18 posts - 1 through 18 (of 18 total)
  • You must be logged in to reply to this topic.