Launching a script

Author Message

Gabriel Santonja

Wednesday 21 June 2006 10:10:03 am

Hello,

I'm trying to launch a script fot importing data ( moving an old site ti ezpublish) and i want to launch a script but i have an an error :

Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.

include_once( 'lib/ezutils/classes/ezcli.php' );
include_once( 'kernel/classes/ezscript.php' );


$cli =& eZCLI::instance();
$script =& eZScript::instance( array( 'description' => ( "Reprise de donnees" ),
                                      'use-session' => false,
                                      'use-modules' => true,
                                      'use-extensions' => true ) );
$script->initialize();
if ( !$script->isInitialized() )
{   
    $cli->error( 'Error initializing script: ' . $script->initializationError() . '.' );
    $script->shutdown();
    exit();
}

$script->startup();
$cli->output( 'Using Siteaccess '.$GLOBALS['eZCurrentAccess']['name'] );
// login as admin

include_once( 'kernel/classes/datatypes/ezuser/ezuser.php' );
$user =&eZUser::loginUser("xxx","xxx");

The script failed at this line without any error ...

Is somebody can help me please.?.

thank you
Gabriel

Kristof Coomans

Wednesday 21 June 2006 11:18:56 am

Hi Gabriel,

Have you configured PHP to display all errors? See http://ez.no/community/forum/install_configuration/fatal_error_ez_publish_did_not_finish_its_request#msg99842

Launch the script again with the --debug option and tell us what the errors are.

Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Gabriel Santonja

Wednesday 21 June 2006 2:12:07 pm

Hello and thank you for your reply.

I'm using php cli and I have set the error_reporting = E_ALL in the php.ini and nothing.

Damien Pobel

Thursday 22 June 2006 1:37:46 am

Hi Gabriel,

At the end of your script or before using die (or exit) php function you have to put this :

$script->shutdown();

to inform eZ Script Object that your script is terminating without "problem".

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

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 18 2025 16:23:10
Script start
Timing: Jan 18 2025 16:23:10
Module start 'layout'
Timing: Jan 18 2025 16:23:10
Module start 'content'
Timing: Jan 18 2025 16:23:11
Module end 'content'
Timing: Jan 18 2025 16:23:11
Script end

Main resources:

Total runtime1.1002 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.7969152.6094
Module start 'layout' 0.00730.0037 740.406339.4297
Module start 'content' 0.01101.0876 779.8359594.0469
Module end 'content' 1.09870.0015 1,373.882812.1875
Script end 1.1001  1,386.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3089160.0002
Check MTime0.00140.1278160.0001
Mysql Total
Database connection0.00070.064810.0007
Mysqli_queries1.044494.9340620.0168
Looping result0.00070.0654600.0000
Template Total1.064996.820.5325
Template load0.00210.188720.0010
Template processing1.062896.606220.5314
Template load and register function0.00010.012110.0001
states
state_id_array0.00120.104810.0012
state_identifier_array0.00120.106220.0006
Override
Cache load0.00170.1575270.0001
Sytem overhead
Fetch class attribute can translate value0.00080.076830.0003
Fetch class attribute name0.00140.131660.0002
XML
Image XML parsing0.00190.169230.0006
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00200.1849220.0001
String conversion0.00000.000640.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs