Title: a fix script
Last modified: August 22, 2016

---

# a fix script

 *  Resolved [danielsan80](https://wordpress.org/support/users/danielsan80/)
 * (@danielsan80)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/a-fix-script/)
 * Hi,
    I want to thank you for your plugin beacouse it solved a problem of mine.
   Anyway it broke my db 🙂 So, I needed to create a script to recover the integrity
   of my db.
 * I’d like to share with you this script so you can use it to enforce your plugin.
 * Let me know if you like the idea and how I can give you my script.
 * Bye,
    Danilo
 * [https://wordpress.org/plugins/relocate-upload/](https://wordpress.org/plugins/relocate-upload/)

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

 *  [Dariusz Zielonka](https://wordpress.org/support/users/webnatural/)
 * (@webnatural)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/a-fix-script/#post-5718391)
 * Hello 🙂
 * Can you share it with me as well? 🙂
 * Thanks,
    Dariusz.
 *  Thread Starter [danielsan80](https://wordpress.org/support/users/danielsan80/)
 * (@danielsan80)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/a-fix-script/#post-5718407)
 * Yeah,
    The script I made is here
 * [https://github.com/danielsan80/wp-relocate-quick-and-dirty-fix-script](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
 *  [Dariusz Zielonka](https://wordpress.org/support/users/webnatural/)
 * (@webnatural)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/a-fix-script/#post-5718420)
 * Thanks very much 🙂
 * Would it be a problem if you provide some instructions/description of the script?
 * Best,
    Dariusz.
 *  Thread Starter [danielsan80](https://wordpress.org/support/users/danielsan80/)
 * (@danielsan80)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/a-fix-script/#post-5718425)
 * 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](http://www.example.com/app/script/imageCheck_reset.php)
   one time then you must run [http://www.example.com/app/script/imageCheck.php](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
 *  [Dariusz Zielonka](https://wordpress.org/support/users/webnatural/)
 * (@webnatural)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/a-fix-script/#post-5718428)
 * 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.

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

The topic ‘a fix script’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/relocate-upload.svg)
 * [Relocate Upload](https://wordpress.org/plugins/relocate-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relocate-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relocate-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/relocate-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relocate-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relocate-upload/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Dariusz Zielonka](https://wordpress.org/support/users/webnatural/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/a-fix-script/#post-5718428)
 * Status: resolved