How to restore a JR site with the Database backup file only?
Installation and Configuration
@brian
@paul
Thanks for your help. I have downloaded the missing modules from my JR.net account and uploaded them to my server. There were about 43 of them.
After running the repair.php script, the site was not loading and I was still getting a 500 error.
Then I've investigated the problem and discovered that I was missing my custom skin files which were made from the Elastic skin. This custom skin was active in the database. There was only the Elastic2 folder (files) in the skin folder on the server because JR 6.1.1 is packed with Elastic2 only as its default skin.
Trying to find a solution, as I had an old jamroom-core-5.2.41 zip archive on my computer, I've uploaded the Elastic skin file taken from that JR 5.2.41 to the skin folder of my JR 6.1.1 on the server and I duplicated the Elastic folder on the server giving that duplicated folder my custom skin name found in the database (jrMycustomname). Also I have uploaded few modified files (css, tpl, images etc) of my custom skin I had on my computer.
I don't know whether it is right way of fixing my problem (please correct me it is wrong) but then the site start working, No more 500 error message. I can log into the admin area. I have even reloaded all the modules one by one from the marketplace, just to make sure that there are installed correctly in the database.
Now I've few new issues:
1) My site layout is completed messed up. I can navigate without any error but the site design is just a mess. Yes I know, it's probably because of the custom skin made from JR 5.2.41 (Elastic skin) that I've manually uploaded to the server. If someone has an idea on how to fix it, please help.
2) I am unable to update the Elastic skin in the marketplace. Its status is red and it says: Installed: 1.2.12, Available: 1.4.3. But if I hit the update button, it updates and says:. "The skin was successfully updated", when nothing changes. It remains Installed: 1.2.12, Available: 1.4.3 with the red status. Any idea on how to fix it?
3) The integrity check from the admin side never complete. It keeps on running forever no matter if I select "verify modules" and "verify skins" only or if I select all the options (repair modules, repair tables, optimize tables etc). Please, how to fix it?
4) I am trying to activate Elastic2 to see if I can use it for my custom skin. First of all, I had to reload it from the marketplace because I've noticed that its files were in the server but the skin entries were not in the database since I've restored the database from a JR 5.3 backup and JR 5.3 was prior to the Elastic2 release.
After reloading the Elastic2 from the marketplace, its entries were back to the database in many tables.
Now the problem is whenever I try to set Elastic2 as active in my system, I get a 500 error message. Then the whole website stops working (loading) . Lucky for me I made a database backup before trying to set Elastic2 as active. It was easy for me to restore my system to its previous state using the database backup and get the site back online.
Here is what the error is from the error log.
PHP Fatal error: Cannot redeclare jrElastic_skin_meta() (previously declared in /home/xxxxx/public_html/xxxxx/skins/jrElastic-release-1.4.3/include.php:54) in /home/xxxxx/public_html/xxxxx/skins/jrMycustomskin/include.php on line 63
How to fix it? Please help.
Thanks a lot.