"Cannot open file for writing log"
The log folder path is wrong, often after a move. Set the right path in Global Configuration → System → Path to Log Folder.
Why it happens
Joomla tries to write a log to the folder set in Global Configuration. After moving the site, that path often still points to the old server, so the folder doesn't exist.
Fix it
- Go to System → Global Configuration → Logging.
- Set Path to Log Folder to your site's folder plus
/administrator/logs(Joomla shows the site path in System Information). - Make sure the folder exists and is writable (755).
- Save.
Good to know
- Can't reach the administrator? Edit
$log_pathin configuration.php directly.
Sources
- Global Configuration – Joomla User Guide
- Moving Installation Directory – Joomla User Guide