• Resolved freshpromo

    (@freshpromo)


    I used the ‘Convert Addon Domain to Account’ feature in WHM to migrate an addon domain in one cPanel account to a new cPanel account. Followed the instructions as outlined here: https://docs.cpanel.net/whm/transfers/convert-addon-domain-to-account/

    After a successful migration my site began returning 500 errors on all pages including the WP dashboard. The source of the issue was /public_html/wordfence-waf.php – the line ‘auto_prepend_file’ was still pointing to the old location and after updating it to the new path the issue was solved and the site was back online.

    The conversion process managed to update paths properly across other files and the database except for this one Wordfence file. I’m posting this in case others encounter the same issue as well as asking the plugin developers if there’s anything they can do to ensure this file gets properly updated in conversion. Thanks for your time.

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

    (@wfphil)

    Hi @freshpromo

    The wordfence-waf.php file is not the issue. It is your server configuration file that sets the string value for the auto_prepend_file PHP directive. You will see this warning in the Basic Firewall Options on the All Options page:

    Extended Protection: All PHP requests will be processed by the firewall prior to running.

    If you’re moving to a new host or a new installation location, you may need to temporarily disable extended protection to avoid any file not found errors. Use this action to remove the configuration changes that enable extended protection mode or you can remove them manually.

    Our guide for this is below:

    https://www.wordfence.com/help/firewall/optimizing-the-firewall/#removing-the-optimization

    Thread Starter freshpromo

    (@freshpromo)

    Thank you for the information and clarification.

    I just discovered that some the website’s multilingual pages (WPML plugin) are occasionally returning 500 internal server errors now. They are in a subdomain like http://www.mysite.com/FR/

    I cannot revert the migration to resolve this. I’ve followed your instructions and disabled extended protection, however I’m still seeing 500 errors on /FR/ pages such as https://goodfoodlink.ca/fr/event/seedy-saturday-ottawa/ but these errors seem to be rotating through different pages, are online one minute and down the next.

    The main English site is fine. Can you offer any help as to what might still be causing the errors? It’s rather urgent this gets resolved.

    Thank you very much.

    • This reply was modified 1 month ago by freshpromo. Reason: added more information
    • This reply was modified 1 month ago by freshpromo.
    Thread Starter freshpromo

    (@freshpromo)

    After more troubleshooting it appears to be a conflict between The Events Calendar and WPML plugins that began occurring after the migration. Marking this resolved.

    Plugin Support wfphil

    (@wfphil)

    Hi @freshpromo

    Thank you for the update.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.