I've gone through all the advice in the forum and the FAQ and haven't been able to find anything that works.
Here is my gallery: http://www.housing.uwaterloo.ca/galleries/
Here is my phpinfo: http://www.housing.uwaterloo.ca/phpinfo.php
I have:
Any idea of what could be going wrong here? I'm about ready to give up and go look for something else
Megan-
Don't go away. We'll be glad to help sort it out for you as best we can.
Please post a copy of your zp-config.php file and your .htaccess file (make sure you blank out the username and password from your zp-config file). That way we can take a peek at what is going on a bit better.
The images are definitely there, see:
http://www.housing.uwaterloo.ca/galleries/albums/test-album/frontdesk2.jpg
We've seen this before, just not sure exactly why it happens in some instances.
Here's my zp-config:
`
`
.htaccess:
`
RewriteEngine On
RewriteBase /galleries
RewriteRule ^admin/?$ zen/admin.php [R,L]
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^.*$ - [R,L]
RewriteRule index.php$ index.php [L,QSA]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9-_]+)/?$ index.php?p=$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/([^/]+)$ zen/i.php?a=$1&i=$2 [L,QSA]
RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]
`
Thanks for helping
Just to confirm, zg_ is your correct MySQL prefix? Do you have the ability to look into your database using phpmyadmin, and see if there is actually data in there?
And also, I blanked out the admin username/password for you on your post (anyone could get into your admin interface using that.)
Your PHPinfo looks OK, safe_mode is off, it was compiled with GD. Just for grins, comment out this line: $conf['mod_rewrite_image_suffix'] = '.php';
It shouldn't be used if mod_rewrite is off, but I just want to make sure.
How about the zg_ prefix? Is that correct?
That's all I wanted to know. No prefix is the usual default. Thanks!
OK. Still working, but running this query for images:
http://www.housing.uwaterloo.ca/galleries/zen/i.php?a=test-album&i=welcome.jpg&s=thumb
I get:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /fsys3/www/htdocs/infohous/galleries/zen/functions.php on line 87
which looks like something isn't able to get to the zen directory OR the functions.php isn't there.
Hmmm. Is the path above /fsys3/www/htdocs/infohous/galleries/zen/functions.php, does that look right?
OK, next question. Does your cache folder exist? If so, clear out all the entries in that folder for me please. Double check to see if the permissions are 777 (I know you did this already - just trying to be thorough).
There was just the test-album folder in there, no files. I deleted it, and I checked that the permissions were correct.
Edit: I was having some problems with permissions last week but it seems to be sorted now. I'm in a bit of a weird situation because I access the site directly through the network rather than uploading anything. It's easier most of the time, but it means attempting to set permissions through explorer. The albums and cache directories look to be set to 777. I'm trying to get SSH access to check that again.
Megan-
I found another article with a similar error:
http://www.zenphoto.org/support/topic.php?id=1022&replies=9#post-5588
Looking at your phpinfo, it states GD is installed, but that error may relate to GD either not working properly, or not configured correctly on the server you are on. It seems strange as phpinfo is reporting it is OK, but for some reason it can't access that imagecreatefromjpeg function.
Just for grins, could you check with your host (or whoever manages your server) and see if they can double-check whether GD is at issue? That will help me rule out that GD is OK. I also noted that jpeg support must be compiled with gd for this to work (after referencing the proper support articles.)
I looked at my phpinfo for comparison:
'./configure' '--prefix=/usr/local/php5' '--enable-fastcgi' '--with-mysql=/usr' '--enable-calendar' '--enable-force-cgi-redirect' '--with-config-file-path=/etc/php5/cgi' '--enable-trans-sid' '--with-gd' '--with-xml' '--with-xsl' '--with-ttf=/usr' '--with-freetype-dir=/usr' '--enable-exif' '--with-xslt' '--with-xslt-sablot=/usr' '--with-dom-xslt=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib-dir=/usr' '--with-pdo-mysql' '--enable-ftp' '--with-curl=/usr' '--with-pspell=/usr' '--enable-mbstring' '--with-mcrypt' '--with-mysqli' '--with-openssl=/usr' '--with-gettext'
Note the --with-jpeg-dir=/usr which does not exist in your implementation for some reason, which would account for the unknown function error.
So:
Let me know what you find out from your host. I'd be interested to see, as this would answer many questions for people on the forum, this is a frequent problem.
You want to ask them:
Here is the article I referenced in case they ask (from PHP.net):
http://us2.php.net/imagecreatefromjpeg
Note that they state the with-jpeg-dir needs to be compiled in the list before with-gd for it to recognize the compiled support correctly.
I've also noted in some reports older versions of PHP didn't work properly either (see article: http://www.zenphoto.org/support/topic.php?id=541&replies=16#post-2864) but Chilifrei reported that he tested on PHP 4.4.1 and it worked. I'm on PHP 5.2.2 (but then again it's Dreamhost, so they always are pushing the bleeding edge - for better or worse).
Megan-
As a network admin myself in my day job, I can understand why. Universities are always hit the hardest with people trying to exploit systems, and the less stuff you compile in your server to support these sorts of programs, etc. the better your security is.
Anyhow, let me know. I'll be glad to help further on the new server when you have it going.