Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
2011.9
-
None
-
Community Project 2011.9
Debian 6
PHP 5.3.3-7+squeeze3 with Suhosin-Patch
Database and version: mysql-server-5.1
Browser:any
Description
Recently we began to have following error on some pages
Call to a member function appendChild() on a non-object" ezimagealiashandler.php on line 1421
The error is pretty random (it goes away after cleaning caches, and returns after some time).
For now I've fixed it in following way:
from
if ( isset( $contentObjectAttributeData['DataTypeCustom']['dom_tree'] ) ) { return $contentObjectAttributeData['DataTypeCustom']['dom_tree']; }
to
if ( isset( $contentObjectAttributeData['DataTypeCustom']['dom_tree'] ) ) { if ($contentObjectAttributeData['DataTypeCustom']['dom_tree']->saveXml() != NULL) //Alekc return $contentObjectAttributeData['DataTypeCustom']['dom_tree']; }
Inside function domTree on the line 966
Community Project 2011.9
Steps to reproduce
Too random...