UDT errors - missing something [solved]
Posted: Sat Mar 14, 2009 7:05 am
I've tried to get more involved UDT's working within a couple of CMSMS installations (v 1.5.2 & 1.5.3).
I've entered this sample code from another post for a UDT I named 'test':
When I attempt to include {test} on the default template, I get the following error:
Fatal error: Call to a member function on a non-object in /home/greg/x1.swdmedia.com/html/lib/content.functions.php(857) : eval()'d code on line 4
What could possibly be causing the issue?
I've searched through my error logs but there's nothing showing up there.
/g
I've entered this sample code from another post for a UDT I named 'test':
Code: Select all
global $gCms;
$hm =& $gCms->GetHierarchyManager();
$curnode =& $hm->getNodeById($page_content_id);
$curcontent =& $curnode->GetContent();
echo 'Page URL: ' . $curcontent->GetURL();
Fatal error: Call to a member function on a non-object in /home/greg/x1.swdmedia.com/html/lib/content.functions.php(857) : eval()'d code on line 4
What could possibly be causing the issue?
I've searched through my error logs but there's nothing showing up there.
/g