Forums / Setup & design / Problems with mailimport
Richard Lundberg
Monday 20 July 2009 12:44:53 am
Hi,
I have installed the eZmailimport extension on a 4.0 installation and set up the Cronjobs. Everytime the Cronjob executes I get the following error
Fatal error: Class 'eZCLI' not found in /var/www/vhosts/mysite/httpdocs/extension/ezmailimport/cronjobs/importmail.php on line 40
I have searched everywhere for an indicator as to what this could be.
Any ideas.
www.peakm3.com
Łukasz Serwatka
Monday 20 July 2009 1:27:36 am
The error is descriptive well. The eZCLI class name is missing in the PHP autoload array. You can fix it by executing from eZ Publish root folder following command:
$ php bin/php/ezpgenerateautoloads.php -e
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Tuesday 21 July 2009 11:31:51 am
Thanks for the quick response.
I ran the command from the eZ Publish home directory and got the following error.
Fatal error: Class 'ezConsoleInput' not found in /var/www/vhsost/mysite/httpdocs/bin/php/ezpgenerateautoloads.php on line 48
eZ components are installed
any more pointers would be greatly appreciated.
Thursday 23 July 2009 4:34:45 pm
UPDATE
I have finally got ezpgenerateautoloads.php to work. I downloaded eZComponents using SVN so had to change the source code from
if ( !@include( 'ezc/Base/base.php' ) ) { require "ezc/Base/base.php"; }
to
if ( !@include( 'Base/src/base.php' ) ) { require "Base/src/base.php"; }
However, I still get the original message that Class eZCLI cannot be found
Any help welcome......
Max Keil
Thursday 23 July 2009 5:07:24 pm
Hi Richard,
you should check your autoload/ezp_kernel.php file again, if the eZCLI Class is defined. If yes, then the cronjob or the extension is not configured correct.
Quick and dirty:put
include_once( 'lib/ezutils/classes/ezcli.php' );
into the cronjob php file.
Mit freundlichen Grüßen Best regards Max Keil ____________________________________________________________ eZ Publish Gold Partner - http://www.all2e.com http://ez.no/partners/worldwide_partners/all2e_gmbh