Page 1 of 1

Prblem With Redirect UDT

Posted: Mon Dec 03, 2007 9:06 am
by chamara
Hi All,

I have a UDT called redirect. I got the code from following url
http://forum.cmsmadesimple.org/index.ph ... l#msg71295

When I use this UDT with {redirect to='test'} I got the following error.

Fatal error: Call to a member function GetContent() on a non-object in C:\xampp\htdocs\cmsms\lib\content.functions.php(673) : eval()'d code on line 6


How can I solve this problem? Do I need additional modules for this?

Thanks
Hansaka

Re: Prblem With Redirect UDT

Posted: Mon Dec 03, 2007 11:39 am
by RonnyK
Hansaka,

is the page, you're pointing to "Active" and is it the name of the page_alias, as it shows on the options-tab of the page.

Ronny

Re: Prblem With Redirect UDT

Posted: Tue Dec 04, 2007 3:11 am
by chamara
Hi Ronny,

I checked the page. Its Active and match the page_alias but the problem still there.

Thanks
Hansaka

Re: Prblem With Redirect UDT

Posted: Fri Dec 07, 2007 4:08 pm
by Pierre M.
Hello,

are you running the latest official 1.2.2 ? previous 1.2.x had problems with UDTs.

Pierre M.

Re: Prblem With Redirect UDT

Posted: Fri Dec 07, 2007 4:29 pm
by calguy1000
I've added a slightly modified version of that udt with some more error handling that should at least tell you what's going on.