Menu

path and stuff

Help
2004-07-29
2013-04-08
  • Nobody/Anonymous

    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?

     
    • Nobody/Anonymous

      disregard - i will try something different

       
    • Nobody/Anonymous

      I actually have the same problem.  Would appreciate some help.

       
      • Nobody/Anonymous

        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

         
    • Martin Theimer

      Martin Theimer - 2004-08-16

      hmm...
      i've removed the realpath in version 0.9.6

      to the nobodies:
      does putting it back in, solve the issue??

       
      • Nobody/Anonymous

        I had the same problem as described in the first post. Going back to 0.9.5 solved it...

        Ka

         
    • Nobody/Anonymous

      I'am another nobody with that problems on softlinks.
      Putting back the realpath helps.

       
    • Peter Valdemar Mørch

      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

       
    • Nobody/Anonymous

      I had the exact same problem,

      Changing to version 0.9.5 fixed it for me.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.