Support

Admin Tools

#16389 admintools-filescanner.php reports fatal error class JCli not found

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 nicholas on Thursday, 13 June 2013 09:15 CDT

eds
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: Joomla! 3.1.1 Stable [ Ember ] 26-April-2013 14:00 GMT
PHP version: 5.3.17
MySQL version: 5.5.31-percona-sure1-log
Host: ICDSoft
Admin Tools version: 2.5.5

Description of my issue:
I tried setting up a cron job to run admintools-filescanner.php. On this host, running a php file via cli requires a #!/path/to/php.cli at the top so I wrote a simple wrapper
#!/usr/local/bin/php.cli
<?php
include_once('admintools-filescanner.php');
?>

I am able to run Akeeba Backup Professional this way.

However, when I try to run the file scanner I get an error reported:
Fatal error: Class 'JCli' not found in /home/alonshvut/www/www/cli/admintools-filescanner.php on line 248

I am able to run the file scanner via the admin interface without a problem.

How can I fix this problem?

nicholas
Akeeba Staff
Manager
This is a known issue which will be fixed in the next release. In the meantime you can open the cli/admintools-filescanner.php file on your site and replace JCli with JApplicationCli.

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!

eds
Thanks for the quick reply. I made that change and now I am getting:
Fatal error: Class 'JError' not found in /home/alonshvut/www/www/cli/admintools-filescanner.php on line 64

nicholas
Akeeba Staff
Manager
I am uploading a new dev release which works with Joomla! 3.1.1. It will be available in 5 minutes. Please download and install it on top of your existing installation.

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!

eds
On a related problem, I have another site running Joomla 2.5.11 (the rest of the server information would be the same).

When I set up the cron job for this site it runs for a while and then reports:
JError: JPath::check Use of relative paths not permitted

The last entry before that was
Last Tick : 2013-06-13 04:21:55 GMT-0400 (EDT)
Last folder : -
Memory used : 4.86 Mb
Warnings : no warnings issued (good)

eds
I downloaded this release and it did not solve the problem. It is again reporting
Fatal error: Class 'JCli' not found in /home/alonshvut/www/www/cli/admintools-filescanner.php on line 248

nicholas
Akeeba Staff
Manager
I am uploading a new dev release in a few minutes

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!

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!