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!
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.
try putting this in your .htaccess file... <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> PHP:
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.
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. Thanks SmallPotatoes! That was exactly my problem and you have a sharp eye for noticing it!