0 Cannot write to log file

Rate this item
(0 votes)

The Joomla website gives this error in the front end and back end:

0 Cannot write to log file.

When someone attempts to log into the administrator using incorrect login info, Joomla logs that attempt in its log file.

However, if the file can't be accessed or written into, the error is generated.

There are two main reasons that the file can't be accessed or written to:

  1. Incorrect $log_path setting in Joomla's configuration.php file
  2. Folder and file permissions aren't set up correctly

media 1491256388437

How to fix the problem

  • Edit the configuration.php file and make sure your logs file is properly set to the absolute path. The logs folder is in the root of your Joomla site, so you can use the location of the configuration.php for its path as well and add "logs" to the end. Pro tip: as an alternative, you can set it to "administrator/logs" instead.
  • If that doesn't resolve the issue, make sure the folder exists (if it doesn't, create it). Then ask your host to fix the folder and file permissions for the site. It will take them a few minutes to do that.
  • If the configuration file is correct and the folder permissions are correct, make sure there is enough disk space available. If the website runs out of space available in the hosting account, it will cause this error.
Read 5712 times Last modified on Wednesday, 14 June 2023 21:14