Hello π
Can you share it with me as well? π
Thanks,
Dariusz.
Yeah,
The script I made is here
https://github.com/danielsan80/wp-relocate-quick-and-dirty-fix-script
It is a quick and dirty script, with dead code and a stupid way to use the inheritance, but I saved me.
I hope it could help you.
Bye
Thanks very much π
Would it be a problem if you provide some instructions/description of the script?
Best,
Dariusz.
You must to do some reverse engineering in each case.
1. Execute the sql in /sql to create 2 table: the script use this tables to store the status of every media and to cache the file position.
2. if / is the root of the site, so you can see /wp-content and /index.php, You must put the script in /app/script/
3. in src there is a class to manage the recover job splitted in 3 classes: LastAnalyzer extends Analyzer, Analyzer extends BaseAnalyzer
4. In BaseAnalyzer there are the methods getDomainPrefix() and connect() to configure with your data.
5. In the Browser you must run
http://www.example.com/app/script/imageCheck_reset.php one time
then you must run http://www.example.com/app/script/imageCheck.php several times
6. A timeout of 40 seconds stop the script. When you run it another time it continue his work.
I hope to help the reverse engeenering.
Bye
Thanks π
I will for sure try it in dev environment (unfortunately the integrity of website that uses the plugin is very important on live server, I used there even more dirty hacks to make the plugin not to spoil image display…).
Best,
Dariusz.