Unable to detect page cache due to possible loopback request problem.

Charel Schreuder February 8, 2024 at 3:13 pm

This is the problem: Unable to detect page cache due to possible loopback request problem. Please verify that the loopback request test is passing. Error: Internal Server Error (Code: http_500)

Page cache enhances the speed and performance of your site by saving and serving static pages instead of calling for a page every time a user visits.

Page cache is detected by looking for an active page cache plugin as well as making three requests to the homepage and looking for one or more of the following HTTP client caching response headers:

cache-control, expires, age, last-modified, etag, x-cache-enabled, x-cache-disabled, x-srcache-store-status, x-srcache-fetch-status, x-litespeed-cache, x-lsadc-cache, x-qc-cache.

This is the error message: Fatal error: Uncaught Error: in_array(): Argument #2 ($haystack) must be of type array, string given
in /home/eventpho/imagevista.googlephotographer.com/wp-content/plugins/spiraclethemes-site-library/inc/own-shop-functions.php on line 136

Call stack:

in_array()
wp-content/plugins/spiraclethemes-site-library/inc/own-shop-functions.php:136
spiraclethemes_site_library_own_shop_listprod()
wp-includes/shortcodes.php:433
do_shortcode_tag()
preg_replace_callback()
wp-includes/shortcodes.php:273
do_shortcode()
wp-content/plugins/spiraclethemes-site-library/elements/own-shop/list-prod/template/view.php:24
require()
wp-content/plugins/spiraclethemes-site-library/elements/own-shop/list-prod/template/config.php:216
Own_Shop_ListProd::render()
wp-content/plugins/elementor/includes/base/controls-stack.php:2297
Elementor\Controls_Stack::render_by_mode()
wp-content/plugins/elementor/includes/base/widget-base.php:614
Elementor\Widget_Base::render_content()
wp-content/plugins/elementor/includes/base/widget-base.php:738
Elementor\Widget_Base::get_raw_data()
wp-content/plugins/elementor/includes/base/element-base.php:551
Elementor\Element_Base::get_raw_data()
wp-content/plugins/elementor/includes/base/element-base.php:551
Elementor\Element_Base::get_raw_data()
wp-content/plugins/elementor/core/base/document.php:1023
Elementor\C\B\Document::get_elements_raw_data()
wp-content/plugins/elementor/core/base/document.php:679
Elementor\C\B\Document::get_initial_config()
wp-content/plugins/elementor/includes/base/controls-stack.php:1042
Elementor\Controls_Stack::get_config()
wp-content/plugins/elementor/core/editor/loader/common/editor-common-scripts-settings.php:34
Elementor\C\E\L\C\Editor_Common_Scripts_Settings::get()
wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php:76
Elementor\C\E\L\V\Editor_V1_Loader::enqueue_scripts()
wp-content/plugins/elementor/core/editor/editor.php:358
Elementor\C\E\Editor::enqueue_scripts()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/script-loader.php:2262
wp_enqueue_scripts()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/general-template.php:3052
wp_head()
wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php:31
include()
wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php:110
Elementor\C\E\L\V\Editor_V1_Loader::print_root_template()
wp-content/plugins/elementor/core/editor/editor.php:163
Elementor\C\E\Editor::init()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-admin/admin.php:419
require_once()
wp-admin/post.php:12

How do I fix it please?

Replies (1)

  1. Charel Schreuder February 8, 2024 at 3:13 pm

    This is the problem: Unable to detect page cache due to possible loopback request problem. Please verify that the loopback request test is passing. Error: Internal Server Error (Code: http_500)

    Page cache enhances the speed and performance of your site by saving and serving static pages instead of calling for a page every time a user visits.

    Page cache is detected by looking for an active page cache plugin as well as making three requests to the homepage and looking for one or more of the following HTTP client caching response headers:

    cache-control, expires, age, last-modified, etag, x-cache-enabled, x-cache-disabled, x-srcache-store-status, x-srcache-fetch-status, x-litespeed-cache, x-lsadc-cache, x-qc-cache.

    This is the error message: Fatal error: Uncaught Error: in_array(): Argument #2 ($haystack) must be of type array, string given
    in /home/eventpho/imagevista.googlephotographer.com/wp-content/plugins/spiraclethemes-site-library/inc/own-shop-functions.php on line 136

    Call stack:

    in_array()
    wp-content/plugins/spiraclethemes-site-library/inc/own-shop-functions.php:136
    spiraclethemes_site_library_own_shop_listprod()
    wp-includes/shortcodes.php:433
    do_shortcode_tag()
    preg_replace_callback()
    wp-includes/shortcodes.php:273
    do_shortcode()
    wp-content/plugins/spiraclethemes-site-library/elements/own-shop/list-prod/template/view.php:24
    require()
    wp-content/plugins/spiraclethemes-site-library/elements/own-shop/list-prod/template/config.php:216
    Own_Shop_ListProd::render()
    wp-content/plugins/elementor/includes/base/controls-stack.php:2297
    Elementor\Controls_Stack::render_by_mode()
    wp-content/plugins/elementor/includes/base/widget-base.php:614
    Elementor\Widget_Base::render_content()
    wp-content/plugins/elementor/includes/base/widget-base.php:738
    Elementor\Widget_Base::get_raw_data()
    wp-content/plugins/elementor/includes/base/element-base.php:551
    Elementor\Element_Base::get_raw_data()
    wp-content/plugins/elementor/includes/base/element-base.php:551
    Elementor\Element_Base::get_raw_data()
    wp-content/plugins/elementor/core/base/document.php:1023
    Elementor\C\B\Document::get_elements_raw_data()
    wp-content/plugins/elementor/core/base/document.php:679
    Elementor\C\B\Document::get_initial_config()
    wp-content/plugins/elementor/includes/base/controls-stack.php:1042
    Elementor\Controls_Stack::get_config()
    wp-content/plugins/elementor/core/editor/loader/common/editor-common-scripts-settings.php:34
    Elementor\C\E\L\C\Editor_Common_Scripts_Settings::get()
    wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php:76
    Elementor\C\E\L\V\Editor_V1_Loader::enqueue_scripts()
    wp-content/plugins/elementor/core/editor/editor.php:358
    Elementor\C\E\Editor::enqueue_scripts()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-includes/script-loader.php:2262
    wp_enqueue_scripts()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-includes/general-template.php:3052
    wp_head()
    wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php:31
    include()
    wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php:110
    Elementor\C\E\L\V\Editor_V1_Loader::print_root_template()
    wp-content/plugins/elementor/core/editor/editor.php:163
    Elementor\C\E\Editor::init()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-admin/admin.php:419
    require_once()
    wp-admin/post.php:12

    How do I fix it please?

  2. Charel February 9, 2024 at 10:11 am

    Hi Charel

    Thanks for reaching out
    Could you tell me more about this issue?
    It seems like it’s a cache issue, try deactivating the cache plugin and then check it in incognito mode

    Best Regards

Post a Reply

Reply To: Unable to detect page cache due to possible loopback request problem.
Your information: