• Resolved maggiordomodelweb

    (@maggiordomodelweb)


    Dear Mateusz Gbiorczyk,
    thanks for your plugin WebP Converter for Media.
    I install and i have the Server configuration error because i have install a plugin “iThemes Security” and i change my normal directory wp-content in particular i want change your basic directory …/public_html/wp-content/uploads-webpc in new name ofr example public_html/newname/uploads-webpc what is the better and fast solution?!
    In particular the problem i see in the Server Configuration of your plugin i want change the webpc_dir_path (webp) —> …/public_html/wp-content/uploads-webpc into …public_html/newname/uploads-webpc.
    I read your modify tutorial but i not know exactly file that i change?!
    Where i put the different directory name command?! I change it in some your file or your plugin?! (webp-converter-for-media) or change or insert in the .htaccess or wp-config.php the principal directory or WordPress?!
    Please tell me exaclty the change i do because i am not so expert.
    Thanks a lot
    Alex

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

    (@mateuszgbiorczyk)

    Hello @maggiordomodelweb,

    Thanks for your message.

    Please paste the file below into the functions.php file in your theme directory:

    add_filter( 'webpc_dir_name', function( $path, $directory ) {
        switch ( $directory ) {
            case 'uploads':
                return 'newname/uploads';
            case 'webp':
                return 'newname/uploads-webpc';
        }
        return $path;
    }, 10, 2 );

    Of course, provide the correct paths in this code.

    Best,
    Mateusz

    Thread Starter maggiordomodelweb

    (@maggiordomodelweb)

    Thanks Mateusz,
    i try much days but only with the modifications of functions.php of template in use the Error go away but still out Generic Error:

    The plugin settings are incorrect! Check them out and save them again. Please remember that you must have at least one option selected for each field.
    
    ---
    
    Error codes: settings_incorrect

    in the Server Configuration all is ok the directory are good but somethimes the plugin show error and sometimes not and is not possible to procede to generate all.
    The error generic sometimes go away if you disintall plugin and reput new installation but after return again.
    Is a mistake.

    Is anything that i change?!
    Thanks
    Alex

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @maggiordomodelweb Please send me a screenshot of the plugin settings page.

    Thread Starter maggiordomodelweb

    (@maggiordomodelweb)

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @please send me screenshot with all options on plugin setting page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Chande Directory wp-content because Server configuration error’ is closed to new replies.