Member
Member
Megan   2007-07-30, 14:09
#1

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

Member
Member
thinkdreams   2007-07-30, 14:29
#2

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.

Member
Member
thinkdreams   2007-07-30, 14:33
#3

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.

Member
Member
Megan   2007-07-30, 14:36
#4

Here's my zp-config:

`

`

.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 /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]

Catch-all - everything else gets handled in PHP for compatibility.


RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]

`

Thanks for helping

Member
Member
thinkdreams   2007-07-30, 14:45
#5

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.

Member
Member
Megan   2007-07-30, 14:52
#6

Oops, missed that admin password. Thanks for fixing it!

I checked the database and there is data in there. I also commented out that mod_rewrite line.

Member
Member
thinkdreams   2007-07-30, 15:05
#7

How about the zg_ prefix? Is that correct?

Member
Member
Megan   2007-07-30, 15:12
#8

I'm not sure what you are asking. That is the prefix on the database tables.

Member
Member
thinkdreams   2007-07-30, 15:14
#9

That's all I wanted to know. No prefix is the usual default. Thanks!

Member
Member
thinkdreams   2007-07-30, 15:20
#10

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?

Member
Member
Megan   2007-07-30, 15:44
#11

Yes, that's where the functions.php file is, if that's what you're asking!

Member
Member
thinkdreams   2007-07-30, 16:43
#12

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).

Member
Member
Megan   2007-07-30, 16:54
#13

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.

Member
Member
thinkdreams   2007-07-30, 17:02
#14

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:

  1. You can directly link to the images, which means they are there.
  2. Your database is populated
  3. You cannot process the images from within zenphoto, meaning that something is at odds with the functions that call the image processing functions.

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.

Member
Member
Megan   2007-07-30, 17:06
#15

Okay, great! What exactly should I ask? If GD is working properly? Anything more specific or will that be enough info for them?

Member
Member
thinkdreams   2007-07-30, 17:22
#16

You want to ask them:

  1. Is GD compiled with JPG and PNG support? (PNG is not absolutely essential, but it should be there anyhow)
  2. Is with-jpeg-dir compiled as well?

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.

Member
Member
thinkdreams   2007-07-30, 17:26
#17

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).

Member
Member
Megan   2007-07-31, 19:24
#18

Hi,

I think they are going to give me access to a different server to try to put this on. I'll let you know how it goes (I work for a university - they usually don't keep that many scripts like this on the main web server. It's annoying!)

Member
Member
thinkdreams   2007-07-31, 20:14
#19

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.

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