Class 'imageright' is not allowed for element

Author Message

Harry van Irsel

Wednesday 09 August 2006 9:19:04 am

I'm upgrading my site from 3.8.0 through 3.8.3 and I thought everything went well.
But now I try to change some content. It's an article with some related objects (images) in it.
Somewhere in the intro I've de next embedded tag :

<i><embed class="imageright" href="ezobject://486" /></i>

Now when I try to same the article I get the next error message :

<i>Intro: Class 'imageright' is not allowed for element <> (check content.ini).</i>

What can I do to solve this error ?

Kirill Subbotin

Thursday 10 August 2006 3:51:39 am

Add to content.ini:

[embed]
AvailableClasses[]=imageright

This will solve the problem. It was just a bug of previous versions that presence of the class in this list was not checked.

Concerning wrong error message (no tag name) this was also a little bug, fixed recently. Patch:

Modified: kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php
===================================================================
--- kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php	2006-08-01 09:26:10 UTC (rev 16565)
+++ kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php	2006-08-01 09:57:43 UTC (rev 16566)
@@ -549,7 +549,7 @@
                 {
                     $this->isInputValid = false;
                     if ( $this->errorLevel >= 2 )
-                        $this->Messages[] = ezi18n( 'kernel/classes/datatypes/ezxmltext', "Class '%1' is not allowed for element &lt;%2&gt; (check content.ini).", false, array( $value, $newTagName ) );
+                        $this->Messages[] = ezi18n( 'kernel/classes/datatypes/ezxmltext', "Class '%1' is not allowed for element &lt;%2&gt; (check content.ini).", false, array( $value, $element->nodeName ) );
                     continue;
                 }
             }

Harry van Irsel

Friday 11 August 2006 2:57:46 am

Thanks,

I've added the next in settings/override/content.ini.append.php :

[embed]
AvailableClasses[]=imageright
AvailableClasses[]=imageleft

After that i cleared all the caches, but I stil get the same message after saving content.

Is there something else that I must add ?

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

Main resources:

Total runtime0.5697 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1641152.6563
Module start 'layout' 0.00590.0033 740.820339.5078
Module start 'content' 0.00920.5589 780.3281504.9297
Module end 'content' 0.56820.0015 1,285.257812.1094
Script end 0.5696  1,297.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.6329160.0002
Check MTime0.00150.2546160.0001
Mysql Total
Database connection0.00080.133010.0008
Mysqli_queries0.517990.9084570.0091
Looping result0.00050.0955550.0000
Template Total0.539494.720.2697
Template load0.00200.344220.0010
Template processing0.537494.334820.2687
Template load and register function0.00020.032610.0002
states
state_id_array0.00100.169610.0010
state_identifier_array0.00090.160120.0005
Override
Cache load0.00160.2838260.0001
Sytem overhead
Fetch class attribute can translate value0.00080.145920.0004
Fetch class attribute name0.00110.197840.0003
XML
Image XML parsing0.00280.488520.0014
class_abstraction
Instantiating content class attribute0.00000.002150.0000
General
dbfile0.00280.4981160.0002
String conversion0.00000.001540.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs