Forums / Developer / XML text field BUG [ezsimplifiedxmlinput.php]

XML text field BUG [ezsimplifiedxmlinput.php]

Author Message

Selmah Maxim

Saturday 19 July 2003 7:59:06 am

When my class have xml text field and trying to add new artical i got this error msg :

Fatal error: Call to a member function on a non-object in c:\php\www\ez32\kernel\classes\datatypes\ezxmltext\handlers\input\ezsimplifiedxmlinput.php on line 1501
Fatal error: eZ publish did not finish it's request

The execution of eZ publish was abruptly ended, the debug output is present below.

when i remove the xml field the class work fine !

Selmah Maxim

Sunday 20 July 2003 1:31:35 am

any1 have the same problem or just me !?

liu spider

Sunday 20 July 2003 2:40:47 am

maybe something related to charset settings.

I got a similar error, hacked some charset files to solve it.

I wonder whether u can use a predefined class containing a XML text field.

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Selmah Maxim

Sunday 20 July 2003 2:43:55 am

Sorry ... but what do u mean with this :

'hacked some charset files to solve it'

liu spider

Sunday 20 July 2003 5:06:17 am

php files, such as lib/ezi18n/classes/ezcharsetinfo.php and serveral other ones in the same directory

my problem is coursed by unsupport charset: I mean Chinese charset ;), and that courses the dom processor misfunction.

u can setup up a new eZ site from scratch for experimental purpose, do not change any other ini setting beyond the ones specified in the setup guide. Then try to find out whether ur problem exists.

good luck

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

liu spider

Sunday 20 July 2003 5:12:39 am

do not forget to enable debug option in site.ini.append.php, for the debug output always give useful clues

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Selmah Maxim

Sunday 20 July 2003 5:18:10 am

liu ...

the same error even with fresh install with english language !
the error here is requesting not existing function !

Selmah Maxim

Sunday 20 July 2003 5:18:57 am

btw ... after install is work fine, but after geting the last svn I got this error !

Selmah Maxim

Sunday 20 July 2003 5:31:14 am

line_1497:
if ( $dom )
$node =& $dom->elementsByName( "section" );

// Fetch all links and cache the url's
$links =& $dom->elementsByName( "link" );

this must be :

if ( $dom )
{
$node =& $dom->elementsByName( "section" );

// Fetch all links and cache the url's
$links =& $dom->elementsByName( "link" );
}

the error is coz of $dom = null !

liu spider

Sunday 20 July 2003 9:13:07 am

I see, u r living on the edge, so u r on ur own ;)

that's must be the CVS version's problem

and u just found out where the problem is, so trace back from that line (not look forward from that point)

I do not use CVS, so I can not stand with you ;)

but I think the mostly likely error parts are in the init process of the $dom, so trace back and see

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Selmah Maxim

Sunday 20 July 2003 12:04:17 pm

this the solution (as I think), but i make it i`ll lose the next svn upgrade, better to wait for ezp team !

liu spider

Sunday 20 July 2003 7:42:18 pm

do u know where I can find the changelog of the CVS?

I want to see what has been fixed and/or enhanced in the CVS, thanks.

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Selmah Maxim

Monday 21 July 2003 12:17:18 am

liu ..
http://zev.ez.no/svn/nextgen/trunk/doc/changelogs/3.2/CHANGELOG-3.2.0-1

any1 have the same problem with the last svn update ?!

Selmah Maxim

Monday 21 July 2003 12:33:49 am

ezp .. any comment over here ..pls !

Selmah Maxim

Monday 21 July 2003 2:10:59 am

thx :D

liu spider

Monday 21 July 2003 4:50:09 am

Selmah, thanks

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

eZ debug

Timing: Jan 18 2025 15:18:05
Script start
Timing: Jan 18 2025 15:18:05
Module start 'content'
Timing: Jan 18 2025 15:18:06
Module end 'content'
Timing: Jan 18 2025 15:18:06
Script end

Main resources:

Total runtime1.1647 sec
Peak memory usage4,096.0000 KB
Database Queries233

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.9766180.8125
Module start 'content' 0.00630.9899 769.7891678.8828
Module end 'content' 0.99620.1682 1,448.6719353.3047
Script end 1.1644  1,801.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3242210.0002
Check MTime0.00140.1193210.0001
Mysql Total
Database connection0.00060.053310.0006
Mysqli_queries1.079992.72502330.0046
Looping result0.00220.18812310.0000
Template Total1.140297.920.5701
Template load0.00180.154420.0009
Template processing1.138497.748520.5692
Template load and register function0.00020.013710.0002
states
state_id_array0.00080.065110.0008
state_identifier_array0.00170.150120.0009
Override
Cache load0.00170.1436710.0000
Sytem overhead
Fetch class attribute can translate value0.00090.075330.0003
Fetch class attribute name0.00110.0919170.0001
XML
Image XML parsing0.00090.076330.0003
class_abstraction
Instantiating content class attribute0.00000.0032220.0000
General
dbfile0.00250.2161270.0001
String conversion0.00000.000530.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
16content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
21content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 52
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs