Joomla fopen permission denied

Hi,

So I have a joomla 1.6 website with the "kunena"-forum component and login module.

For some reason when a user is not logged in they seem to get following error:
Warning: fopen(/home/guardians/domains/outpostguardians.com/public_html/logs/error.php) [function.fopen]: failed to open stream: Permission denied in /home/guardians/domains/outpostguardians.com/public_html/libraries/joomla/error/log.php on line 191

Warning: Cannot modify header information - headers already sent by (output started at /home/guardians/domains/outpostguardians.com/public_html/libraries/joomla/error/log.php:191) in /home/guardians/domains/outpostguardians.com/public_html/plugins/system/remember/remember.php on line 54

Although I can't seem to see that error, I do however see a glimpse of that error (a fraction of a second in IE) when i login without entering any userdata (frontend).

Any ideas what it might be? I also downloaded the "admin tools core" from the akeeba website to set the permissions.
LVL 3
MutsopAsked:
Who is Participating?
 
hankknightCommented:
Joomla would like you to change the file permissions of the following file to 777
/home/guardians/domains/outpostguardians.com/public_html/logs/error.php

However there are a million reasons why that would be a bad idea...
Instead, open up the file that produces the error:
/home/guardians/domains/outpostguardians.com/public_html/libraries/joomla/error/log.php

Look around line 191 for this:
fopen(

And change it to this:
@fopen(

0
 
MutsopAuthor Commented:
what does the @ stands for? I've been trying to search for it on php.net but no real explanation :(
0
 
hankknightCommented:
@ will just suppress the error so the error message is not displayed.

Joomla is trying to write to a log file.  The log file permissions are not allowing Joomla to write to the log file.  If you (or your hosting provider) change the file permissions to 777 it will be able to write to the log file and there will be no error.  However the log file is a PHP script and some hosting providers will not let you change the file permissions of php scripts to 777 for security reasons.  So unless you need the log, you can just suppress the error with @
0
 
MutsopAuthor Commented:
Oh k thanks alot :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.