Title: PHP Fatal error
Last modified: August 9, 2022

---

# PHP Fatal error

 *  Resolved [jej12](https://wordpress.org/support/users/jej12/)
 * (@jej12)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-313/)
 * I’m using version 7.2.0 with a multisite network, and I continue to see this 
   error in my php error log. Any suggestions on how to fix this?
 *     ```
       PHP Fatal error:  Uncaught Error: Using $this when not in object context in /plugins/sg-cachepress/core/File_Cacher/File_Cacher.php:553
       Stack trace:
       #0 /plugins/sg-cachepress/core/Front_End_Optimization/Front_End_Optimization.php(482): SiteGround_Optimizer\File_Cacher\File_Cacher::purge_everything()
       #1 /wp-includes/class-wp-hook.php(307): SiteGround_Optimizer\Front_End_Optimization\Front_End_Optimization->check_assets_dir()
       #2 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
       #3 /wp-includes/plugin.php(524): WP_Hook->do_action(Array)
       #4 /wp-cron.php(138): do_action_ref_array('siteground_opti...', Array)
       #5 {main}
         thrown in /plugins/sg-cachepress/core/File_Cacher/File_Cacher.php on line 553
       ```
   

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

 *  Plugin Support [Dimitar Petrov](https://wordpress.org/support/users/demiro/)
 * (@demiro)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-313/#post-15900947)
 * Hello [@jej12](https://wordpress.org/support/users/jej12/),
 * Would you please confirm that your SiteGround Optimizer plugin is the latest 
   version? I have tried to replicate the issue but to no avail. The $this reference
   mentioned in the error is used in a Class(object) context.
 * If your website is hosted on SiteGround servers, please open a new ticket on 
   our end so we can investigate the case further. If not, update this thread with
   the version of the WordPress application, SiteGround Optimizer plugin, and how
   you trigger the error so we can reproduce the issue.
 * Best Regards,
    Dimitar Petrov
 *  Thread Starter [jej12](https://wordpress.org/support/users/jej12/)
 * (@jej12)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-313/#post-15901266)
 * Thank you for the reply Dimitar. I’m using SiteGround Optimizer version 7.2.0,
   on a SiteGround hosted site. I’ll submit a ticket there.
 * Thanks Again!

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

The topic ‘PHP Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [jej12](https://wordpress.org/support/users/jej12/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-313/#post-15901266)
 * Status: resolved