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
3.99k stars 850 forks source link

unexpected '\' (T_NS_SEPARATOR), expecting '{' #341

Closed felibb closed 4 years ago

felibb commented 4 years ago

Running the script on wp_options I get an error about AJAX, but none of the similar older issues have been helpful so far. Running in CLI I get this error:

$ php srdb.cli.php  -h host -n database -u user -p "password" -s "old" -r "new" -t "wp_options" -z -v
results: The dry-run option was selected. No replacements will be made.
wp_options: replacing old with new
syntax error, unexpected '\' (T_NS_SEPARATOR), expecting '{'

What can I check?

felibb commented 4 years ago

Ah it's duplicate of #335, apologies.