Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorjgjh151
    • CommentTimeJan 13th 2010 edited
     
    I had the gallery working on my dev server, when I moved to production, links on the thumbnails broke.

    <strong>Example: http://www.mydomain.netphp4/?level=picture&id=1</strong>
    There is no slash after the .net being placed into the links.

    <strong>I also get the following error when clicking save in admin area: </strong>

    Not Found
    The requested URL /gallery/plog-admin/php4 was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    All gallery files are in "gallery" folder. All worked fine on dev server.

    I have edited plogger_config in DB to reflect the new server location. New server runs php 4+ and mysql 4. (Hostway account)
    •  
      CommentAuthorsidtheduck
    • CommentTimeJan 13th 2010
     
    Try commenting out this code in plog-globals.php:
    // clean up $_SERVER['PHP_SELF'] so it's safe to use against potential XSS attacks
    $phpself = basename(realpath($_SERVER['SCRIPT_FILENAME']));
    $_SERVER['PHP_SELF'] = substr($_SERVER['PHP_SELF'], 0, strpos($_SERVER['PHP_SELF'], $phpself)) . $phpself;

    by adding slashes like this:
    // clean up $_SERVER['PHP_SELF'] so it's safe to use against potential XSS attacks
    //$phpself = basename(realpath($_SERVER['SCRIPT_FILENAME']));
    //$_SERVER['PHP_SELF'] = substr($_SERVER['PHP_SELF'], 0, strpos($_SERVER['PHP_SELF'], $phpself)) . $phpself;
    • CommentAuthorjgjh151
    • CommentTimeJan 14th 2010
     
    <strong>That did the trick! Thank you.</strong>