Can't run most CLI scripts

Author Message

André Bischof

Thursday 23 December 2004 10:24:36 am

Hello,

I followed the upgrade article
http://ez.no/ez_publish/download/changelogs/ez_publish_3_5/upgrading
to upgrade from 3.4.4 (9297) to 3.5.0 but can't run most of the scripts in bin/php, update/common/scripts/ or additional scripts like importimages.php

Every time I try I get

root@linux:/var/www/domain# php -f importimages.php

Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.
root@linux:/var/www/domain#

As one can see, no debug output is shown - do I have to change this in the ini-Settings? My php-error-log remains empty as well.

I run Debian-Linux with
ii php4 4.3.10-2 and
ii php4-cli 4.3.10-2

Any clues?
Thanks for helping,
André

Personal weblog and more: http://bischof.homelinux.net

André Bischof

Saturday 25 December 2004 10:04:34 am

I found the solution myself:

Under Debian, the installation of PHP-CLI has no default support of the mysql extension - one has to uncomment it in the php.ini for CLI (/etc/php4/cli/php.ini).

Unfortunatly ezpublish gives no appropriate error message, it just aborts script-execution as quoted above - an error like this would have saved me half a day's time ;-)

But maybe this posting can help some other cli-newbies?

Regards,
André

Personal weblog and more: http://bischof.homelinux.net

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 19 2025 00:20:23
Script start
Timing: Jan 19 2025 00:20:23
Module start 'layout'
Timing: Jan 19 2025 00:20:23
Module start 'content'
Timing: Jan 19 2025 00:20:24
Module end 'content'
Timing: Jan 19 2025 00:20:24
Script end

Main resources:

Total runtime0.9156 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.0313152.6406
Module start 'layout' 0.00590.0028 740.671939.4609
Module start 'content' 0.00870.9056 780.1328458.1641
Module end 'content' 0.91430.0013 1,238.29698.1641
Script end 0.9156  1,246.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3471160.0002
Check MTime0.00130.1394160.0001
Mysql Total
Database connection0.00170.186110.0017
Mysqli_queries0.868794.8754520.0167
Looping result0.00050.0515500.0000
Template Total0.877595.820.4388
Template load0.00190.209820.0010
Template processing0.875695.626220.4378
Template load and register function0.00020.026310.0002
states
state_id_array0.00150.163510.0015
state_identifier_array0.00100.105120.0005
Override
Cache load0.00150.1671260.0001
Sytem overhead
Fetch class attribute can translate value0.00080.084710.0008
Fetch class attribute name0.00110.122720.0006
XML
Image XML parsing0.00010.011610.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00060.0663100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs