• Resolved gale13

    (@gale13)


    Hi, I’ve been using your plugin for a while. It’s great. But I cannot go to some of my pages. WordPress gave the notice “There has been a critical error on this website” and showed that your plugin is the reason. How can I fix this? I really love the plugin and don’t to find the alternative.

    Here is the detailed error they sent me:

    Error Details

    An error of type E_ERROR was caused in line 1923 of the file /home/happybak/public_html/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php. Error message: Uncaught TypeError: Cannot access offset of type string on string in /home/happybak/public_html/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php:1923
    Stack trace: 0 /home/happybak/public_html/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Cache_Bypass.php(131): YARPP->parse_args() 1 /home/happybak/public_html/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php(1492): YARPP_Cache_Bypass->begin_yarpp_time() 2 /home/happybak/public_html/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Shortcode.php(73): YARPP->display_related() 3 /home/happybak/public_html/wp-includes/shortcodes.php(434): YARPP_Shortcode->render() 4 [internal function]: do_shortcode_tag() 5 /home/happybak/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() 6 /home/happybak/public_html/wp-includes/class-wp-hook.php(324): do_shortcode() 7 /home/happybak/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() 8 /home/happybak/public_html/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php(632): apply_filters() 9 /home/happybak/public_html/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php(451): WP_REST_Revisions_Controller->prepare_item_for_response() 10 /home/happybak/public_html/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php(314): WP_REST_Autosaves_Controller->prepare_item_for_response() 11 /home/happybak/public_html/wp-includes/rest-api/class-wp-rest-server.php(1292): WP_REST_Autosaves_Controller->get_items() 12 /home/happybak/public_html/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request() 13 /home/happybak/public_html/wp-includes/rest-api.php(576): WP_REST_Server->dispatch() 14 /home/happybak/public_html/wp-includes/rest-api.php(2957): rest_do_request() 15 [internal function]: rest_preload_api_request() 16 /home/happybak/public_html/wp-includes/block-editor.php(753): array_reduce() 17 /home/happybak/public_html/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload() 18 /home/happybak/public_html/wp-admin/post.php(187): require(‘/home/happybak/…’) 19 {main}

    thrown

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author meattle

    (@meattle)

    Hi @gale13

    • What version of YARPP do you have running?
    • What version of PHP?
    • Have you tried to delete the YARPP cache? (bottom of settings page)
    • Clear any site caches – ex. if you have a caching plugin?
    Thread Starter gale13

    (@gale13)

    Hi,

    • The YARPP version is 5.30.11
    • PHP 8.2.28
    • No, I haven’t deleted the YARPP cache
    • I tried to clear the caches. It didn’t work until I deactivate the plugin
    Plugin Author meattle

    (@meattle)

    @gale13

    • Which caching plugin are you using?
    • Please try to clear the YARPP cache to see if it helps.
    • Also try – updating the “Display only posts from the past” setting. Try unchecking this option to see if it helps.

    ps. I’m on planes for the next day and won’t be able to look at the code until Weds. Just gathering info and basic debugging right now.

    Plugin Author meattle

    (@meattle)

    Hi @gale13 ping. Were you able to try the above?

    Thread Starter gale13

    (@gale13)

    Hi, I cleared the YARPP cache and it worked.

    Thanks,

    Thread Starter gale13

    (@gale13)

    .

    • This reply was modified 9 months, 3 weeks ago by gale13.
    Plugin Author meattle

    (@meattle)

    @gale13 glad to hear and thanks so much for confirming!

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

The topic ‘YARPP cause error papge’ is closed to new replies.