Menu

open_basedir issue with mediaviewer.php

Nick Veit
2010-04-07
2013-05-30
  • Nick Veit

    Nick Veit - 2010-04-07

    With a blank "open_basedir" mediaview.php works fine but its not secure.

    With it set to c:\inetpub (on windows 2003 server) I get the following error:

    ERROR 2: file_exists(): open_basedir restriction in effect. File(images/facts/00_FILE_C:\I.gif) is not within the allowed path(s): (c:\inetpub)
    0 Error occurred on in function file_exists
    1 called from line 389 of file class_event.php in function Icon
    2 called from line 159 of file functions_print_facts.php in function print_fact
    3 called from line 166 of file mediaviewer.php
    Warning: file_exists(): open_basedir restriction in effect. File(images/facts/00_FILE_C:\I.gif) is not within the allowed path(s): (c:\inetpub) in C:\Inetpub\family\PhpGedView\includes\classes\class_event.php on line 389
    ERROR 2: file_exists(): open_basedir restriction in effect. File(images/facts/000_FILE_C:\I.gif) is not within the allowed path(s): (c:\inetpub)
    0 Error occurred on in function file_exists
    1 called from line 389 of file class_event.php in function Icon
    2 called from line 159 of file functions_print_facts.php in function print_fact
    3 called from line 166 of file mediaviewer.php
    Warning: file_exists(): open_basedir restriction in effect. File(images/facts/000_FILE_C:\I.gif) is not within the allowed path(s): (c:\inetpub) in C:\Inetpub\family\PhpGedView\includes\classes\class_event.php on line 389
    ERROR 2: file_exists(): open_basedir restriction in effect. File(images/facts/FILE_C:\I.gif) is not within the allowed path(s): (c:\inetpub)
    0 Error occurred on in function file_exists
    1 called from line 389 of file class_event.php in function Icon
    2 called from line 159 of file functions_print_facts.php in function print_fact
    3 called from line 166 of file mediaviewer.php
    Warning: file_exists(): open_basedir restriction in effect. File(images/facts/FILE_C:\I.gif) is not within the allowed path(s): (c:\inetpub) in C:\Inetpub\family\PhpGedView\includes\classes\class_event.php on line 389 External File

    How should I resolve this.

     
  • Gerry Kroll

    Gerry Kroll - 2010-04-07

    Please re-post this request for help in the Help forum.  I won't be able to help you, but I'm sure that someone else can.

     
  • Stephen Arnold

    Stephen Arnold - 2010-04-07

    As Gerry pointed out, HELP requests belong in the Help forum, but the error itself has clearly told you the issue, none of which is a PGV problem:
    "File(images/facts/00_FILE_C:\I.gif) is not within the allowed path(s): (c:\inetpub)"
    The image(s) you are trying to serve, for some reason you've configured your server with open_basedir, are not in the path you've set.
    -Stephen

     
  • Nick Veit

    Nick Veit - 2010-04-07

    Thanks, I'll post again in the help forum.

    I understand the message, I have no idea why the software is trying to do a "file_exists" on that image (does not exist) in that corrupt path name.

     

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.