Forums / Setup & design / Problems with mailimport

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Problems with mailimport

Author Message

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.

Richard Lundberg

www.peakm3.com

Łukasz Serwatka

Monday 20 July 2009 1:27:36 am

Hi,

The error is descriptive well. The eZCLI class name is missing in the PHP autoload array. You can fix it by executing from Exponential root folder following command:

$ php bin/php/ezpgenerateautoloads.php -e

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Richard Lundberg

Tuesday 21 July 2009 11:31:51 am

Thanks for the quick response.

I ran the command from the Exponential 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.

www.peakm3.com

Richard Lundberg

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......

www.peakm3.com

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