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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Joomla

From novice to tech pro — start learning today.