Parse error in cache (?xml version)

Author Message

Aaron Weiss

Friday 26 March 2004 10:42:02 am

Suppose I clear the content cache. Then, I load a page from my site. No problem, loads fine. EZ generates a cache file in the cache subdir. Next time page is loaded, EZ grabs cached file and spits out a "Parse Error" at the top of the page. I have tried this with several pages and the offending line is ALWAYS the same (line 48 in my page):

<?xml version="1.0" encoding="UTF-8"?>

It looks like the PHP parser is choking on this line, but I'm not exactly sure. What can I do to stop this from happening?

thanks!
Aaron

Aaron Weiss

Friday 26 March 2004 11:01:50 am

Nevermind, answered my own question. I was outputting an XML Text Field using:

{$node.object.data_map.story.data_text}

And this was causing EZ to put the <?xml...> tag into the body of the page. I changed my code to output the field thusly:

{$node.object.data_map.story.content.output.output_text}

And now EZ doesn't generate the tag that causes PHP to choke in the cache.

-Aaron

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 19:24:26
Script start
Timing: Jan 18 2025 19:24:26
Module start 'layout'
Timing: Jan 18 2025 19:24:26
Module start 'content'
Timing: Jan 18 2025 19:24:27
Module end 'content'
Timing: Jan 18 2025 19:24:27
Script end

Main resources:

Total runtime1.3106 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.0061 587.9375152.6250
Module start 'layout' 0.00610.0032 740.562539.4453
Module start 'content' 0.00941.2994 780.0078424.1406
Module end 'content' 1.30880.0017 1,204.14848.1563
Script end 1.3105  1,212.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2431160.0002
Check MTime0.00130.0977160.0001
Mysql Total
Database connection0.00100.075010.0010
Mysqli_queries1.267296.6872520.0244
Looping result0.00040.0332500.0000
Template Total1.275397.320.6377
Template load0.00210.158920.0010
Template processing1.273297.152320.6366
Template load and register function0.00020.017110.0002
states
state_id_array0.00120.088010.0012
state_identifier_array0.00090.066820.0004
Override
Cache load0.00170.1274150.0001
Sytem overhead
Fetch class attribute can translate value0.00110.080410.0011
Fetch class attribute name0.00100.079820.0005
XML
Image XML parsing0.00020.013310.0002
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00060.0446100.0001
String conversion0.00000.000540.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs