Posts Tagged ‘holy shit’
Dooodl misery!
Published by Ronny on September 24th, 2009 in Wordpress, plugins. 11 commentsLet me start this post with a big…

I really screwed up yesterday. I updated the Dooodl plugin and commited it to SVN. After having done that I wanted to wait until the changes reflected on the Wordpress site (which sometimes takes a few minutes). However I had to go over to Ward for dinner, so I took my laptop…
When arrived there I checked the site back and saw the changes. I updated the plugin on my site immediately using the WP-plugin auto-update functionality. That’s when all hell broke loose…
I saw that all the doodle-images on my site were gone, but the userdata (in the database) remained. When checking the FTP I realized what happened… The images are saved inside the plugin folder in a folder called ‘doodls’. Once you let Wordpress update the plugin automatically it tells you it ‘removed the old version of the plugin‘, before it ‘upgraded the plugin succesfully‘. It actually removes everything in that directory. I did NOT know that! I expected the plugin to replace all the existing files with new files and add the missing files/folders. And that’s why everything saved by the plugin was was lost once updated…
In my case I immediately lost about 120 doodles you guys submitted. Lucky for me I took a backup only half an hour before running the upgrade . In the end I only lost 11 images. I hope I’m the only one who ran into this misery.
But now…
There’s a new version online (1.0.5) (1.0.6 featuring smaller brushes
) which will not have that issue anymore. But before running off and installing this version please take a look at this and please be absolutely sure to have a backup of your doodles before installing ANY other version of the plugin…
- Before updating, download the /wp-content/plugins/dooodl/doodls/ folder. This folder contains all doodles your users saved. If you don’t, you will lose all images your users saved.
- Create a folder in /wp-content/uploads/ and name it ‘doodls‘.
- Upload the images to this(/wp-content/uploads/doodls/) folder.
- Now you can upgrade the new version of the plugin.
Again: I’m terribly sorry about all this and I really hope you didn’t lose (too much) of your doodles. I already tested 1.0.6 and it’s working perfectly. If you safely copy/backup the folder with doodles (using the steps above) then you should be safe
Having said all this…

If you got any feedback or information on how Wordpress updates itself and plugins, do let me know. I really wouldn’t like running into this kind of trouble again…

