• Resolved mparsons501979

    (@mparsons501979)


    Never had this problem before on a WordPress site but am getting the following error when trying to complete the first time config:

    Error parsing the response to JSON.

    <div data-elementor-type="wp-page" data-elementor-id="136" class="elementor elementor-136" data-elementor-post-type="page">
    <!DOCTYPE html>
    <html lang="en-GB">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name='robots' content='noindex, follow' />
    <title>WordPress &rsaquo; Error</title>
    <style type="text/css">
    html {
    background: #f1f1f1;
    }
    body {
    background: #fff;
    border: 1px solid #ccd0d4;
    color: #444;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 2em auto;
    padding: 1em 2em;
    max-width: 700px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    }
    h1 {
    border-bottom: 1px solid #dadada;
    clear: both;
    color: #666;
    font-size: 24px;
    margin: 30px 0 0 0;
    padding: 0;
    padding-bottom: 7px;
    }
    #error-page {
    margin-top: 50px;
    }
    #error-page p,
    #error-page .wp-die-message {
    font-size: 14px;
    line-height: 1.5;
    margin: 25px 0 20px;
    }
    #error-page code {
    font-family: Consolas, Monaco, monospace;
    }
    ul li {
    margin-bottom: 10px;
    font-size: 14px ;
    }
    a {
    color: #2271b1;
    }
    a:hover,
    a:active {
    color: #135e96;
    }
    a:focus {
    color: #043959;
    box-shadow: 0 0 0 2px #2271b1;
    outline: 2px solid transparent;
    }
    .button {
    background: #f3f5f6;
    border: 1px solid #016087;
    color: #016087;
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2;
    height: 28px;
    margin: 0;
    padding: 0 10px 1px;
    cursor: pointer;
    -webkit-border-radius: 3px;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    vertical-align: top;
    }

    .button.button-large {
    line-height: 2.30769231;
    min-height: 32px;
    padding: 0 12px;
    }

    .button:hover,
    .button:focus {
    background: #f1f1f1;
    }

    .button:focus {
    background: #f3f5f6;
    border-color: #007cba;
    -webkit-box-shadow: 0 0 0 1px #007cba;
    box-shadow: 0 0 0 1px #007cba;
    color: #016087;
    outline: 2px solid transparent;
    outline-offset: 0;
    }

    .button:active {
    background: #f3f5f6;
    border-color: #7e8993;
    -webkit-box-shadow: none;
    box-shadow: none;
    }

    </style>
    </head>
    <body id="error-page">
    <div class="wp-die-message"><p>There has been a critical error on this website.</p><p><a href="https://ww.wp.xz.cn/documentation/article/faq-troubleshooting/">Learn more about troubleshooting WordPress.</a></p></div></body>
    </html>

    Also get a console error in my browser:

           Failed to load resource: the server responded with a status of 500 ()  /wp-json/yoast/v1/link-indexing/posts:1
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mparsons501979

    (@mparsons501979)

    Also should add my php mem limit has ben set to 512MB in wpconfig

    Plugin Support Maybellyne

    (@maybellyne)

    Hello @mparsons501979

    I’m sorry you couldn’t complete the SEO data optimization due to a 500 – internal server error on /wp-json/yoast/v1/link-indexing/posts. The server error logs usually provide more details about the issue. If you have access to your server error log, note the date and time before generating the error again. Then, immediately check your server error log for any errors during that period. If you don’t have access to your server error log, please ask your hosting provider to look for you.

    If you or your web host cannot pinpoint the cause, please provide us with a copy of the server error log for further investigation. As server logs can cover a significant amount of time, please limit the error log to a few minutes before and after the behavior was reproduced.

    If the server error log does not contain any errors at the time of the issue, please enable advanced WordPress debugging with the code here. This code requires that you change line 84 to point to a path on your server. Your web host can provide a secure path to save the error.log file.

    Thread Starter mparsons501979

    (@mparsons501979)

    Hi and thanks for your reply. Here’s my log output with the domain removed from the file paths:

    [11-Mar-2025 21:12:21 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/XXXXXX/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/cart.php:2647

    Stack trace:

    #0 /home/XXXXXX/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2366): ElementorPro\Modules\Woocommerce\Widgets\Cart->render()
    #1 /home/XXXXXX/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(636): Elementor\Controls_Stack->render_by_mode()
    #2 /home/XXXXXX/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(775): Elementor\Widget_Base->render_content()
    #3 /home/XXXXXX/public_html/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Widget_Base->print_content()
    #4 /home/XXXXXX/public_html/wp-content/plugins/elementor/modules/element-cache/module.php(73): Elementor\Element_Base->print_element()
    #5 /home/XXXXXX/public_html/wp-includes/shortcodes.php(434): Elementor\Modules\ElementCache\Module->Elementor\Modules\ElementCache\{closure}()
    #6 [internal function]: do_shortcode_tag()
    #7 /home/XXXXXX/public_html/wp-includes/shortcodes.php(273): preg_replace_callback()
    #8 /home/XXXXXX/public_html/wp-content/plugins/elementor/core/base/document.php(1870): do_shortcode()
    #9 /home/XXXXXX/public_html/wp-content/plugins/elementor/core/base/document.php(1204): Elementor\Core\Base\Document->print_elements()
    #10 /home/XXXXXX/public_html/wp-content/plugins/elementor/includes/frontend.php(1203): Elementor\Core\Base\Document->print_elements_with_wrapper()
    #11 /home/XXXXXX/public_html/wp-content/plugins/elementor/includes/frontend.php(1098): Elementor\Frontend->get_builder_content()
    #12 /home/XXXXXX/public_html/wp-includes/class-wp-hook.php(324): Elementor\Frontend->apply_builder_in_content()
    #13 /home/XXXXXX/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #14 /home/XXXXXX/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(140): apply_filters()
    #15 /home/XXXXXX/public_html/wp-content/plugins/wordpress-seo/src/actions/indexing/abstract-link-indexing-action.php(76): Yoast\WP\SEO\Builders\Indexable_Link_Builder->build()
    #16 /home/XXXXXX/public_html/wp-content/plugins/wordpress-seo/src/routes/abstract-indexation-route.php(24): Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action->index()
    #17 /home/XXXXXX/public_html/wp-content/plugins/wordpress-seo/src/routes/indexing-route.php(420): Yoast\WP\SEO\Routes\Abstract_Indexation_Route->run_indexation_action()
    #18 /home/XXXXXX/public_html/wp-content/plugins/wordpress-seo/src/routes/indexing-route.php(356): Yoast\WP\SEO\Routes\Indexing_Route->run_indexation_action()
    #19 /home/XXXXXX/public_html/wp-includes/rest-api/class-wp-rest-server.php(1292): Yoast\WP\SEO\Routes\Indexing_Route->index_post_links()
    #20 /home/XXXXXX/public_html/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request()
    #21 /home/XXXXXX/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch()
    #22 /home/XXXXXX/public_html/wp-includes/rest-api.php(449): WP_REST_Server->serve_request()
    #23 /home/XXXXXX/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded()
    #24 /home/XXXXXX/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #25 /home/XXXXXX/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()
    #26 /home/XXXXXX/public_html/wp-includes/class-wp.php(418): do_action_ref_array()
    #27 /home/XXXXXX/public_html/wp-includes/class-wp.php(813): WP->parse_request()
    #28 /home/XXXXXX/public_html/wp-includes/functions.php(1336): WP->main()
    #29 /home/XXXXXX/public_html/wp-blog-header.php(16): wp()
    #30 /home/XXXXXX/public_html/index.php(17): require(‘/home/teesvalle…’)
    #31 {main} thrown in /home/XXXXXXXXX/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/cart.php on line 2647

    Thread Starter mparsons501979

    (@mparsons501979)

    I’ve worked around this by deactivating Elementor Pro and running the optimisation again. It worked and simply reactivated afterwards. Guess that solves my problem!

    This thread was marked resolved as the original poster confirmed the issue no longer occurs on their site.

    If you are not the original poster and continue to experience a similar issue, please open a new topic.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error during first time configuration’ is closed to new replies.