I have a problem with not being able to display photos in the media gallery. I have changed my 'uploads' folder to an unusual setting and I assume this is the problem. To explain...
I decided to add a serendipity blog to my website at http://riversidedrive.org.uk The blog is at http://riversidedrive.org.uk/serendipity/index.php
and like it so much I am going to change the site to be based on serendipity + static pages. My old site uses Gallery2 for displaying photos. I did investigate embedding Gallery2 into Serendipity but have decided the extra complexity isnt worth it and I have decided to just use the standard Serendipity Media gallery and the Gallery plugin . I could just move all the photos from the Gallery2 location to the serendipity uploads folder but I thought it would be easiest to just point serendipity to the existing Gallery2 folder.
My Gallery2 albums are outside my webroot as recommended and are at /temp/g2data/albums/
I have changed my serendipity configuration under paths to
Upload path ../../temp/g2data/albums/
Relative Upload path ../../temp/g2data/albums/
My Full path is /home/accountname/public_html/serendipity/
When I then click on Media Library it goes away and thinks about it for a while giving this error
Fatal error: Maximum execution time of 30 seconds exceeded in /home/accountname/public_html/serendipity/include/functions_images.inc.php on line 1255
I assume this is just because there are quite a few folders and although a Fatal error it shouldn't be a problem? I then go back and click on Media Library again and all appears well. All the correct filenames are present and checking via ftp a number of thumnail files have been created. Also under Manage Directories all the folders are there.
The only thing missing is that the thumbnail images and actual photo images are not displayed.
Also taking the non admin view and looking at http://www.riversidedrive.org.uk/serend ... llery.html just displays and series of filenames.
I wondered if it was a permissions problem. These are my current settings
temp 777
g2data 705
albums 705
the default for folders under albums is 700 but I have experimented with 705 and 777 with no difference
With the Upload path set to the usual 'uploads/' folder all works fine.
Is it just that what I am trying to do is impossible because the folder is outside the webroot? If so how does Gallery2 handle this?
Cheers
Mike
Problem displaying media images after changing upload path
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Problem displaying media images after changing upload pa
Hi!
You are right, changing the upload path like this is not possible to work. You should copy the gallery files to your usual s9y "upload" directory. It needs to be within the s9y path structure to properly work.
Else, you would have needed to use "../temp" instead of "../../" because that would've moved the path outside your public_html dir structure.
I suggest to copy about 30-50 files to the real s9y upload folder and correct the path structure to this. Everytime you copied 30 files there, you access the media database, so that it can automatically import those 30 files into the database metastructure. This will help in not hitting your 30 second time limit span.
HTH,
Garvin
You are right, changing the upload path like this is not possible to work. You should copy the gallery files to your usual s9y "upload" directory. It needs to be within the s9y path structure to properly work.
Else, you would have needed to use "../temp" instead of "../../" because that would've moved the path outside your public_html dir structure.
This happens because you've (by default) enabled the s9y media database "automatic synchronisation" feature, which tries to look into a given directory and all its subdirectories for new files. There are too many files to be imported automatically in a configured 30 second timespan of your server host.When I then click on Media Library it goes away and thinks about it for a while giving this error
I suggest to copy about 30-50 files to the real s9y upload folder and correct the path structure to this. Everytime you copied 30 files there, you access the media database, so that it can automatically import those 30 files into the database metastructure. This will help in not hitting your 30 second time limit span.
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/