Need help! Rep will be given!

Discussion in 'PHP' started by NewTier, Jan 19, 2008.

Thread Status:
Not open for further replies.
  1. #1
    At a site that I'm trying to install. I get this error when I try accessing the admin panel or index!

    Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/full/path/to/site/templates/admin/loginForm.html) is not within the allowed path(s): (/home/co:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/sss3dco/public_html/aftersense/class/ClassAdmin.php on line 21
    
    Warning: fopen(/full/path/to/site/templates/admin/loginForm.html) [function.fopen]: failed to open stream: Operation not permitted in /home/co/public_html/aftersense/class/ClassAdmin.php on line 21
    No Datas
    PHP:
    What should I do to fix it? If you can take a look at it that would be even better!
     
    NewTier, Jan 19, 2008 IP
  2. mrankin

    mrankin Active Member

    Messages:
    383
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #2
    I'm not a PHP expert by any means, but what does line 21 of aftersense/class/ClassAdmin.php contain, as that seems to be yer problem.
     
    mrankin, Jan 19, 2008 IP
    NewTier likes this.
  3. DRoP

    DRoP Peon

    Messages:
    182
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    try putting this in your .htaccess file...

    <IfModule mod_security.c>
       SecFilterEngine Off
       SecFilterScanPOST Off
    </IfModule>
    PHP:
     
    DRoP, Jan 19, 2008 IP
    NewTier likes this.
  4. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You have failed to define something somewhere, so it is using a placeholder path: "/full/path/to/site/templates/admin/loginForm.html". Grep for "/full/path/to/site/templates" and you'll find your culprit.
     
    SmallPotatoes, Jan 19, 2008 IP
    NewTier likes this.
  5. NewTier

    NewTier Notable Member

    Messages:
    2,201
    Likes Received:
    196
    Best Answers:
    0
    Trophy Points:
    250
    #5
    I solved it! I changed the settings.php to the correct path, and I would check the page again to see what error would show up. And I kept adjusting the path.

    Thanks everyone for your suggestions! I've given REP to anyone. If you need anything, PM me, with reference to this thread. :D

    Thanks SmallPotatoes! That was exactly my problem and you have a sharp eye for noticing it!
     
    NewTier, Jan 19, 2008 IP
  6. Shazz

    Shazz Prominent Member

    Messages:
    8,395
    Likes Received:
    453
    Best Answers:
    0
    Trophy Points:
    330
    #6
    Thats now allowed on DP :eek:
     
    Shazz, Jan 19, 2008 IP
Thread Status:
Not open for further replies.