View Full Version : Something crashed?
steelduck
11th of July 2002 (Thu), 15:43
When I try to access my PHP gallery, I get this:
Warning: Failed opening 'indexstyles/.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/apache/htdocs/ee/index.php on line 12
Nothing works anymore and I have not done any changes nor have I rebooted. It just stopped working.
Kristian
Pekka
12th of July 2002 (Fri), 02:44
Hi Kristian,
Bad news I'm afraid.
It seems that you have left setup.php on your server's EE folder and someone has ran it - by accident or just by being mean. Now you have 1.05 version database and PHP code from 1.22 - that gives exactly the error message you get.
Sorry, but that is exactly why I instruct to remove setup.php from server after installation. current versions of setup.php prevent formatting the database up if there is already EE installed, but the old ones did not have that detection code.
So your only option is to get those phpMyAdmin backups (you did them did you - please say you do) and restore the database.
And remove that setup.php form the server.
steelduck
12th of July 2002 (Fri), 02:53
Ok.. Luckily I have a week old back up. How do I restore it?
Pekka
12th of July 2002 (Fri), 03:39
steelduck wrote:
Ok.. Luckily I have a week old back up. How do I restore it?
Pheww.... well done.
PhpMyAdmin dump restore is easy. Just open phpMyAdmin, browse to the backup file (or paste it to dump form there) and press go. If it complains that table already exists, you must drop the tables manually and then do restore again.
If the backup you have is a mysqldump (commandline or by cron job) then you should consult system for mysqldump manual.
mysqldump instructions: http://www.theprojects.org/tutorials/mysqldump.php
Based on this incident I see that EE will need an easy proprietary backup/restore. I'll start coding a backup button into EE --- it would also do backup on certain settable counter number (like every 1000 photos viewed). Too bad I can't use mysqldump as running system commands needs privileges setup which is not possible in many systems - so the backup code has to be written from scratch.
steelduck
12th of July 2002 (Fri), 10:41
Phew.... all is well again. Thank you Pekka.
Kristian
ps. Remainder for all take those backups and RTFM.
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.