Recent Topics

Itemlight::type(..) when raw format requested errors out

Started by on Feb 22, 2008 – Contents updated: Feb 22, 2008

Feb 22, 2008 19:10    

In 2.4, when calling Itemlight::type( '', ''. 'raw'), the call to disp errors out:

Code

if( $format == 'raw' )
    {
      $this->disp( $extra_status, 'raw' );
    }

It seems to error out because $extra_status is what the post/item's type actually is ("post" or "link", etc.), instead of "type".

The actual error takes place with the data object:

Notice: Undefined property: ItemLight::$Link in C:\Program Files\VertrigoServ\www\inc\_core\model\dataobjects\_dataobject.class.php on line 461

Code

function disp( $parname, $format = 'htmlbody' )
  {
    // Note: we call get again because of derived objects specific handlers !
    echo format_to_output( $this->get($parname), $format );
  }

Code

function get( $parname )
  {
    return $this->$parname;    // <--- line 461
  }


Form is loading...

b2evolution CMS – This forum is powered by b2evolution CMS, a complete engine for your website.