• Resolved benny54

    (@benny54)


    Hi,

    On my test server i have installed a WP instance to clone a backup from Site A to a testsite B.
    On site A i have the backup file available and start the Restore.
    On site A i download xcloner-restore.tgz.
    I copy this file to site B and extract the file.
    Upload Backup to target host B is okay
    When I start Restore All Files it stops with an error 500 (see log entry below)
    In the log it looks like the issue is caused by the WordFence Firewall.
    Is there a simple solution available to clone this website including the Wordfence firewall to the target location?

    Any help or advice would be appriciated.

    Regards, Benny

    PHP log:

    [Sat May 16 19:41:21.270390 2020] [lsapi:notice] [pid 710946:tid 140317075367680] [client <ip address>:<port>] [host <mydomain>] Backend log: PHP Warning:  Unknown: failed to open stream: No such file or directory in Unknown on line 0\n, referer: https://<mydomain>/wpclone/wp-admin/admin.php?page=xcloner_restore_page
    [Sat May 16 19:41:21.270442 2020] [lsapi:error] [pid 710946:tid 140317075367680] [client <ip address>:<port>] [host <mydomain>] Backend fatal error: PHP Fatal error:  Unknown: Failed opening required '/home/<user>/domains/<domain to move>/public_html/wordfence-waf.php' (include_path='.:/opt/alt/php73/usr/share/pear') in Unknown on line 0\n, referer: https://<mydomain>/wpclone/wp-admin/admin.php?page=xcloner_restore_page
    
Viewing 1 replies (of 1 total)
  • Thread Starter benny54

    (@benny54)

    After hours of searching i found a solution that worked for me.

    Before cloning i made some changes in the content of the backup file:
    In .htaccess i deleted the Wordfence WAF section.
    In .user.ini i deleted the Wordfence lines. In my case it left an empty file.

    After the cloning i had to change the site URL in wp-config.php.
    Now the frontend was okay.

    Because i also had iThemes installed i could not login to the backend and i had to disable iThemes by adding the following line to wp-config.php:

    define('ITSEC_DISABLE_MODULES', true);
    Now i was able login to the backend with /wp-admin and could uninstall iThemes and remove the line from wp-config.php

    • This reply was modified 4 years, 6 months ago by benny54.
Viewing 1 replies (of 1 total)
  • The topic ‘http 500 error cloning website’ is closed to new replies.