Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-18906

Fatal error in ezimagealiashandler

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium 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...

      Attachments

        Activity

          People

            unknown unknown
            alekcander alekcander
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: