econtentobject.php

Author Message

Martin Jerie

Monday 23 October 2006 3:10:34 am

In my import script (run from shell) i have

     include_once( 'kernel/classes/ezcontentobjecttreenode.php' );

but when i run it i see error:

Parse error: syntax error, unexpected T_CLONE, expecting T_STRING in /var/www/vhosts/ezpublish/kernel/classes/ezcontentobject.php on line 1280

I use 3.8.4 and PHP 4.4.2

Nabil Alimi

Monday 23 October 2006 3:56:02 am

Hi Martin,

Can you show us the part of your code that uses the eZcontentobject class ?

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Martin Jerie

Monday 23 October 2006 4:46:15 am

It's in start of my script:

#!/usr/bin/php
<?php
set_time_limit( 0 );

// Include required files
include_once( "lib/ezutils/classes/ezextension.php" );
include_once( "lib/ezutils/classes/ezmodule.php" );
include_once( 'lib/ezutils/classes/ezcli.php' );
include_once( 'kernel/classes/ezscript.php' );
include_once( 'lib/ezutils/classes/ezexecution.php' );
include_once( 'kernel/classes/ezcontentobjecttreenode.php' );
include_once( 'kernel/classes/eznodeassignment.php' );
include_once( "lib/ezxml/classes/ezxml.php" );
include_once( "lib/ezxml/classes/ezdomdocument.php" );
include_once( "lib/ezxml/classes/ezdomnode.php" );
include_once( "kernel/classes/datatypes/ezxmltext/ezxmltexttype.php");
include_once( "kernel/classes/datatypes/ezxmltext/ezxmltext.php");

problem is in including ezcontentobjecttreenode.php, because it includes econtentobject.php and there i see this error

So i tried only this one row:

<?php
set_time_limit( 0 );
include_once( 'kernel/classes/ezcontentobject.php' );
?>

with same result

Kristof Coomans

Monday 23 October 2006 5:27:25 am

Hi Martin

I think you are using PHP 5 instead of PHP 4.4, right?

eZ does not officialy support PHP 5. Stick to PHP 4.4, or try the unofficial port to PHP 5: http://ez.no/community/forum/developer/ez_publish_3_x_on_php_5

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

Martin Jerie

Monday 23 October 2006 5:38:52 am

No I'm using PHP 4.4.2 on Ubuntu Linux (6.06 LTS, the Ubuntu Server Edition)

Kristof Coomans

Monday 23 October 2006 6:03:10 am

Are you sure about that? Check with

# /usr/bin/php -v

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

Martin Jerie

Monday 23 October 2006 6:13:31 am

You are right - PHP 5.1.2.
I will change to 4.4.2

Thank you Kristof

cas dav

Sunday 04 November 2007 3:29:02 am

#/usr/bin/php -v
PHP 5.2.4_p20070914-pl2-gentoo

#php-select php php4

#/usr/bin/php -v
PHP 4.4.8_pre20070816-pl0-gentoo

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

Main resources:

Total runtime0.8822 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 587.7969152.6094
Module start 'layout' 0.00840.0042 740.406339.4297
Module start 'content' 0.01250.8682 779.8359668.0391
Module end 'content' 0.88070.0014 1,447.875016.1875
Script end 0.8821  1,464.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4749160.0003
Check MTime0.00190.2144160.0001
Mysql Total
Database connection0.00150.172710.0015
Mysqli_queries0.812392.0723760.0107
Looping result0.00070.0788740.0000
Template Total0.847196.020.4236
Template load0.00310.356720.0016
Template processing0.844095.666020.4220
Template load and register function0.00010.016210.0001
states
state_id_array0.00130.147510.0013
state_identifier_array0.00080.095520.0004
Override
Cache load0.00280.3178400.0001
Sytem overhead
Fetch class attribute can translate value0.00070.082540.0002
Fetch class attribute name0.00130.1465100.0001
XML
Image XML parsing0.00120.138640.0003
class_abstraction
Instantiating content class attribute0.00000.0029110.0000
General
dbfile0.00090.1076220.0000
String conversion0.00020.020340.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs