• Resolved Juan

    (@jarmada)


    Buenas tardes!

    Les escribo porque he detectado problemas entre el plugin SG Security y Duplicator Pro. Cuando tengo activado en Site Security “Bloquear y proteger las carpetas del sistema” el plugin Duplicator Pro me genera un error 403 al crear un punto de recuperación.
    Por otra parte, el plugin SG Security devuelve un error al realizar clic sobre el submenú del plugin “Escritorio”. Concretamente devuelve “Ha habido un error crítico en esta web”

    Gracias por su tiempo y quedo a la espera de sus comentarios.

    Saludos.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support kuzmanstoyanov

    (@kuzmanstoyanov)

    Hello @jarmada,

    Thank you for the report.

    Allow me to apologize, but in this forum we only provide support in English.

    The error appears in the Dashboard section for sites running on PHP versions higher than 7.4. The developers are already aware of the issue and it will be resolved in the next version of the plugin.

    In regards to the 403 error, “Lock and Protect System Folders” is adding a security rule in .htaccess in wp-content/, wp-includes/ and wp-content/uploads/ folders. It seems that it is blocking some of the Duplicator Pro scripts.
    Depending on the folder where the affected script is located, there are different filters you can use to exclude it. They are all described under the Lock and Protect System Folders section on this page. Here is how to whitelist a script:

    1. Disable “Lock and Protect System Folders” in the settings of SiteGround Security

    2. Add the suitable exclude filter in the functions.php file of the active theme. Having in mind the affected plugin is Duplicator, most probably the following filter would work:

    add_filter( 'sgs_whitelist_wp_content' , 'whitelist_file_in_wp_content' );
    function whitelist_file_in_wp_content( $whitelist ) {
            $whitelist[] = 'file-name.php';
            return $whitelist;
    }

    Where you should replace “file-name.php” with the actual name of the script that is being blocked with 403. There is no need to specify a path to the script, just the name is enough.

    3. Activate “Lock and Protect System Folders”

    If you are a SiteGround client, you can submit a support inquiry in the Help Center and the Technical Support team will assist you to exclude the script.

    Best regards,
    Kuzman Stoyanov

    Thread Starter Juan

    (@jarmada)

    Hello Kuzman

    Thank you so much for your answers, but the name of script is not the same anytime. For example “dup_php_test_aX0eHP.php”, “dup_php_test_VoKgmS.php”, … For each execution, the end of file name is diferent.

    Rgds,
    Juan

    Plugin Support Delyan Delov

    (@delyandelov)

    Hi @jarmada,

    In your case, you can use wildcard (*) for the filename pattern.
    For example:

    $whitelist[] = 'dup_php_test_*.php';

    This way all automatically generated PHP files which start with dup_php_test_ will be whitelisted.

    Thread Starter Juan

    (@jarmada)

    Hi

    That’s right, Thks

    Rgds
    Juan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Duplicator Pro vs SG Security’ is closed to new replies.