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!
I have deleted everything and reinstalled again. Still same issue.
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?
this is what i have in htaccess:
`# htaccess file for zenphoto
RewriteEngine Off
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]
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]
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]
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
In my error log it keeps showing this:
[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???
There is some kind of server security enabled on your website. You probably will have to contact your provider to figure out what it is and how to fix it.
The messages above are saying that the zenphoto scripts are not within the "blessed" file paths so they are being denied doing something.