Title: Fatal Error When Calling get_objects() Method
Last modified: July 11, 2024

---

# Fatal Error When Calling get_objects() Method

 *  Resolved [ofmarconi](https://wordpress.org/support/users/ofmarconi/)
 * (@ofmarconi)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-calling-get_objects-method/)
 * 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 1 year, 11 months ago by [ofmarconi](https://wordpress.org/support/users/ofmarconi/).

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

 *  Thread Starter [ofmarconi](https://wordpress.org/support/users/ofmarconi/)
 * (@ofmarconi)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-calling-get_objects-method/#post-17884062)
 * All this after I updated to 4.7.11
 *  [kpbryce132](https://wordpress.org/support/users/kpbryce132/)
 * (@kpbryce132)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-calling-get_objects-method/#post-17885745)
 * 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 1 year, 10 months ago by [kpbryce132](https://wordpress.org/support/users/kpbryce132/).
 *  [Angellive](https://wordpress.org/support/users/silasveta2012/)
 * (@silasveta2012)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-calling-get_objects-method/#post-17886149)
 *     ```wp-block-code
       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:125Stack 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](https://wordpress.org/support/users/optimole/)
 * (@optimole)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-calling-get_objects-method/#post-17886407)
 * Hi there,
 * We are looking into it, will release a new version shortly.
 *  [Vytis](https://wordpress.org/support/users/bvytis/)
 * (@bvytis)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-calling-get_objects-method/#post-17889751)
 * Hi [@ofmarconi](https://wordpress.org/support/users/ofmarconi/), [@kpbryce132](https://wordpress.org/support/users/kpbryce132/),
   [@silasveta2012](https://wordpress.org/support/users/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.
 *  [kpbryce132](https://wordpress.org/support/users/kpbryce132/)
 * (@kpbryce132)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-calling-get_objects-method/#post-17890229)
 * 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](https://wordpress.org/support/users/ofmarconi/)
 * (@ofmarconi)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-calling-get_objects-method/#post-17890797)
 * [@kpbryce132](https://wordpress.org/support/users/kpbryce132/) [@silasveta2012](https://wordpress.org/support/users/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://wordpress.org/support/topic/cache-rule-with-different-domain/](https://wordpress.org/support/topic/cache-rule-with-different-domain/)

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

The topic ‘Fatal Error When Calling get_objects() Method’ is closed to new replies.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

 * 7 replies
 * 5 participants
 * Last reply from: [ofmarconi](https://wordpress.org/support/users/ofmarconi/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-calling-get_objects-method/#post-17890797)
 * Status: resolved