Generates blank/empty files; file_get_contents errors
-
Warning: file_get_contents(/public_html/wordpress/wordpress/wp-content/plugins/paid-memberships-pro/css/frontend.css): failed to open stream: No such file or directory in /public_html/wordpress/wp-content/plugins/merge-minify-refresh/merge-minify-refresh.php on line 825
When I load a page, I get warning like this for every CSS and JS file. The files BWP Minify creates are empty.
The problem is it is trying to access files under “/wordpress/wordpress/”
I edited the plugin to get it to work.
$path = $this->root.$script_path['path']; $path = preg_replace( '#wordpress/wordpress#', 'wordpress', $path ); $contents = file_get_contents( $path );
and similar for the other 3 places.
- The topic ‘Generates blank/empty files; file_get_contents errors’ is closed to new replies.