Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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.

    #1473202

    Hey 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,
    Ismael

    #1473205

    The 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?

    #1473207

    Hi!

    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!
    Ismael

    #1473208

    Correction: 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.

    #1473209

    I 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\

    #1473210

    Hi!

    Looks like the code in the functions.php file has been removed. Have you tried disabling the plugins temporarily? Can we disable them?

    Regards,
    Ismael

    #1473211

    I 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. :)

    #1473212

    Hi,

    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,
    Ismael

    #1473276

    I’ve decided to uninstall Jetpack and the site is now fully restored. Thank you for your support. :)

    #1473299

    Hi,

    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,
    Rikard

    #1473366

    Everything is working now. This support thread can be closed.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘No page content after header and menu’ is closed to new replies.