• My site was on a PHP 7.4 server. I updated the server version to 8.2. And it didn’t load the body of the site.

    I checked all plugins, and Simple TOC trigger this issue.

    This is my site now:

    And when i activate this plugin, this is how it looks:

    Can you please help me with this? I really like and need your plugin for have a good SEO.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Marc Toensing

    (@marcdk)

    hi, I need the php error log from your server to debug this. Ask your Hoster if unsure what that is. Post the last error related to the problem here from the log. Thank you.

    Plugin Author Marc Toensing

    (@marcdk)

    Ans since the plugin and likely many others have a problem with 8.2 I would go back 8.0. that is what I am using

    Plugin Author Marc Toensing

    (@marcdk)

    I checked SimpleTOC with php 8.2 and it works without a problem. There has to be another reason, why your site stopped working.

    Thread Starter Radical Dreamer

    (@avagp)

    i’ll ask my server how to get the php error log.

    In the meantime, would you like to access the site temporary to see it yourself?

    Plugin Author Marc Toensing

    (@marcdk)

    does not help because I can’t reproduce the error. I started a dev environment with php 8.2 and SimpleTOC runs fine and is compatible with it. So this is somekind of other error. Maybe even not related to SimpleTOC.

    Thread Starter Radical Dreamer

    (@avagp)

    Well, here it is anyways.

    Maybe you can guide me where it can be related:

    [02-Feb-2024 21:26:16 UTC] PHP Fatal error:  Uncaught Error: Class "DOMDocument" not found in /home/radicaldreamer/guardianalunar.cl/wp-content/plugins/simpletoc/plugin.php:384
    Stack trace:
    #0 /home/radicaldreamer/guardianalunar.cl/wp-content/plugins/simpletoc/plugin.php(159): add_anchor_attribute()
    #1 /home/radicaldreamer/guardianalunar.cl/wp-content/plugins/simpletoc/plugin.php(167): add_ids_to_blocks_recursive()
    #2 /home/radicaldreamer/guardianalunar.cl/wp-content/plugins/simpletoc/plugin.php(167): add_ids_to_blocks_recursive()
    #3 /home/radicaldreamer/guardianalunar.cl/wp-content/plugins/simpletoc/plugin.php(140): add_ids_to_blocks_recursive()
    #4 /home/radicaldreamer/guardianalunar.cl/wp-includes/class-wp-hook.php(324): simpletoc_add_ids_to_content()
    #5 /home/radicaldreamer/guardianalunar.cl/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #6 /home/radicaldreamer/guardianalunar.cl/wp-includes/blocks/post-content.php(48): apply_filters()
    #7 /home/radicaldreamer/guardianalunar.cl/wp-includes/class-wp-block.php(258): render_block_core_post_content()
    #8 /home/radicaldreamer/guardianalunar.cl/wp-includes/class-wp-block.php(244): WP_Block->render()
    #9 /home/radicaldreamer/guardianalunar.cl/wp-includes/blocks.php(1484): WP_Block->render()
    #10 /home/radicaldreamer/guardianalunar.cl/wp-includes/blocks.php(1522): render_block()
    #11 /home/radicaldreamer/guardianalunar.cl/wp-includes/block-template.php(260): do_blocks()
    #12 /home/radicaldreamer/guardianalunar.cl/wp-includes/template-canvas.php(12): get_the_block_template_html()
    #13 /home/radicaldreamer/guardianalunar.cl/wp-includes/template-loader.php(106): include('/home/radicaldr...')
    #14 /home/radicaldreamer/guardianalunar.cl/wp-blog-header.php(19): require_once('/home/radicaldr...')
    #15 /home/radicaldreamer/guardianalunar.cl/index.php(17): require('/home/radicaldr...')
    #16 {main}
      thrown in /home/radicaldreamer/guardianalunar.cl/wp-content/plugins/simpletoc/plugin.php on line 384
    Plugin Author Marc Toensing

    (@marcdk)

    okay, your php 8.2 has not been compiled with DOMDocument: Uncaught Error: Class “DOMDocument” not found in?…

    This is not normal since this has been a part of php since many versions and worked for you in php 7. this will lead to errors with many plugins. Ask your Hoster to fix this.

    Thread Starter Radical Dreamer

    (@avagp)

    I installed the DOMDocument in php v8.1 and now it is perfect.

    Thanks for pointing it out, so i could fix it ??

    Plugin Author Marc Toensing

    (@marcdk)

    =)

    Plugin Author Marc Toensing

    (@marcdk)

    Feel free to leave a review.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘When plugin is activated, my site does not load the body’ is closed to new replies.