Quantcast
Channel: Zenphoto forum
Viewing all 387 articles
Browse latest View live

acrylian on "Error when Upgrading from 1.4.4.4 to 1.4.5.1"

$
0
0

I would consider to move to another host. Access to the logs is really important for selfhosting. They really should make them available somehow. No reply is not a good sign I think.


moomoo on "problem with zenfolder"

$
0
0

Hi. I'm trying to launch ZenPhoto in a domain at Arvixe. Whenever I put zenphoto package in my root directory (elagraphy.com), zenPhoto successfully gets installed and I can upload a photo, but it doesn't show the photo in the gallery, neither the thumbnail nor the full image. The strange point is that the photo is available in the album folder but the browser doesn't have access to the image or to the album. When I add a directory to my root (elagraphy.com/zen) and this time put zenphoto package to that folder and setup it again, this time everything works and it shows the photos properly. I doubled checked the permissions of the uploaded photos and albums. In the former case it doesn't have read access while in the later form it does.

One solution is to use elagraphy.com/zen as my website, but I don't like it and want elagraphy.com to works properly. What is the solution? My initial guess is that something is wrong in uploader.php in the line that zenfolder is checked and when there is no zenfolder rather than the root directory it fails. I will appreciate if you help :)

acrylian on "problem with zenfolder"

$
0
0

Zenphoto runs fine in the root of a webspace domain actually and must not be installed in a folder. If it doesn't you will have to review error logs. Or since Arvixe advertises Zenphoto hosting you probably should ask them why this doesn't work.

My initial guess is that something is wrong in uploader.php in the line that zenfolder is checked and when there is no zenfolder rather than the root directory it fails.

The uploader does not require a "folder", it uploads to the albums folder. But you have to create albums within that, you cannot upload direclty to it.

tosca on "Upgrade to 1.4.5.2 impossible"

$
0
0

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
<br /><b>Notice</b>: Undefined index: mysql_user in <b>/homez.110/marienoe/www/photos/zp-core/setup/setup-sqlform.php</b> on line <b>74</b><br />

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.

sbillard on "Upgrade to 1.4.5.2 impossible"

$
0
0

The first error indicates a problem with your configuration file. Probably such a problem was the initial issue with you site as well.

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.

tosca on "Upgrade to 1.4.5.2 impossible"

$
0
0

The zenphoto.cfg file seems to be badly damaged, with lines going like this $conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = "$conf['db_software'] = forever!

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!

tosca on "Upgrade to 1.4.5.2 impossible"

$
0
0

Sorry sbillard, I didn't see your answer at first (once more time, forgot to subscribe to the feed...)

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.

tosca on "Upgrade to 1.4.5.2 impossible"

$
0
0

In fact, the server is OK, as I have access to my root page and to other parts of the website. The 500 error seems to be only on the Zenphoto gallery.

Anything else has changed in the new release? According to my provider documentation, 500 errors are often related to htaccess files.


sbillard on "Upgrade to 1.4.5.2 impossible"

$
0
0

The .htaccess file is greatly changed (simplified) but old files should work, they just have redundant redirects. You should be able to remove the .htaccess file as well so long as you have not modified it.

500 errors are also the result of file permission errors on php script files, so you should also check that.

tosca on "Upgrade to 1.4.5.2 impossible"

$
0
0

Thanks for your answer.
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.

telemarknerd on "Unable to run setup program in upgrade from 1.4.4 to 1.4.5.5"

$
0
0

I have just tried updating from zp 1.4.4 to 1.4.5.5. I followed the upgrading directions in the User Guide, and deleted the index.php, /zp-core, and /themes, and then installing the new ones.

During the setup program, I remember there was a drop-down menu that allowed me to set different permission levels, and I selected the top option, I believe it was "read only", up from "strict" where it had been automatically.

Since then, my gallery page just reads:

Warning: eval() [function.eval]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/jrm/public_html/Gallery/zp-core/functions-basic.php(113) : eval()'d code on line 84

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/jrm/public_html/Gallery/zp-core/functions-basic.php(113) : eval()'d code on line 84

Warning: header() [function.header]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/jrm/public_html/Gallery/zp-core/reconfigure.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/jrm/public_html/Gallery/zp-core/functions-basic.php(113) : eval()'d code:84) in /home/jrm/public_html/Gallery/zp-core/reconfigure.php on line 36

I have tried deleting the new index.php, /zp-core, and /themes, and reinstalling the old 1.4.4 version, and the setup program starts up and the gallery works fine like before. However, now every time I try to redo the upgrade, it goes strait to the above warning and error page, and I can't get it to run the setup program again with 1.4.5.5 to change the permissions back to 'strict'.

Is there another file I should be deleting to try to start over with the upgrade in order to be able run the setup program again?

I read the Permissions for Zenphoto files and folders article in the User Guide, but I didn't understand how to change these without running the setup program, which I can't seem to do...

Thanks

I am using a custom theme based on the default theme.

acrylian on "Unable to run setup program in upgrade from 1.4.4 to 1.4.5.5"

$
0
0

The strictest permission setting does not work on all servers (on my own shared hosting for example). Try setting one below. Unless you use 777 all is generally fine.

As the user guide entry tells you need to set permissions via your FTP client otherwise.

telemarknerd on "Unable to run setup program in upgrade from 1.4.4 to 1.4.5.5"

$
0
0

Thanks Acrylian,

Just to check whether I've understood the user guide:

Using Filezilla, I've right-clicked on each zenphoto folder and selected "File permissions", on the "change file attributes" dialogue, I've then entered numeric value of 755, checked "recurse into subdirectories and "apply to directories only".

