Title: PHP fatal error &#8211; rewrite-new_theme_path.php:769
Last modified: September 2, 2021

---

# PHP fatal error – rewrite-new_theme_path.php:769

 *  [Playzare](https://wordpress.org/support/users/playzare/)
 * (@playzare)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-rewrite-new_theme_path-php769/)
 * Hi,
    I have this PHP error : PHP Fatal error: Uncaught Error: Call to undefined
   function get_filesystem_method() in /wp-content/plugins/wp-hide-security-enhancer/
   modules/components/rewrite-new_theme_path.php:769
 * Is it possible to be an incompatibility with a plugin like WPRocket ?
 * Theme : Rey
    Hosting : Closte Plugins activated : Advanced Shipment Tracking 
   for WooCommerce, Boxtal Connect, CheckoutWC, Elementor, Elementor Pro, FluentSMTP,
   Google Tag Manager for WordPress, Lazy Load Background Images for Elementor, 
   Lord of the Files: Enhanced Upload Security, ManageWP – Worker, Nextend Social
   Login, Nextend Social Login Pro Addon, One Click Demo Import, OoohBoi Steroids
   for Elementor, Perfmatters, Piotnetforms, Piotnetforms Pro, Preview E-mails for
   WooCommerce, Regenerate Thumbnails, Rey Core, SEOPress, SEOPress PRO, TrackShip
   for WooCommerce, WebP Express, WooCommerce, WooCommerce Photo Reviews Premium,
   WooCommerce Stripe Gateway, WP Hide & Security Enhancer, WP Rocket, WP-Optimize–
   Clean, Compress, Cache, YITH WooCommerce Barcodes Premium
 * I can give you access if needed
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-rewrite-new_theme_path-php769%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Playzare](https://wordpress.org/support/users/playzare/)
 * (@playzare)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-rewrite-new_theme_path-php769/#post-14833533)
 * Okay i fixed it by removing the if condition here (line 760):
 *     ```
       if (empty($wp_filesystem)) 
       {
       require_once (ABSPATH . '/wp-admin/includes/file.php');
       WP_Filesystem();
       }
       ```
   
 * replace by :
 *     ```
       require_once (ABSPATH . '/wp-admin/includes/file.php');
       WP_Filesystem();
       ```
   
 *  Plugin Contributor [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-rewrite-new_theme_path-php769/#post-14845166)
 * Hi,
    Somehow the $wp_filesystem global variable appears to be set by another 
   code, still not correctly as not a filesystem object. Probably another plugin
   does that. We will update that area in the next plugin version to avoid such 
   issues.
 * Thanks

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

The topic ‘PHP fatal error – rewrite-new_theme_path.php:769’ is closed to new replies.

 * ![](https://ps.w.org/wp-hide-security-enhancer/assets/icon-256x256.png?rev=2937681)
 * [WP Hide & Security Enhancer](https://wordpress.org/plugins/wp-hide-security-enhancer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-hide-security-enhancer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hide-security-enhancer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hide-security-enhancer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hide-security-enhancer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hide-security-enhancer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Maya](https://wordpress.org/support/users/tdgu/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-rewrite-new_theme_path-php769/#post-14845166)
 * Status: not resolved