• Resolved Mohammad Reza

    (@mohammadboozary)


    Hi there,
    When Wordfence plugin is active I get 504 error using Duplicator plugin and when Wordfence is not active the Duplicator plugin works fine.

    How can I solve this problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @mohammadboozary, thanks for your question!

    I believe this problem might be related to the paths to wordfence-waf.php, which is required by the auto_prepend_file value in PHP. Did you use Duplicator to create this site from another WordPress installation?

    If you send a diagnostic report to wftest @ wordfence . com, I can check these paths for you compared to the rest of the site to see if they match. You can find the link to do so at the top of the Wordfence Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    Note: For the fastest response time, please make sure and add any information or questions directly to this topic and not the email address above unless asked.

    Thanks,

    Peter.

    Thread Starter Mohammad Reza

    (@mohammadboozary)

    Hi,

    1. I used duplicator to create this site from another wordpress installation.

    2. I’ve done what you requested in the email.

    Thanks.

    Plugin Support wfpeter

    (@wfpeter)

    Hi @mohammadboozary,

    Thanks for sending that over, your diagnostic shows no connectivity errors for inbound and outbound requests for your site, which is positive, but the auto_prepend_file is claiming no_value rather than the path to wordfence-waf.php.

    As you duplicated this site, check your .htaccess and .user.ini files for the presence of auto_prepend value = and specify the path to wordfence-waf.php, which should be /home/SITENAMEHERE/public_html/wordfence-waf.php. If you’re unsure of this path, the diagnostics page of Wordfence that you sent the email from should display it under Wordfence > Tools > Diagnostics > Wordfence Firewall > wordfence-waf.php path.

    Your .htaccess for FPM/FastCGI should look like:

    # Wordfence WAF
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
    </Files>
    # END Wordfence WAF

    Your .user.ini should look like:

    ; Wordfence WAF
    auto_prepend_file = '/home/SITENAMEHERE/public_html/wordfence-waf.php'
    ; END Wordfence WAF

    Let me know what the status of those files is/was and whether that remedies this issue for you.

    Thanks,

    Peter.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wordfence and Duplicator plugin conflict’ is closed to new replies.