Cannot write to log file

Need help upgrading your Joomla! website or converting to Joomla! 3.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
pfaniel
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Wed Jan 05, 2011 3:23 pm
Location: Bruxelles
Contact:

Cannot write to log file

Post by pfaniel » Sat Oct 29, 2016 9:54 am

Hello,

I try to upgrade my Joomla! environment from version 3.6.2 to 3.6.4.

When I click on the button "Joomla! 3.6.4 is available: Update now" of the control panel of my Joomla admin environment and then I click on the button named "Install the update" with the installation method "Write files directly", I receive a page telling me this: "An error has occurred. 0 Cannot write to log file."

I have never had such a situation although I use Joomla for years.

I went to different sites to find a solution to the issue, but nothing works.

I checked the permissions on the folders /home/mysite/www/logs and /home/mysite/www/tmp. They are both set to 666. I also tried with 777, but nothing works. When, in my Joomla admin environment, I go to the page "System Information" > "Folder Permissions", I see that the folders names "/home/mitservifc/www/logs (Log folder)" and "/home/mitservifc/www/tmp (Temp folder)" are "Unwritable" whatever I do with the permissions via cPanel.

My configuration file "configuration.php" file seems to be perfectly correct, i.e. the names perfectly match the names mentionned in the cPanel of my site.

I do not see what to do to progress with this issue.

Could somebody help me ?

Thank you in advance.

Pierre Faniel

User avatar
AMurray
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4534
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Cannot write to log file

Post by AMurray » Sat Oct 29, 2016 11:52 pm

Your file permissions are supposed to be 755 for folders, 644 for files (that's the recommended settings stated in the Joomla documentation site). You don't mention trying these specific ones in your question.
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

User avatar
AMurray
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4534
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Cannot write to log file

Post by AMurray » Sat Oct 29, 2016 11:54 pm

Could you run and post the results of the Forum Post Assistant (follow the instructions here - http://forum.joomla.org/viewtopic.php?f=621&t=582860) and post the output report to a reply in this thread.
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 19481
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Cannot write to log file

Post by leolam » Sun Oct 30, 2016 8:21 am

Also check your path viewtopic.php?t=850144#p3190476

Leo 8)
Joomla's #1 Professional Support Provider:
-> Joomla Professional Support: https://gws-desk.com -
-> Joomla Specialized Hosting Solutions: https://gws-host.com -
-> Joomla Webmaster Services: gws-webmaster.services

pfaniel
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Wed Jan 05, 2011 3:23 pm
Location: Bruxelles
Contact:

Re: Cannot write to log file

Post by pfaniel » Sun Oct 30, 2016 1:24 pm

Hello,

Thanks to the recommendations of AMurray and leolam to apply both the set of permissions 755 to the folders and go in search of the absolute path of my site, I succeeded in installing the version 3.6.4 of Joomla!.

Thank you very much for your help.

Kind regards

Pierre Faniel

Stikine Freak
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 07, 2016 7:48 pm

Re: Cannot write to log file

Post by Stikine Freak » Tue Nov 08, 2016 8:14 pm

I have the same message for this site:
http://www.karenstewartlaw.ca

The 'logs' folder permission in the administration folder is set to 755
The following files are inside this logs folder...
error.php
index.html
joomla_update.php
And all of these permissions are set to 644.

Is there something else I can do to enable the 3.6.4 update procedure.

Thanks,

Tony

User avatar
AMurray
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4534
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Cannot write to log file

Post by AMurray » Fri Nov 11, 2016 8:43 am

Could you run the FPA Report on your joomla installation - script available at this link:
http://forum.joomla.org/viewtopic.php?f=621&t=582860

Once you run the script it should produce its report in a format suitable for this forum, you can post the results into a new reply. This will give an overview of your joomla installation and basica detail about your hosting environment.
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

ve9gfi
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Apr 21, 2017 8:48 pm

Re: Cannot write to log file

Post by ve9gfi » Fri Apr 21, 2017 8:58 pm

Hi All,

I spent this afternoon dealing with this exact issue, after performing a fresh install.

I followed the hardening guidelines, file permissions, edits to php.ini, etc, and while that was good to do, it didn't solve anything.

I took a walk, and returned ... and voila!

The login to my site is asking for "Username" ... my browser was pre-filling the page with my email address.

Once I put in the username (which looks quite like my email) ... everything worked.

Hopefully you will benefit from my mistake.

Greg


Post Reply

Return to “Migrating and Upgrading to Joomla! 3.x”