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

Richard Lundberg

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.

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 21:41:56
Script start
Timing: Jan 30 2025 21:41:56
Module start 'layout'
Timing: Jan 30 2025 21:41:56
Module start 'content'
Timing: Jan 30 2025 21:41:56
Module end 'content'
Timing: Jan 30 2025 21:41:56
Script end

Main resources:

Total runtime0.0229 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1328151.2109
Module start 'layout' 0.00580.0040 739.3438220.6875
Module start 'content' 0.00980.0114 960.03131,001.9141
Module end 'content' 0.02130.0016 1,961.945337.9922
Script end 0.0229  1,999.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002812.3183140.0002
Check MTime0.00125.1114140.0001
Mysql Total
Database connection0.00104.213810.0010
Mysqli_queries0.00239.892530.0008
Looping result0.00000.057110.0000
Template Total0.00125.010.0012
Template load0.00093.878210.0009
Template processing0.00031.128310.0003
Override
Cache load0.00062.753110.0006
General
dbfile0.00021.047280.0000
String conversion0.00000.039540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs