Hi, I just installed zehphoto, created test album and uploaded 3 photos. I checked permissions and folders set as recommended 0644/0755. When using &debug option, getting the following:
Zenphoto Error: the requested object was not found.
Album: albums/test/IMG_2465.jpg&debug
Please help
Comments
In any case what you really need to do is look into your server PHP error log and the debug log of Zenphoto on the backend.
Debug mode with &debug only works on running setup.
Also `albums/test/IMG_2465.jpg&debug` is the link to a direct image within the `albums` folder so can't work anyway as Zenphoto is not involved.
To enable debug mode you have to modify the DEBUG_*** constant defines within `zp-core/global-definitions.php`.
Anway, looking into the error log is most always already enough for this type of error as it most always comes down to these: http://www.zenphoto.org/news/problems-with-albums-and-images/
{850312:Fri, 26 Aug 2016 02:09:40 GMT}
i.php(test, IMG2477.jpg): $size=595, $width=, $height=, $cw=0, $ch=0, $cx=, $cy=, $quality=85, $thumb=, $crop=, $thumbstandin=, $passedWM=!, $adminrequest=, $effects=
{850312:Fri, 26 Aug 2016 02:09:40 GMT}
cacheImage($imgfile=IMG2477.jpg, $newfilename=/test/IMG2477_595.jpg, $allow_watermark=1, $theme=basic) $size=595, $width=, $height=, $cw=0, $ch=0, $cx=NULL, $cy=NULL, $quality=85, $thumb=, $crop= $image_use_side=longest; $upscale=0);
{850331:Fri, 26 Aug 2016 02:09:47 GMT}
Loading GD
Image filesize: 1890094
Debug i.php | Arguments:
size = 395
width =
height =
cw = 0
ch = 0
cx =
cy =
quality = 85
thumb =
crop =
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 13056 bytes) in /home/allwe2/public_html/photos/zp-core/lib-GD.php on line 91.
I understand it is problem with my php.ini setting. But my site is on shared server and I am not sure if will allowed to make any changes.
Here is what is there now:
upload_max_filesize =1G
post_max_size =1G
memory_limit =256M
max_file_uploads =20
file_uploads =On
But my php.ini wasn't loading and I needed to make changes in my .htaccess file by adding lines below
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/username/public_html
</IfModule>
Then everything started to work.
When I click on thumbnail, I can see smaller version of the picture, then I click again and see the full size. But on that page there is no navigation back to the previous page, the only way I can go back is to use 'Back' Button within web browser itself.
Is there 'back' page navigation option available or I have to make changes to php script. If so, are there some sample code to use?
If you really need the full image you can change the theme's image.php to show it directly instead of the sized image. Normally any hires full image might not be needed on a webpage for obvious size and speed reasons of course.