Search

I have just moved a new 2.2 site onto a server and get the following fatal error. The DS is simply pulling in a Twitter feed and works fine locally. Guessing its going to be a server config issue, I have other Symphony sites without Dynamic XML DS which run fine. Would be good if the code failed gracefully though?

Fatal error: Call to a member function appendChild() on a non-object ... /data.twitter.php on line 53

public function grab(&$param_pool=NULL){
            $result = new XMLElement($this->dsParamROOTELEMENT);

            try{
                include(TOOLKIT . '/data-sources/datasource.dynamic_xml.php');
            }
            catch(FrontendPageNotFoundException $e){
                // Work around. This ensures the 404 page is displayed and
                // is not picked up by the default catch() statement below
                FrontendPageNotFoundExceptionHandler::render($e);
            }           
            catch(Exception $e){
                $result->appendChild(new XMLElement('error', $e->getMessage()));
                return $result;
            }   

            if($this->_force_empty_result) $result = $this->emptyXMLSet();
            return $result;
        }

Sorry line 53 of my DS is return $result;

I am also finding this issue, anybody got any suggestions. I'll be honest it's out of my comfort zone - and I just don't know where to start.

Two options. Pull the integration branch which has some general improvements to dynamic and static datasources or open up the dynamic ds include file and find the line $result = null and remove it.

I don't have that line.

i had problems like this and solved them when i realized curl support in php wasn't installed. it's a vague suggestion, but you might check it out.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details