Page 1 of 1
Error in custom Content module
Posted: Tue Nov 22, 2005 6:04 pm
by Anduril
I tried to have a menu appear only to Admins, zo i created the following script (or copied it):
The login script form FrontEndUsers:
{cms_module module=FrontEndUsers}
The Script from CustomContent:
ADMINmenu
{cms_module module='cssmenu'}
But I get the following error... What did i do wrong here?
Fatal error: Call to undefined function: readpreferences() in /home/virtual/site72/fst/home/site/public_html/modules/FrontEndUsers/FrontEndUsers.api.php on line 1032
Re: Error in custom Content module
Posted: Tue Nov 22, 2005 7:22 pm
by calguy1000
I encountered this FrontEndUsers error too, it's fixed in svn. and may be fixed in the latest release I'd have to look back to be sure.
also you need the {cms_module module=CustomContent} tag in your page or template as well.
Re: Error in custom Content module
Posted: Tue Nov 22, 2005 7:32 pm
by Anduril
It isn't fixed in the latest beta release... im using that one...0.11beta5
Re: Error in custom Content module
Posted: Tue Nov 22, 2005 7:39 pm
by calguy1000
Checked the svn diffs and I think I fixed a similar problem in a previous commit. I've just committed a change where I deleted the line that Called ReadPreferences (it wasn't used anyways afaik).
Re: Error in custom Content module
Posted: Tue Nov 22, 2005 7:59 pm
by Anduril
Should i download the new SVN or the new customcontent?
Can I overwrite the new SVN over my old installation? or should i install a new version?
Re: Error in custom Content module
Posted: Tue Nov 22, 2005 8:14 pm
by calguy1000
First just try deleting the line that is causing the error. That function is no longer needed.
Secondly you would either have to wait for the nightly tarball, or use tortoise svn client or some other svn client to get the change. and it's FrontEndUsers that you want.
Yes, you just over-write the existing files, then go to the module page in the admin section, and click upgrade.
Re: Error in custom Content module
Posted: Wed Nov 23, 2005 5:16 am
by calboy
after d/l the new version of from frontend users from forge, i still cannot define any properties. after clicking on it, nothing happens?!
Re: Error in custom Content module
Posted: Wed Nov 23, 2005 6:30 am
by Anduril
Did u set the user rights for FrontEndUsers?
In the users menu is a user rights button, used click the checkbox next to frontend user settings..
Re: Error in custom Content module
Posted: Wed Nov 23, 2005 7:56 am
by calboy
ahh. stupid me. i remember reading this somewhere from the forum b4 but still missed it. THNX millions, it works. now i m still waiting to see if anyone can come up w/ a fix for the gallery2 integration or to d/l the new module 'SimpleViewer Gallery'. after that, i got everything i needed for my site.