• Resolved ofmarconi

    (@ofmarconi)


    Hello Amazing Support Team,

    I am experiencing a fatal error on my site when using the SWCFPC plugin. The error occurs when calling the get_objects() method within the advanced-cache.php file. Below are the details of the error:.

    PHP Fatal error: Uncaught Error: Call to undefined method SW_CLOUDFLARE_PAGECACHE::get_objects() in /home/your_site/public_html/wp-content/advanced-cache.php:125 Stack trace: #0 [internal function]: swcfpc_fallback_cache_end() #1 /home/your_site/public_html/wp-includes/functions.php(5420): ob_end_flush() #2 /home/your_site/public_html/wp-includes/class-wp-hook.php(324): wp_ob_end_flush_all() #3 /home/your_site/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #4 /home/your_site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /home/your_site/public_html/wp-includes/load.php(1270): do_action() #6 [internal function]: shutdown_action_hook() #7 {main} thrown in /home/your_site/public_html/wp-content/advanced-cache.php on line 125

    It appears that the get_objects() method is not defined in the SW_CLOUDFLARE_PAGECACHE class, which is causing the error.

    Could you please provide guidance on how to resolve this issue? Is there an update or a patch available for the plugin that addresses this problem?

    I had to disable Fallback on all sites.

    Thank you for your assistance.

    Best regards,

    • This topic was modified 3 months, 1 week ago by ofmarconi.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ofmarconi

    (@ofmarconi)

    All this after I updated to 4.7.11

    Yes, I have the exact same issue and similar fatal error messages!
    My research so far has not found a proper resolution.
    Is there a fix for this in the works?

    • This reply was modified 3 months, 1 week ago by kpbryce132.
    Angellive

    (@silasveta2012)

    2024/07/12 17:06:31 [error] 1117098#1117098: *21691 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method SW_CLOUDFLARE_PAGECACHE::get_objects() in /home/xxxxxxxxxxxxxx/web/handmadeflowers.angellive.ru/public_html/wp-content/advanced-cache.php:125
    Stack trace:
    #0 [internal function]: swcfpc_fallback_cache_end()
    #1 /home/xxxxxxxxxxxxxx/web/handmadeflowers.angellive.ru/public_html/wp-includes/functions.php(5420): ob_end_flush()
    #2 /home/xxxxxxxxxxxxxx/web/handmadeflowers.angellive.ru/public_html/wp-includes/class-wp-hook.php(324): wp_ob_end_flush_all()
    #3 /home/xxxxxxxxxxxxxx/web/handmadeflowers.angellive.ru/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxxxxxxxxxxxxx/web/handmadeflowers.angellive.ru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxxxxxxxxxxxxx/web/handmadeflowers.angellive.ru/public_html/wp-includes/load.php(1270): do_action()
    #6 [internal function]: shutdown_action_hook()
    #7 {main}
    thrown in /home/xxxxxxxxxxxxxx/web/handmadeflowers.angellive.ru/public_ht" while reading upstream, client: 1.1.1.1, server: handmadeflowers.angellive.ru, request: "GET /kukolka-3/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-handmadeflowers.angellive.ru.sock:", host: "handmadeflowers.angellive.ru"

    I join, the rollback to Version 4.7.10 has solved it for now

    Plugin Author optimole

    (@optimole)

    Hi there,

    We are looking into it, will release a new version shortly.

    Hi @ofmarconi, @kpbryce132, @silasveta2012,

    Thank you for reporting this issue. We made a release today that should address it.

    Let us know if you are still facing any issues.

    Hi,

    I tested the latest plugin version (4.7.12) and everything now renders correctly and no error messages occur. Thank you!

    Thread Starter ofmarconi

    (@ofmarconi)

    @kpbryce132 @silasveta2012

    It seems we had the same problem, can you check if in New Sites the plugin is using the first site in the zone instead of the current site to create the rule?

    This happened to me:


    https://www.ads-software.com/support/topic/cache-rule-with-different-domain/

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