I just updated from v. 1.4.3 to 1.4.5.8. When I try to add a new image I get the following message:
Fatal error: Out of memory (allocated 11796480) (tried to allocate 40006 bytes) in /home/oneclicks_10384/photos.bluelioninstruments.com/zp-core/admin.php on line 511
I tried uploading a 80k image and got the same message.
I uploaded all three upload plugins and have the same problem with all of them.
The site is hosted by Dreamhost. I checked forums and thought it might be the PHP version, (it is running on 5.3). PHP 5.5 is not available for zenphoto from this host and I can't change hosts.
If the problem is the PHP version, then how do I get back to version 1.4.3 which worked fine.
PHP 5.2+ is actually fine. We don't test on 5.5 yet specifially but 5.4.
The file size does not matter, the file dimensions do. Please read here about the common issues with images:
http://www.zenphoto.org/news/problems-with-albums-and-images
It could very well be corrupted meta data.
Thanks for the reply. The test image I tried has the dimensions of 144 x 122. The gallery does not have a huge number of images and I've been successfully uploading photos for the past two years. I've never had this issue before.
In addition, now the default template is no longer working, so photos show on white page, single column.
If it is corrupted meta data, how do I fix that? (Sorry, I'm not a beginner but I'm certainly far from being an expert.)
Would error logs help?
Is there any way to revert to the 1.4.3 version? It worked fine.
We really cannot recommend reverting, not only because of security issues fixed since then but alaso because we will not be able to help with such older versions.
To fix corrupt meta data try open the image in an image editor like photoshop and resave it as a new file.
I am sorry to be here again and thank you in advance for your patience. It's definitely gone from bad to worse.
I reinstalled the 1/4/5/8 version to make sure everything was installed correctly and to perhaps deal with the metadata issue.
Now, when I go try to view the gallery, I get basically a blank page with the heading: Index of /
Name Last modified Size Description
I'm totally lost at this point. I have no idea what has happened to my site or what I've done wrong. According to the Admin page, 1.4.5.8 is loaded; php v. 5.4.20; MySQli v. 5.1.56.
I've disabled the gallery link on my website because clicking on it generates a 404 not found page.
Please don't give up on me yet...I'm hoping you can help or at least get me pointed in the right direction.
Thank you SO much for any help and advice.
Additional info which may be helpful (or not!):
In the ftp window, it shows the following hierarchy:
default
logs
photos.bluelioninstruments.com
themes
zp-core
When I did the upgrade, it said to only upload the themes foler, index.php and zp-core folder from the zip file.
Thank you both for the replies. The original zenphoto (v. 1.4.3) was a oneclick install. It worked great except for the search function. (That's what I went to fix when the meltdown began!).
When I uploaded the new version yesterday, I selected overwrite the older files option.
Should I just start from scratch? I'm thinking my gallery is no longer linked to the website; it was set up as a subdomain and does not show up when I check the remote site files for www.bluelioninstruments.com. HOWEVER--it never showed up before (maybe that's the sub domain part?).
I am way in over my head, I can tell, and as you can see, it's just getting worse. I'm willing to start from scratch if that's the best thing to do; if so, how do I uninstall it? Just delete all the files via ftp?
Thanks again for you help--please don't think I take it for granted!
I hope you have backups of your albums/images and possibly a custom theme because it doesn't look they are still present.
(not sure what is in your themes folder)
I suggest you start from scratch and use FTP to upload the necessary files/folders. Do not use the one-click installer!
Please read these instructions carefully:
http://www.zenphoto.org/news/installation-and-upgrading
Thanks Fretzl--I was quickly coming to the same conclusion. I am/was using the default template. Can you allow me two more questions?
I assume I delete all the files on the current messed-up site? Should I start with a new folder name as if the former site never existed?
I downloaded the albums folder to my local site on Dreamweaver for backup. Do I just upload the album files after the new install and will they automatically replace the empty album file, or do I have to do something else?
Thanks SO much.
I'm resending this post a third time as it's not showing up in the forum and I'm not sure why. (I apologize in advance if I'm doing something wrong!)
I did a completely new install of 1.4.5. Finally got the setup php to run. Initially, it showed warnings and errors, and helped me set up the MySQL database info. It appeared that there were files missing from the upload, so I tried reloading. When I went through the setup again, I got a very different error and warning page and it looks as though so much is wrong I don't even know where to begin.
For example, I don't have a clue how to change the php display error from enable to disable. There is nothing on my webhost's site that gives me that option, so I'm thinking it must be in the zenphoto files somewhere, but where?
I know it's frustrating to work with someone who apparently knows so little, but I had no problems with 1.4.3. I should never have tried to upgrade! I'm copying the error/warnings in a separate post and hope that this time, the posts will go through.
Thanks for your incredible patience.
I figured out that I can't copy and paste the error/warnings and have the post go through.
I don't know how to get them to you. Can I copy and paste the link to the page?
Here's a few sample errors:
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.
Warning: filemtime(): stat failed for /home/bluelion/bluelioninstruments.com/inlay gallery/zp-data/zenphoto.cfg.php in /home/bluelion/bluelioninstruments.com/inlay gallery/zp-core/setup/index.php on line 105
Warning: fopen(/home/bluelion/bluelioninstruments.com/inlay gallery/zp-data/setup.log): failed to open stream: Permission denied in /home/bluelion/bluelioninstruments.com/inlay gallery/zp-core/setup/setup-functions.php on line 405
Warning: chdir(): Permission denied (errno 13) in /home/bluelion/bluelioninstruments.com/inlay gallery/zp-core/setup/index.php on line 571
You should use the code escape character, the "peck mark" (Which naturally cannot be reproduced here) to enclose these error messages. Of course, if you tried to copy a whole error log that was probably too big a post and considered spam.
Your error messages indicate that there is a problem with the permissions settings on of your install vs. your server. There is no straight forward answer to this problem as it is most likely a server configuration issue.
But suffice it to say, Zenphoto needs to be able to read its files and folders and will need to be able to write to some of them.
Thanks for the quick reply. I guess the best way to deal with this is one thing at a time. I do know how to change permissions via FileZilla, but don't know what to change them to. The only reference I've found is permission zp-data folder should be set to 0600. I've done that.
Is there a "default" number to set all the permissions to?
Here are the settings for the folders:
zp-data (0600)
albums, cache, cache_html, doc_files, plugins, themes, uploaded, zp-core [all are (0755)]
.htaccess (0444)
CHANGELOG.md, index.php, robots.txt are all (0644)
Quote:But suffice it to say, Zenphoto needs to be able to read its files and folders and will need to be able to write to some of them.
What will work depends on how you have things configured. Can't help much more than the above repeated quote. The settings you show will work on properly configured servers. That they do not work on yours indicates you need to do some research.