Member
Member
max   03-12-2006, 08:36
#1

Ok, I got the installation to the point where I can create albums in the albums directory, and see themwhen I goto www.mydomain.com/gallery, but, when I add photos, it creates an album and puts the description in, but will not display the photo or the thumbnail. I have tried for hours and can't get it, I need some help, please.

Here are my .htaccess and config files:

HTACCESS:::::::::::

htaccess file for zenphoto


NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.


RewriteEngine On

!!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!


RewriteBase /gallery

RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^.*$ - [R,L]

RewriteRule ^admin/?$ zen/admin.php [R,L]

RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^([^/]+)/?$ index.php?album=$1 [L,QSA]
RewriteRule ^([^/]+)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^([^/]+)/image/(thumb|[0-9]{1,4})/([^/\]+)$ zen/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^([^/]+)/image/([^/\]+)$ albums/$1/$2 [L]
RewriteRule ^([^/]+)/([^/\]+)$ index.php?album=$1&image=$2 [L,QSA]

ZP CONFIG.PHP

[/list]
[/list]
[/b][/i]

Member
Member
max   03-12-2006, 16:12
#2

never mind, found the problem, it was in my php.ini file, the "upload_max_filesize" was set to 10 not 10M.

I noticed this when I was trying to upload files to an album, it created the album but would not display or create a thumbnail or picture, on the upload page, it seemed like it completed, I didn't get any errors, it looks like the code for checking if the picture exists when uploaded needs to be fixed, but I did notice that under the upload tab it said;

The maximum size for any one file is 10B. Don't forget, you can also use FTP!

Then I looked for this and found this in admin.php and found that it looked for this in php.ini, I checked my php.ini file and found that I must have accidently left out the M after the 10 in the upload_max_filesize entry. once I corrected that, when I went to the upload tab it now looked like this;

The maximum size for any one file is 10MB

and everything worked!!!

Hope this helps someone.

Developer
Developer
trisweb   05-12-2006, 03:23
#3

Very helpful, thanks!

In the next version, and currently in SVN, Zenphoto will try to set the upload_max_filesize and memory_limit to a reasonable size with an ini_set call, which might work on some systems and avoid problems like this.

Member
Member
max   05-12-2006, 06:17
#4

you're welcome, great to see a usefull and simple script not loaded with a bunch of features you don't need.

Junior Member
Junior Member
jgrady   13-12-2007, 19:22
#5

Howdy,

I tried altering these:

  • .htaccess --> did not work
  • zp-config.php --> did not work.

To make the upload size increase work, do this:

Make a php.ini file. And, put in the /zp-core directory. The php.ini only needs these two lines and nothing else.

post_max_size = 128M;
upload_max_filesize = 128M;

I made the upload size huge, but I'm the only one posting, so am not worried about others abusing the upload size.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.