Loading...
 
Architecture / Installation

Architecture / Installation


Image from galleries not showing anymore after upgrade

posts: 12

Hello,

Due to some login problems (I wrote a post about that in the Usability forum), I decided to upgrade my website from 1.7.1 to 1.7.7... so I installed all the new files on my website (http://scoutsaintquirin.be.tf, it is a shared hosting), without touching the database.... After making some configuration about the /tmp directory (the Safe Mode is activated), I managed to get my website back... with one big problem: the image galleries (and thumbnails) refused to show up !

In can access anything in the database, upload files and images (I can see that it is uploaded in my directories), download files... but I can't SEE any images, the only thing I get is the "alt" text.

I checked GD and it is up and running. Do you see where the problem can be? I'm using a local /tmp directory, can it be the source of my problem ?

posts: 2881 United Kingdom

Hi

Image and File Galleries shouldnt use the tmp as there is a possibilty that this directory can get erased without warning, after all tmp = temporary. Really you should have a directory created like storage with 2 subfolders within called image and file, image and file are made writeable to apache and this path should also be set on admin->image galleries, which is where I think your problem lies. The admin screen is still set tot db storage.
or the path is incorrect.

Damian


posts: 12

Sorry I wasn't very clear in my previous post: the images are saved in a permanent directory (called vm008_imgs), not in the /tmp directory... The /tmp is only there for the upload. The permanent directory is written with the dash at the end. All this config was working before the upgrade.

I was just wondering if the /tmp directory was used in some way when an image was requested by the user... I guess no.

Maybe you have another idea to solve this problem?

Thank you !!


posts: 12

I found the problem! The guilty line was in show_image.php:

if($feature_galleries!=y) {
die
}

I don't know why (I didn't change anything about this option), but after the upgrade Tiki assumed that this option was 'n'... When I removed this line, everything was OK.

What is suprising is that, in the admin panel, this option stays activated. A bug somewhere?


posts: 73

I got my galleries to work, but the thumbnails won't automatically generate. The thumbnail is the same size as the original image. I guess I'll have to take down the image galleries on my forum.

I think my problem is related to the GD Library problem