I've then gone to each folder again, and entered numeric value of 644, recurse into subdirectories, then selected "apply to files only".

Have I changed permissions correctly, or are there folders that should have been done differently?

Thanks,

acrylian on "Unable to run setup program in upgrade from 1.4.4 to 1.4.5.5"

$
0
0

That sounds right that way. If it works it should be good, otherwise you might have to contact your host.

If the users the script runs is not the same only they can solve it. As mentioned on the user guide article - if you still have problems point them there.

telemarknerd on "Unable to run setup program in upgrade from 1.4.4 to 1.4.5.5"

$
0
0

Shoot. It didn't work.

I am having trouble understanding why when I delete the zp core and themes folders and the index file, and re install the versions from my old 1.4.4 download, everything works fine and setup runs. But when I re-install those folders and file from the 1.4.5.5 download, I keep getting the blank page with the warnings above and setup won't run.

The really confusing thing for me is that the first time I ran the 1.4.5.5 update, setup ran fine until I changed the permissions dialogue. Is there no simple way to just undo those changes?

Thanks


sbillard on "Unable to run setup program in upgrade from 1.4.4 to 1.4.5.5"

$
0
0

From your reported errors something seems strange with your configuration file.

Line 84 should be a comment line, so not cause any errors in the first place. In particular, nothing in the configuration file would normally deal with the system time.

All this could be related to the permissions of the configuration file, but that is really a stretch. But look at your configuration file and compare it to the template in the zp-core folder.

Anyway, you may find that having set permissions to "read-only" even your FTP program cannot see the files and thus not remove them. Perhaps your host has a control panel application for file management that can see and remove these files/folders.

telemarknerd on "Unable to run setup program in upgrade from 1.4.4 to 1.4.5.5"

$
0
0

Thanks sbillard, I tried using the cpanel application for deleting and re-uploading the file/folders instead of Filezilla, but there was no change in the outcome.

I contacted my host and they tried changing a few things, but I am still not able to run the setup program...

The conversation with the host was as follows:

Host:I have now corrected the complete permission of your account. Can you please try again?

Me: I've tried again and still get the same warning messages. I deleted the file and folders and re-uploaded them and get the same thing.

Host: I have edited your php.ini file and added date.timezone settings to point to Toronto. Now the warning message about timezone settings is gone. And also I have changed Output buffering to 'On' in php.ini. Now you are getting an error
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/jrm/public_html/Gallery/zp-data/zenphoto.cfg.php on line 84 . It seems to be a syntax error in php file zenphoto.cfg.php. Please contact your programmer for help with this.

So now this is the only error message I am getting. Line 84 of this file seems to make more sense, it seems to be part of the path overrides. There is a note above here "

Uncomment the following two lines ONLY IF YOU'RE HAVING PROBLEMS,
// like "file not found" or "not readable" errors.
// These allow you to override Zenphoto's detection of the correct paths
// on your server, which might work better on some setups"

Are the two lines to uncomment line 76 and 77?:
// define('WEBPATH', '/zenphoto');
// define('SERVERPATH', '/full/server/path/to/zenphoto');
?

Does this seem in line with the error message?

sbillard on "Unable to run setup program in upgrade from 1.4.4 to 1.4.5.5"

$
0
0

NO, The error message is complaining about a missing => operator. That error cannot happen within a comment (things starting with //)

There is a template for the configuration file within the zp-core folder. You should compare what you have to this template. Line 84 of a normal config file would be the // Path Overrides line.

Maybe the quickest solution would be for you to delete your config file and let it be built again by setup. Of course, be sure you have noted all the database credential information as you will need to re-supply it to the setup program.

telemarknerd on "Unable to run setup program in upgrade from 1.4.4 to 1.4.5.5"

$
0
0

Deleting the zenphoto.cfg.php file in the zp-data folder seems to have done the trick, I had to delete the new htacess file as well and then the setup program ran and everything seems to have updated successfully.

Thanks again for the speedy help!

wearwolfie on "Zenphoto has detected a change in your installation"

$
0
0

I had nag-wear relating to this for a while whenever i was managing my site. It is now all that is displayed at the site url ie the site had 'died'!! I have over 5500 images stored and cannot access anything, more importantly neither can my visitors.

All I get is the following - is there a known cure or have i lost 12 months work??

------------------------------------------------------------

The script template-functions.php has changed.
The script functions-filter.php has changed.
The script lib-auth.php has changed.
The script lib-utf8.php has changed.
The script functions.php has changed.
The script functions-basic.php has changed.
The script functions-controller.php has changed.
The script functions-image.php has changed.
Your server software has changed from Apache to Apache.
Zenphoto 1.4.4.1[596740f651] has been copied over 1.4.4.1[596740f651].
Your installation has moved from /home99a/sub005/sc62105-HHGW/www/wearwolfie to /home99a/sub005/sc62105-HHGW/www/wearwolfie.
Your database software has changed from MySQL 5.5.30 to MySQL 5.5.30.

Please reinstall the following setup files from the 1.4.4.1 [596740f651] release:

zp-core/setup/index.php
zp-core/setup/setup-functions.php
zp-core/setup/setup-option-defaults.php
zp-core/setup/setup-primitive.php
zp-core/setup/setup-sqlform.php
zp-core/setup/setup.css
zp-core/setup/setup_permissions_changer.php
zp-core/setup/setup_pluginOptions.php
zp-core/setup/setup_set-mod_rewrite.php
zp-core/setup/setup_themeOptions.php

The change detected is critical. You must run setup for your site to function.

Viewing all 387 articles
Browse latest View live