Past Post:
http://www.zenphoto.org/support/topic.php?id=3829
Okay well, I dunno the problem, but I do believe new versions of zenphoto is taking up too much memory...some how, even modifying the php.ini file doesnt work (for me)...
I insisted that it did work in the past but not anymore..
GO HERE:
http://luckyshotphotos.com/zenphoto2/test/IMG_3828.JPG.php
Download the file, upload it to the latest zenphoto and see if its too big for you... It wont work for my current version (nightly build) last night
I went down the nightly build list and downlaoded an older version (randomly picked) and it works...
So... I am keeping this version
zenphoto version 1.1.6 [1567]
I've been having the same problem on a site I'm developing. From looking at what [i]code[/i] found, I tried reverting to an older version of i.php. This seemed to fix the problem. I then tried to narrow it down to what was different from version 1.1.7 to v1.2. I commented out the following code in i.php and this seemed to work, but don't ask me why:
`// Set the memory limit higher just in case -- supress errors if user doesn't have control.
/if (ini_get('memory_limit') < '128M') {/
@ini_set('memory_limit','128M');
/}/`
Right now im uploading my albums again to the /test/ directory of my site (nightly build) I had to modify the database to menually create an admin user since there is a bug... I am going to try and make identical sites except one version is older and works the newer doesnt... I am either confusing myself of you guys or both! I will try to get to the bottom of this... :S
Okay, two identical zenphoto setups...
Admin Created, photos uploaded...nothing else changed except for one thing...
http://luckyshotphotos.com/ 1.1.6 [1567]
http://luckyshotphotos.com/test/ 1.2 [2398]
I modified i.php and functions.php on the 1.2 version to modify the memory limit:
// Set the memory limit higher just in case -- supress errors if user doesn't have control.
@ini_set('memory_limit','128M');
I did that, but as you can see from the sites, its still not working...
Any ideas?
I have no idea how much bug fixing/changing code you guys have done...
I downloaded a program to compare files, I think the website here does the same but dunno how to work it
I compared my two zenphoto galleries, and wow some files have huge differences, some look almost completly re-written (for the most part)
I wouldn't even know where to look for a bug... :S
Well, I have no idea where to look, too, I did simply not work on those code parts. Actually the memory is not hardcoded, the lines tell Zenphoto to try to raise the memory limit if possible (it's not on my host so I get a warning). Actually I think this is something we should not do with Zenphoto at all since probably most people will be on shared hosts.
I guess we have to wait what the other devs say..
You have the option of changing it in your PHP.ini file which is the proper place to make the change. The code in zenphoto is there as a fallback. It will not work on all servers.
The proper place to make this change is in the PHP.ini. We will not be making an option for it, partly because we don't necessarily want to add to the memory footprint to get the option handler into i.php so it can figure out how much memory to request.