Hi,
we’ve just changed our php version to 8.1 and the child theme is no longer working for some reason?
We’ve deactivated all plugins already but that doesn’t seem to fix the problem.
The console error:
Uncaught TypeError: Cannot read properties of null (reading 'appendChild')
as can be seen here: https://ibb.co/NC1mhLy
How can we make the child theme work again?
Best regards
Steph
Hey brandreach_at,
The error in the screenshot is a javascript error, not a child theme error.
Perhaps it is some javascript that you added to the child theme functions.php or it is from a plugin.
If you are able to login, try disabling all of your plugins and your child theme to bring your site back on line.
If you can’t login, use FTP to remove any custom code from your child theme functions.php
If that doesn’t help then in FTP rename the \wp-content\plugins\, this will disable all of your plugins so you can login again.
Best regards,
Mike
Hi Mike,
thanks for the functions.php tip, I was able to find the code in there.
add_action( 'wp_enqueue_scripts', 'wpb_add_google_fonts' );
After removing it, the site works again.
Thank you!
Best regards
Steph
Hi Steph,
We’re glad that Mike could help you :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko