I though't I lost my website
-
I usually don’t get angry feedbacks, but I just spend the worst couple of hours in a loooong time.
After 4 months of working in our new site (we can only use little time everyday) and days before the final release I comment with my partner:
“look, this plugin looks nice, you can replace in all the pages in case we have make some typo, instead of going one by one”
And I run to install it and run a test….And I make the worst mistake ever: NOT MAKING A BACKUP BEFORE!!!!
I was too naive thinking that a plugin with so good reviews needed to be good, but I was wrong.
Right after I imported the dump the site went down and it was saying that it couldn’t connect to the database.
I run to check the database from the phpmyadmin and IT WAS EMPTY. Unbelievable I open the dump which was containing only a json file and a sql file.
I open the sql file and SURPRISE!!! the sql sentences where in a wrong format: THE QUOTE(‘) WAS SCAPED WITH A \’ INSTEAD OF WITH A ”.
I couldn’t believe it….This is what I have done to save my site, in case somebody runs in the same problem:
I have spend the last 2 hours checking one by one the more than 700 hundreds times than the \’ appears and substituting it with ” (I did one by one not to make a mistake, altough at the end I could have done it automatically).
After that I substitute ‘SERVMASK_PREFIX’ with ‘wp’.
When I did that and execute the sql, it was still giving an error with the table commentmeta, because the inserts seemed to be joint with the actual comment table :S.
After fixing this problem I run the sql and MAGIC my site was back…I couln’t believe.
I just hope that the developer fix all this problems as soon as possible and for those who read me….ALWAYS BACKUP FIRST (better safe than sorry).
- The topic ‘I though't I lost my website’ is closed to new replies.