own plug-in doesn't work

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Azrae

own plug-in doesn't work

Post 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 :)
Locked

Return to “CMSMS Core”