-
AuthorPosts
-
December 8, 2024 at 6:53 pm #1473189
I’m unable to figure out why my Enfold site has stopped working. Except for the Contact page, nothing appears below the header menu. I’ve removed my caching plugin, updated to the most current version of Enfold, and searched for suggestions about what the problem might be with no luck.
I’m including Private Content so you can take a look at the back end also.
December 9, 2024 at 6:17 am #1473202Hey coredesignsupport,
Thank you for the inquiry.
There is an invalid code in the functions.php file:
add_theme_support(‘avia_disable_dummy_import’); add_theme_support('deactivate_layerslider');
Please try to remove it temporarily or replace it with this code:
add_theme_support('avia_disable_dummy_import'); add_theme_support('deactivate_layerslider');
Let us know of the result.
Best regards,
IsmaelDecember 9, 2024 at 6:28 am #1473205The functions.php file in the Enfold child theme has no content. Also, the replacement code you described is identical to the invalid code you identified?
December 9, 2024 at 6:31 am #1473207Hi!
The functions.php file was not empty when we checked and found that the single quotes in the first line are invalid, so we corrected them. Please try copying the code we suggested above.
Cheers!
IsmaelDecember 9, 2024 at 6:34 am #1473208Correction: I see now that the first line you identified as invalid is using the wrong single-quote marks. However, as I said above, the child theme has no content, so there’s nothing to replace.
December 9, 2024 at 6:40 am #1473209I tried to paste your suggested replacement code into the child theme functions.php file and received this error message:
Your PHP code changes were not applied due to an error on line 385 of file wp-includes/html-api/class-wp-html-decoder.php. Please fix and try saving again.
Uncaught Error: Call to undefined function ctype_alnum() in wp-includes/html-api/class-wp-html-decoder.php:385
Stack trace:
#0 wp-includes/html-api/class-wp-html-decoder.php(148): WP_HTML_Decoder::read_character_reference(‘attribute’, ‘https://i0.wp.c…’, 123, NULL)
#1 wp-includes/html-api/class-wp-html-decoder.php(114): WP_HTML_Decoder::decode(‘attribute’, ‘https://i0.wp.c…’)
#2 wp-includes/html-api/class-wp-html-tag-processor.php(2735): WP_HTML_Decoder::decode_attribute(‘https://i0.wp.c…’)
#3 wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-image-cdn/src/class-image-cdn.php(361): WP_HTML_Tag_Processor->get_attribute(‘src’)
#4 wp-includes/class-wp-hook.php(324): Automattic\December 9, 2024 at 6:44 am #1473210Hi!
Looks like the code in the functions.php file has been removed. Have you tried disabling the plugins temporarily? Can we disable them?
Regards,
IsmaelDecember 9, 2024 at 6:56 am #1473211I haven’t touched the child theme functions.php file since I set up this site a number of years ago. The site is currently presenting a Maintenance screen, so please go ahead and investigate as you see fit to resolve the issue. :)
December 9, 2024 at 6:59 am #1473212Hi,
Your PHP code changes were not applied due to an error on line 385 of file wp-includes/html-api/class-wp-html-decoder.php. Please fix and try saving again.
Uncaught Error: Call to undefined function ctype_alnum() in wp-includes/html-api/class-wp-html-decoder.php:385
Stack trace:The site displays correctly when we deactivate the plugins. Also, the error above seems to be generated by the Jetpack plugin. You may need to toggle and experiment with the options to identify what is causing the issue.
Best regards,
IsmaelDecember 9, 2024 at 8:09 pm #1473276I’ve decided to uninstall Jetpack and the site is now fully restored. Thank you for your support. :)
December 10, 2024 at 9:19 am #1473299Hi,
Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardDecember 10, 2024 at 4:35 pm #1473366Everything is working now. This support thread can be closed.
-
AuthorPosts
- The topic ‘No page content after header and menu’ is closed to new replies.