• Resolved kaschrader

    (@kaschrader)


    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 FAQ

    add_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,
    kaschrader

    • This topic was modified 7 months, 4 weeks ago by kaschrader.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @kaschrader,

    Thank you for your message.

    For some reason I can’t open your screenshot. Could you send it to my e-mail address: hello(at)mattplugins.com? I will get to know you and then I will be able to help you.

    Best,
    Mateusz

    Thread Starter kaschrader

    (@kaschrader)

    Hello Mateusz Gbiorczyk,

    I’ve send you an e-mail with an attached screenshot of my Help Center page.

    Thank you in advance for your help!

    Best,
    kaschrader

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @kaschrader Thank you very much for sending the screenshot!

    I am analyzing this data and will try to prepare an update to the plugin that will contain a solution to the problem.

    Thread Starter kaschrader

    (@kaschrader)

    Thank you very much!
    The update fixed my problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Server config is_dir() returns false, path_uploads_unavailable, rewrites_uploads’ is closed to new replies.