Support

Admin Tools

#25981 error.php in wrong folder

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Wednesday, 28 September 2016 17:20 CDT

Arabacioglu
Hi Nicholas,

Even though I have moved my logs folder under administrator directory, after installing Admin Tools, another logs folder appeared in the root. So the logs are no more being kept in the original directory under the administrator folder as set in the configuration but are being recorded under the root folder.

Kind regards, greetings from Turkey :-)

nicholas
Akeeba Staff
Manager
We do NOT hardcode the location of the Joomla! log directory in any of our software. In fact we ask Joomla to tell us where the logs folder is stored through its API:
JFactory::getConfig()->get('log_path', JPATH_ROOT . '/logs')


There are exactly three cases where a "logs" directory would be placed on the site's root:

  • You are hosted on a server running Plesk or any other server control panel software which places a "logs" folder in the public web root. They do that to store access and error logs.
  • You have left the Log Directory setting in your site's Global Configuration empty. In this case the default value of <siteroot>/logs will be used by Joomla and other extensions, including Admin Tools.
  • You run the "Temp and log directory check" feature of Admin Tools and your configured Log Directory is not writeable. In this case we first try to make <siteroot>/administrator/logs writeable. If that fails we try to make <siteroot>/logs writeable. If any of these steps succeeds we update your Global Configuration.


So please do check your Global Configuration.

If the Global Configuration is not telling Joomla to use <siteroot>/logs and is not empty the problem is irrelevant to Admin Tools and Joomla – in which case I can't help you.

If it's empty or invalid, please update it.

If it is the logs directory in your site's root please remember that you manually used that feature in Admin Tools. Update the setting and make sure PHP can write to your site's administrator/logs directory.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Arabacioglu
Dear Nicholas,

As always a very detailed answer to my question. I love the way you respect your work and your customers.

Actually, the logs folder was created by Joomla because it had a Joomla error.php in it.
In the config, the path was written correctly.
I had already checked it with Admintools path check utility.

After running the "fix permissions" the new logs started to appear in the administrator/logs folder.
So it was a permission issue even though I ran this tool before.

Thank you very much for your time and support. Keep up the good work (which you do very well indeed) :-)

nicholas
Akeeba Staff
Manager
Thank you very much for your kind words :) I am glad I could help you!

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!