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.