Trouble with custom script

Author Message

Erik Weinmaster

Monday 28 June 2010 12:16:37 pm

I have a custom script that begins the same way that ezcache.php does. First is the require 'autoload.php' command followed by the eZCLI::instance(), eZScript::instance(), and others.

Most of the functions work just fine, including the eZDB::instace which comes later. Unfortunately, when I try access some kernel code, namely eZContentFunctions.php. I keep getting an error saying that this is unavailable.

I have also tried placing this file in a require statement along with autoload.php. Nothing works. How do include all the system files into a script in order to use kernel code?

thanks,

-erik

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 14:58:13
Script start
Timing: Jan 18 2025 14:58:13
Module start 'layout'
Timing: Jan 18 2025 14:58:13
Module start 'content'
Timing: Jan 18 2025 14:58:15
Module end 'content'
Timing: Jan 18 2025 14:58:15
Script end

Main resources:

Total runtime1.7216 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.0313152.6250
Module start 'layout' 0.00490.0027 741.656339.4453
Module start 'content' 0.00761.7124 781.1016398.7578
Module end 'content' 1.71990.0017 1,179.85948.1641
Script end 1.7216  1,188.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.1852160.0002
Check MTime0.00130.0780160.0001
Mysql Total
Database connection0.00070.037910.0007
Mysqli_queries1.682897.7446460.0366
Looping result0.00050.0289440.0000
Template Total1.681397.720.8406
Template load0.00180.103120.0009
Template processing1.679597.551220.8397
Template load and register function0.00030.017210.0003
states
state_id_array0.00340.198610.0034
state_identifier_array0.00190.111220.0010
Override
Cache load0.00140.079980.0002
Sytem overhead
Fetch class attribute can translate value0.00080.046510.0008
Fetch class attribute name0.00090.054210.0009
XML
Image XML parsing0.00010.008010.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00120.0679100.0001
String conversion0.00000.000440.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs