I just ran an upgrade to 1.4.5.8 and everything looks OK except I get an error "Setup was not able to create this file. You will need to copy the zp-core/zenphoto_cfg.txt file to zp-data/zenphoto.cfg.php then edit it as indicated in the file's comments." when trying to access the site. The message says the the file does not exist. It is there in zp-data and I can login to the database through putty using the same credentials without a problem. I checked the logs and in the debug log the only thing is that the install could not create the robots.txt file. I created it. The last entry in the setup log is that setup completed.
Any ideas on what to look for?
Comments
This sort of thing happens if the server is not configured so that WEB applications run under the same user as FTP applications. Then often Zenphoto cannot make changes it needs to make to things like the configuration file.
I also deleted /plugins /themes /zp-core and /zp-dat and re-uploaded them to the server. When I try to go th the install at http://xxx.xxx.xxx.xxx/archive/zp-core/setup/index.php?autorun=gallery I get just a blank screen. The zenphoto.cfg.php has for the db connect the following:
////////////////////////////////////////////////////////////////////////////////
// Database Information
////////////////////////////////////////////////////////////////////////////////
$conf['db_software'] = 'MySQLi'; // preferred database
/** for historical reasons these fields reference mysql even though the database **
** might be a different software **/
$conf['mysql_user'] = 'user_name'; // Supply your Database user id.
$conf['mysql_pass'] = 'passwd'; // Supply your Database password.
$conf['mysql_host'] = 'xxx.xxx.xxx.xxx'; // Supply the name of your Database server.
$conf['mysql_database'] = 'zp'; // Supply the name of Zenphoto's database
// If you're sharing the database with other tables, use a prefix to be safe.
$conf['mysql_prefix'] = "archive_";
The install is in /var/www/archive and was working fine with the previous version of ZenPhoto. I can putty into the server and connect to the database using the above creds with no problem.
However, when I click on an album I get a "The requested URL /zenphoto/Pre-2001/ was not found on this server." message. All the images show as published in admin. I am also seeing the following in the debug log:
NOTICE: Constant SERVERPATH already defined in /var/www/zenphoto/zp-core/functions-basic.php(114) : eval()'d code on line 93
define called from eval (functions-basic.php(114) : eval()'d code [93])
from require_once (functions-basic.php [114])
from require_once (admin-globals.php [12])
from setup_pluginOptions.php [11]
{18399:Fri, 03 Jan 2014 17:27:11 GMT}
WARNING: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/zenphoto/zp-core/functions-common.php on line 288
htmlspecialchars called from html_encode (functions-common.php [288])
from print_language_string_list (admin-functions.php [2528])
from admin-options.php [1023]
{18399:Fri, 03 Jan 2014 17:27:11 GMT}
In the debug log I an seeing things like:
[Fri Jan 03 09:52:54 2014] [error] [client 10.26.38.109] File does not exist: /var/www/zenphoto/Pre-2001, referer: http://10.26.38.106/zenphoto/index.php?album=Pre-2001
[Fri Jan 03 10:02:40 2014] [error] [client 10.26.38.109] File does not exist: /var/www/zenphoto/Pre-2001, referer: http://10.26.38.106/zenphoto/
[Fri Jan 03 10:02:53 2014] [error] [client 10.26.38.109] File does not exist: /var/www/zenphoto/2002, referer: http://10.26.38.106/zenphoto/
[Fri Jan 03 10:03:14 2014] [error] [client 10.26.38.109] File does not exist: /var/www/zenphoto/Pre-2001, referer: http://10.26.38.106/zenphoto/
[Fri Jan 03 10:05:15 2014] [error] [client 10.26.38.109] File does not exist: /var/www/zenphoto/Pre-2001, referer: http://10.26.38.106/zenphoto/
[Fri Jan 03 10:05:19 2014] [error] [client 10.26.38.109] File does not exist: /var/www/zenphoto/2005, referer: http://10.26.38.106/zenphoto/
[Fri Jan 03 10:13:21 2014] [error] [client 10.26.38.109] File does not exist: /var/www/zenphoto/Pre-2001, referer: http://10.26.38.106/zenphoto/
[Fri Jan 03 10:14:21 2014] [error] [client 10.26.38.109] File does not exist: /var/www/zenphoto/Pre-2001, referer: http://10.26.38.106/zenphoto/
This would seem to indicate that /albums/ is not being added to the path. If I manually add it I get a directory listing of the photos in that album.
I thing I will update with the latest nightly build and see what happens or else backdate a release or so.
It is also possible that the `.htaccess` file is wrong, but not likely if you did a fresh install.
The `NOTICE: Constant SERVERPATH already defined` is probably an artifact of your initial problems. Certainly if you are running now at all the root issue is gone.