Server config is_dir() returns false, path_uploads_unavailable, rewrites_uploads
-
The plugin was functioning correctly but yesterday I noticed an error without any known changes to the system.
Server configuration error The path for the /uploads file does not exist (the is_dir() function returns false). Use the webpc_dir_path filter to set the correct path. The current path is: /mnt/web602/b3/29/512302729/htdocs/STRATO-apps/wordpress_01/app/mnt/web010/b3/29/512302729/htdocs/STRATO-apps/wordpress_01/app/wp-content/uploads.
error codes: path_uploads_unavailable, rewrites_uploads_blocked
I added the following code to the function.php as recomended in the FAQadd_filter( 'webpc_dir_name', function( $path, $directory ) { switch ( $directory ) { case 'uploads': return 'wp-content/uploads'; case 'webp': return 'wp-content/uploads-webpc'; case 'plugins': return 'wp-content/plugins'; case 'themes': return 'wp-content/themes'; } return $path; }, 10, 2 );
This resolves the error in the plugin but then no images are loaded on my website (404 image not found).
“Settings > Media > Store uploads in this folder” is set to /mnt/web010/b3/29/512302729/htdocs/STRATO-apps/wordpress_01/app/wp-content/uploads and access permissions are set to 755.
Here is the screenshot of my help center https://ibb.co/X4HD6n6
I also read this thread regarding a similar issue but unfortunaterly it was not helpful in my case.
Could you please provide guidance on how to resolve these issues? What steps should I follow to correct these errors and prevent them from occurring in the future?Thank you in advance for your assistance and cooperation.
Kind regards,
kaschraderThe page I need help with: [log in to see the link]
- The topic ‘Server config is_dir() returns false, path_uploads_unavailable, rewrites_uploads’ is closed to new replies.