Forums / Setup & design / Problems with mailimport

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

eZ debug

Timing: Jan 18 2025 05:21:34
Script start
Timing: Jan 18 2025 05:21:34
Module start 'content'
Timing: Jan 18 2025 05:21:35
Module end 'content'
Timing: Jan 18 2025 05:21:35
Script end

Main resources:

Total runtime1.0334 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1406180.8359
Module start 'content' 0.00630.8819 769.9766617.2813
Module end 'content' 0.88820.1452 1,387.2578337.3750
Script end 1.0333  1,724.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3950210.0002
Check MTime0.00150.1482210.0001
Mysql Total
Database connection0.00080.075810.0008
Mysqli_queries0.952292.13982020.0047
Looping result0.00210.20012000.0000
Template Total1.001496.920.5007
Template load0.00210.199320.0010
Template processing0.999396.702420.4997
Template load and register function0.00010.009610.0001
states
state_id_array0.00090.083010.0009
state_identifier_array0.00150.148320.0008
Override
Cache load0.00170.1648390.0000
Sytem overhead
Fetch class attribute can translate value0.00110.104840.0003
Fetch class attribute name0.00110.107180.0001
XML
Image XML parsing0.00200.190740.0005
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00400.3915410.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs