ZenphotoCMS Forum
Lots of errors upgrading - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Lots of errors upgrading (/thread-5457.html)



Lots of errors upgrading - Eldavizo - 2009-07-09

Hi. First of all, congratulations for this great piece of software.
I was using version 1.2.1 and it worked fine.
I've tried to upgrade to other versions and have a lot of problems with it.
I've just tried v.1.2.5 and get the same errors, which I describe below:

[list]
[]- In setup, when clicking "Go" button, lots of errors. It gets fixed when I delete my albums and cache folder.
[
]- In Administration, under Options/comment I get this:
[i]Warning: require_once(/home/webs/www.xxxxxx.com/httpdocs/tests/gallery/zp-core/plugins/) [function.require-once]: failed to open stream: Invalid argument in /home/webs/www.xxxxxx.com/httpdocs/tests/gallery/zp-core/admin-options.php on line 2038

Fatal error: require_once() [function.require]: Failed opening required '/home/webs/www.xxxxxx.com/httpdocs/tests/gallery/zp-core/plugins/' (include_path='.:/opt/php-4.3.3.normal//lib/php') in /home/webs/www.xxxxxx.com/httpdocs/tests/gallery/zp-core/admin-options.php on line 2038[/i]
[*]- In Administration, under Options/theme I get this:
[i]Notice: Undefined index: themename in /home/webs/www.xxxxxx.com/httpdocs/tests/gallery/zp-core/admin-options.php on line 2171

Warning: require_once(/home/webs/www.xxxxxx.com/httpdocs/tests/gallery/themes/) [function.require-once]: failed to open stream: Invalid argument in /home/webs/www.xxxxxx.com/httpdocs/tests/gallery/zp-core/admin-options.php on line 2363

Fatal error: require_once() [function.require]: Failed opening required '/home/webs/www.xxxxxx.com/httpdocs/tests/gallery/themes/' (include_path='.:/opt/php-4.3.3.normal//lib/php') in /home/webs/www.xxxxxx.com/httpdocs/tests/gallery/zp-core/admin-options.php on line 2363[/i]
[]- In Administration, under Themes I get this:
[i]Notice: Undefined index: themename in /home/webs/www.xxxxxx.com/httpdocs/tests/gallery/zp-core/admin-themes.php on line 141
And the only Theme that shows under this folder is Zenpage-Default although I have 5 different themes uploaded in the proper folder.[/i]
[
]- In Administration, under Plugins, there is a table with some rows and two columns (Available Plugins and Description) ... but they are empty. There's only a tick box and that's it.
[*]- I try to upload photos (in 1.2.1 worked) but I get a permissions error although I have chmod albums and cache folders to 777.
[/list]
Any advice on this, please? As I've said before, I have tried versions v1.2.3, 1.2.4 and 1.2.5 but the only one that works fine for me is v1.2.1

Thanks in advance




Lots of errors upgrading - sbillard - 2009-07-09

I suspect you are getting permission errors on other folders besides the cache and albums. You should check all the files & folders in both zp-core and the themes folders.




Lots of errors upgrading - Eldavizo - 2009-07-10

Hmm... I've checked it and all the folders are 755. And uploading the content, I'm following the same steps in 1.2.5 as in 1.2.1, and this one works but the others not. What am I doing wrong then?




Lots of errors upgrading - acrylian - 2009-07-10

Note that the files itself need to be 644. Please also read http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/#29




Lots of errors upgrading - Eldavizo - 2009-07-10

Sorry, but all the files are 644 and directories 755 (except for cache and albums folders which are chmoded 777. And still don't know what changed from version 1.2.1 to the latests versions so these versions don't work for me even installing them from scratch but 1.2.1 works just perfect.




Lots of errors upgrading - acrylian - 2009-07-10

I am sorry then I have no other idea currently.




Lots of errors upgrading - sbillard - 2009-07-10

What is the report that setup provides? Probably there is some security setting that is preventing zenphoto from scanning a folder.




Lots of errors upgrading - Eldavizo - 2009-07-20

Hi. This is the log (I have marked in bold the warnings and errors)


Zenphoto has detected that you're upgrading to a new version.

Systems Check:

PHP version 5.2.3
PHP Safe Mode

[b]PHP magic_quotes_gpc [is enabled]
Warning!
You should consider disabling magic_quotes_gpc. For more information click here.[/b]

Graphics support: PHP GD library bundled (2.0.34 compatible)

[b]PHP gettext() support [is not present]
Warning!
Localization of Zenphoto currently requires native PHP gettext() support[/b]

[b]PHP setlocale() failed
Warning!
Locale functionality is not implemented on your platform or the specified locale does not exist. Language translation may not work.
See the troubleshooting guide on zenphoto.org for details.[/b]

[b]PHP mbstring package [is not present and iconv() is not working]
Error!
You need to install the mbstring package or correct the issue with iconv(()[/b]

PHP MySQL support
zp-config.php file

[b]Strict Permissions [is not in effect]
Warning!
When this option is not in effect, file and folder permissions are relaxed. This could constitute a security risk so it is recommended that you enable Strict Permissions. However, on some servers Zenphoto does not function correctly with strict file/folder permissions. If you enable this option and Zenphoto has permission errors, run setup again and disable the option.

Click here to use strict file/folder permissions.

NOTE: This option applies only to new files and folders created by Zenphoto. You may have to change permissions on existing ones to resolve problems.[/b]

MySQL setup in zp-config.php
MySQL version 4.1.22
Connect to the database xxxxxxx
MySQL SQL mode
MySQL access rights
MySQL show tables found: zp_administrators, zp_admintoalbum, zp_albums, zp_captcha, zp_comments, zp_images, zp_obj_to_tag, zp_options, zp_tags

[b]MySQL $conf["UTF-8"] [is not set true]
Warning!
You should consider porting your data to UTF-8 and changing the collation of the database fields fields to utf8_unicode_ci and setting this true. Zenphoto works best with pure UTF-8 encodings.[/b]

[b]Zenphoto core files [Some files are missing or their filemtimes seem out of variance]
Warning!
Perhaps there was a problem with the upload. You should check the following files:
.htaccess
zp-core/zp-config.php.source[/b]

.htaccess file (RewriteEngine is ON)
.htaccess RewriteBase is /version2/gallery/1.2.5
albums folder
cache folder
locale folders

Database tables to update: zp_options, zp_albums, zp_images, zp_comments, zp_administrators, zp_admintoalbum, zp_tags, zp_obj_to_tag, zp_captcha.


Thanks!




Lots of errors upgrading - acrylian - 2009-07-20

These are mostly warnings and they are also explained. The most important one is about "Zenphoto core files". You need to (re)upload these files.




Lots of errors upgrading - sbillard - 2009-07-20

You should probably clean out all the zenphoto files and re-upload. Most likely you have a mixed set of files from various zenphoto versions. You should always remove the files of the previous version to prevent possibilities like this.