Page 1 of 1

own plug-in doesn't work

Posted: Sun Feb 26, 2006 10:11 am
by Azrae
Hi

One of my own plugins doesn't work (it worked in earlier version of cmsms). It seems some things have changed.
the following lines:

Code: Select all

$objContent = ContentManager::LoadContentFromId($pageID);
  $actualcontent = $objContent->GetPropertyValue('content_en');
produces the following error:

Code: Select all

Fatal error: Call to a member function on a non-object in /home/deneirn/public_html/cms/plugins/function.index.php on line 37
which is the second line above.
non-object?
$objContent is an object with the "content" in it, or am I wrong?

Help is appreciated :)