Tagged: fatal crash, php.update
-
AuthorPosts
-
February 26, 2023 at 10:13 pm #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
February 26, 2023 at 10:52 pm #1399358Hey 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,
MikeFebruary 26, 2023 at 11:26 pm #1399360Hi 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 endFebruary 27, 2023 at 12:01 am #1399362Hi,
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,
MikeFebruary 27, 2023 at 12:51 am #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/rnHzTo 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.
February 27, 2023 at 12:59 am #1399367Hi,
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,
MikeFebruary 27, 2023 at 1:42 am #1399369Hello,
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.February 27, 2023 at 12:34 pm #1399410Hi,
Thanks for trying but the WordPress ▸ Dashboard ▸ Tools ▸ Site Health ▸ WordPress Constants say debug is disabled:
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,
MikeFebruary 27, 2023 at 6:38 pm #1399441Hello Mike,
Thanks – the 2-factor is turned off, you should be able to log in with the details below
February 27, 2023 at 7:02 pm #1399442The 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
- This reply was modified 1 year, 10 months ago by MaskiMichener.
February 27, 2023 at 8:18 pm #1399445Hi,
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,
MikeFebruary 27, 2023 at 8:25 pm #1399447Hi 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
- This reply was modified 1 year, 9 months ago by MaskiMichener.
February 28, 2023 at 12:19 pm #1399513Hi,
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,
MikeFebruary 28, 2023 at 1:00 pm #1399515Hi,
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,
MikeFebruary 28, 2023 at 5:14 pm #1399546Hi 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
- This reply was modified 1 year, 9 months ago by MaskiMichener.
February 28, 2023 at 5:52 pm #1399553Hi,
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,
MikeFebruary 28, 2023 at 6:24 pm #1399559Hi 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.March 1, 2023 at 12:42 pm #1399664Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.