• Hello, thank you for this amazing plugin.

    The “NGINX Settings - Overwrite the cache-control Header” page located here: /wp-admin/options-general.php?page=wp-cloudflare-super-page-cache-nginx-settings recently started throwing the following Fatal Error and Warnings which are preventing me from adding the correct NGINX config to my sites.

    map $upstream_http_x_wp_cf_super_cache_active $wp_cf_super_cache_active {
    default 'no-cache, no-store, must-revalidate, max-age=0';
    '1' '

    Warning: Undefined property: SWCFPC_Backend::$modules in /home/staging/htdocs/mydomain.com/wp-content/plugins/wp-cloudflare-page-cache/libs/views/nginx.php on line 18

    Warning: Trying to access array offset on value of type null in /home/staging/htdocs/mydomain.com/wp-content/plugins/wp-cloudflare-page-cache/libs/views/nginx.php on line 18

    Fatal error: Uncaught Error: Call to a member function get_cache_control_value() on null in /home/staging/htdocs/mydomain.com/wp-content/plugins/wp-cloudflare-page-cache/libs/views/nginx.php:18
    Stack trace:
    #0 /home/staging/htdocs/mydomain.com/wp-content/plugins/wp-cloudflare-page-cache/libs/backend.class.php(1126): require_once()
    #1 /home/staging/htdocs/mydomain.com/wp-includes/class-wp-hook.php(324): SWCFPC_Backend->admin_menu_page_nginx_settings()
    #2 /home/staging/htdocs/mydomain.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #3 /home/staging/htdocs/mydomain.com/wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 /home/staging/htdocs/mydomain.com/wp-admin/admin.php(259): do_action()
    #5 /home/staging/htdocs/mydomain.com/wp-admin/options-general.php(10): require_once('...')
    #6 {main}
    thrown in /home/staging/htdocs/mydomain.com/wp-content/plugins/wp-cloudflare-page-cache/libs/views/nginx.php on line 18

    There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.

    My server:

    • PHP 8.1
    • NGINX 1.21
    • MariaDB 10.11

    Thank you,
    Aaron

    • This topic was modified 2 weeks, 2 days ago by a.c.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Kush

    (@kushnamdev)

    Hi @ac-1,

    Could you please confirm if you are using the latest version of Super Page Cache plugin?

    Best regards

    Thread Starter a.c

    (@ac-1)

    Hi @kushnamdev,

    Yes, I am using Super Page Cache version 5.0.9.

    Thank you,
    -AC

    • This reply was modified 2 weeks, 1 day ago by a.c.
    Thread Starter a.c

    (@ac-1)

    Hi @kushnamdev,

    Just wanted to check on the status of this issue. Is there a fix planned for the next plugin release or perhaps a work-around I can implement on my end?

    Is there any additional information I can provide to assist?

    Thank you,
    -AC

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.