My gallery suddenly ceases to work, and automatically went to the setup page I don't know why and refused to connect to the DB with several error messages.
I tried then to upgrade to 1.5.4.2 version but the problem remains: at the beginning of the setup page, I have this message:
`Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /homez.110/marienoe/www/photos/zp-core/setup/index.php(229) : eval()'d code on line 1`
Further down on the page, the DB engine is set to MySQLi though it has always been MySQL and I never changed it. And the admin, password and other fields are filled with HTML messages such as
`
Notice: Undefined index: mysql_user in /homez.110/marienoe/www/photos/zp-core/setup/setup-sqlform.php on line 74
`
Please advise on how to solve this issue. I didn't change anything, and the gallery was working perfectly last time I displayed it yesterday.
Thanks.
Comments
MySQLi will be the default database library if one is not specified. Since there was an issue with your config file, it is reasonable to presume that it did not specify your database library as well.
Probably the best approach is to use FTP and remove the configuration file (`zp-data/zenphoto.cfg`) and, run setup and fill in the correct database credentials. You might find a backup configuration file, but it is also possible that it was copied from the corrupt one.
Is it supposed to be a copy of `zenphoto_cfg.txt` with the right values in places? If that's the case, I could reconstruct a new one; because I think this one is corrupted beyond repair!
I didn't realise the deletion of `zenphoto.cfg` was enough to launch a new setup; anyway, I have now an `500 Internal Server Error` and as I've not modified anything, this might indicate some problem on the server side.
I will try again in a few yours (time to sleep, here...) and report afterwards.
Thanks for helping.
Anything else has changed in the new release? According to my provider documentation, 500 errors are often related to `htaccess` files.
500 errors are also the result of file permission errors on php script files, so you should also check that.
As I'll be away soon for a short vacation, I just restored the whole system from a couple of days before for now, in order to have a working gallery.
And I will see in details how to upgrade properly when I'll be back.