Please help! I have spent almost all day on this. I have uploaded few test images successfully, but when I am trying to open my gallery (www.rosalyn-photography.com/gallery) i see blank page. If I will show direct path to the picture it opens it.
It is driving me mad!
If somebody helps I will be very grateful.
_________
This is an Apache Error Log:
PHP Fatal error: main() [
function.require]: Failed opening required 'classes.php' (include_path='.:/usr/share/pear') in /home/default/rosalyn-photography.com/user/htdocs/gallery/zp-core/template-functions.php on line 8
PHP Warning: main(classes.php) [
function.main]: failed to open stream: Operation not permitted in /home/default/rosalyn-photography.com/user/htdocs/gallery/zp-core/template-functions.php on line 8
PHP Warning: main() [
function.main]: open_basedir restriction in effect. File(/usr/share/pear/classes.php) is not within the allowed path(s): (/tmp:/home/default/rosalyn-photography.com) in /home/default/rosalyn-photography.com/user/htdocs/gallery/zp-core/template-functions.php on line 8
________
please please please help me!
Comments
http://www.rosalyn-photography.com/gallery/index.php?album=test
gives blank page.
http://www.rosalyn-photography.com/gallery/albums/
gives me a "Forbidden" warning.
http://www.rosalyn-photography.com/gallery/albums/test/Bride1.jpg
opens the image.
Any ideas how can make it all work?
.htaccess is amended and copied in "gallery" folder.
Albums and cache are set to 777.
zp_config.php is changed too... like have ben asked.
It looks to me i'm doing it all right, but it don't want to work...
I am going mental here.....
Are you really sure your ISP provides mod_rewrite?
Does it work without the htaccess file?
`# htaccess file for zenphoto
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.
RewriteEngine Off
#### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos) !!!
RewriteBase /gallery
####
RewriteRule ^admin/?$ zp-core/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]
#### Rewrite rule addtion for seach
RewriteRule ^page/([A-Za-z0-9-_]+)/([A-Za-z0-9-_]+)/?$ index.php?p=$1&words=$2 [L,QSA]
RewriteRule ^page/([A-Za-z0-9-_]+)/([A-Za-z0-9-_]+)/([0-9]+)/?$ index.php?p=$1&words=$2&page=$3 [L,QSA]
#### Rewrite rule addtion for archive-/date-search (needed to be separarted because of the same structur)
RewriteRule ^page/([A-Za-z0-9-_]+)/archive/([A-Za-z0-9-_]+)/?$ index.php?p=$1&date=$2 [L,QSA]
RewriteRule ^page/([A-Za-z0-9-_]+)/archive/([A-Za-z0-9-_]+)/([0-9]+)/?$ index.php?p=$1&date=$2&page=$3 [L,QSA]
RewriteRule ^(.*)/image/(thumb|[0-9]{1,4})/([^/\]+)$ zp-core/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^(.*)/image/([^/\]+)$ zp-core/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]
`
it doesn't work if I change "RewriteEngine Off" to "RewriteEngine On"
and it doesn't work if i delete htaccess either.
i am not sure if my ISP provides mod_rewrite
i am baffled.
[Fri Jan 11 17:21:52 2008] [error] [client 82.68.85.73] File does not exist: /home/default/rosalyn-photography.com/user/htdocs/favicon.ico, referer: http://www.rosalyn-photography.com/gallery/
[client 82.68.85.73] PHP Fatal error: main() [function.require]: Failed opening required 'classes.php' (include_path='.:/usr/share/pear') in /home/default/rosalyn-photography.com/user/htdocs/gallery/zp-core/template-functions.php on line 8, referer: http://www.rosalyn-photography.com/gallery/zp-core/admin.php?page=home
[client 82.68.85.73] PHP Warning: main(classes.php) [function.main]: failed to open stream: Operation not permitted in /home/default/rosalyn-photography.com/user/htdocs/gallery/zp-core/template-functions.php on line 8, referer: http://www.rosalyn-photography.com/gallery/zp-core/admin.php?page=home
[client 82.68.85.73] PHP Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/classes.php) is not within the allowed path(s): (/tmp:/home/default/rosalyn-photography.com) in /home/default/rosalyn-photography.com/user/htdocs/gallery/zp-core/template-functions.php on line 8, referer: http://www.rosalyn-photography.com/gallery/zp-core/admin.php?page=home
any ideas what does it mean???
The messages above are saying that the zenphoto scripts are not within the "blessed" file paths so they are being denied doing something.