interconnectit / Search-Replace-DB

This script was made to aid the process of migrating PHP and MySQL based websites. Works with most common CMSes.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
GNU General Public License v3.0
4k stars 855 forks source link

The script encountered an error while running an AJAX request. #270

Closed hyetou closed 4 years ago

hyetou commented 5 years ago

I'm running an xampp 7.3.8 server in Windows, trying to copy some Wordpress sites to a local environment. I get this error while doing anything with this tool. The full error reads "The script encountered an error while running an AJAX request. If you are using your hosts file to map a domain try browsing via the IP address directly."

The error happens immediately every time I click a button in the UI (except the 'delete me' button). It's not associated with any particular tables, and it happens on every database I've tried it on. On my other computer, this tool works fine with the same xampp setup and the same websites/databases. I can't figure out why it's not working on this one.

I've gone through every related thread I can find, and tried every solution that seemed applicable. Mbstring is installed and activated. I've done define('MULTISITE', true); An array of other things I can't remember. Nothing has changed it.

SeoMix commented 5 years ago

If you are using Bitdefender, you should deactivate network protection ;)

CourcellesDesign commented 5 years ago

Hello from France I already used your tools which is fabulous but I encounter the same error AJAX (WP in php 7.3) "The script encountered an error while running an AJAX request. If you are using your hosts file to map a domain try browsing via the IP address directly."

I do not have "Bitdefender" but Norton but I do not really see the report an other idea ? Thanks for your help Natacha

wodobo commented 4 years ago

@hyetou , This is probably the answer you're looking for:

https://github.com/interconnectit/Search-Replace-DB/issues/256

Basically it's a black listed tool and just editing the index.php file in the tool allows it to get passed the gate for a few tries. In the link they mention another way using CLI with SSH, but yeah. Anyway, hopefully this helps.

gianluigi-icit commented 4 years ago

Feel free to open a new issue in case of problems