--> Page: //homepages/8/d67449238/htdocs/gallery//gallery/ not found! <--
well "/homepages/8/d67449238/htdocs" is the absolute path (document root) to my / dir.
i just made ONE "gallery" dir with the "__phpAutoGallery" dir and the .htaccess file within which looks like this (RewriteBase makes no difference):
which shows no pics but reveals some smarty error like
<b>Warning</b>: Smarty error: math: parameter x is empty in <b>/homepages/8/d67449238/htdocs/gallery/__phpAutoGallery/include/smarty/Smarty.class.php</b> on line <b>1042</b>
any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I solved a similar problem...
The DocumentRoot was something like /usr/home/foo
But /usr/home was a soft link pointing to /home ...
That expanded to str_replace("/usr/home/foo/", '', "/home/foo") when getting the relative path...
If one changes the row
$filesystem_root_path = str_replace($HTTP_SERVER_VARS['SCRIPT_NAME'], "/", $HTTP_SERVER_VARS['SCRIPT_FILENAME']);
to
$filesystem_root_path = str_replace($HTTP_SERVER_VARS['SCRIPT_NAME'], "/", realpath($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
it should work much better traversing such links...
/Eig
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think the problem really is that realpath was applied in some places and not in others. Here in my patch I've removed some realpath's instead. And that works for me.
hey guys, i get the following:
--> Page: //homepages/8/d67449238/htdocs/gallery//gallery/ not found! <--
well "/homepages/8/d67449238/htdocs" is the absolute path (document root) to my / dir.
i just made ONE "gallery" dir with the "__phpAutoGallery" dir and the .htaccess file within which looks like this (RewriteBase makes no difference):
RewriteEngine on
RewriteBase /gallery/
RewriteCond %{REQUEST_URI} !.*__phpAutoGallery/wrapper\.php.*
RewriteRule .* /gallery/__phpAutoGallery/wrapper.php [NE,QSA,L]
just for fun i tried wrapper.php:
http://www.egelsbach-airport.com/gallery/__phpAutoGallery/wrapper.php
which shows no pics but reveals some smarty error like
<b>Warning</b>: Smarty error: math: parameter x is empty in <b>/homepages/8/d67449238/htdocs/gallery/__phpAutoGallery/include/smarty/Smarty.class.php</b> on line <b>1042</b>
any ideas?
disregard - i will try something different
I actually have the same problem. Would appreciate some help.
I solved a similar problem...
The DocumentRoot was something like /usr/home/foo
But /usr/home was a soft link pointing to /home ...
That expanded to str_replace("/usr/home/foo/", '', "/home/foo") when getting the relative path...
If one changes the row
$filesystem_root_path = str_replace($HTTP_SERVER_VARS['SCRIPT_NAME'], "/", $HTTP_SERVER_VARS['SCRIPT_FILENAME']);
to
$filesystem_root_path = str_replace($HTTP_SERVER_VARS['SCRIPT_NAME'], "/", realpath($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
it should work much better traversing such links...
/Eig
hmm...
i've removed the realpath in version 0.9.6
to the nobodies:
does putting it back in, solve the issue??
I had the same problem as described in the first post. Going back to 0.9.5 solved it...
Ka
I'am another nobody with that problems on softlinks.
Putting back the realpath helps.
I think the problem really is that realpath was applied in some places and not in others. Here in my patch I've removed some realpath's instead. And that works for me.
http://www.morch.com/misc/phpAutoGallery/
Peter
I had the exact same problem,
Changing to version 0.9.5 fixed it for me.