error message...gastbuch

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.
Post Reply
Geo
Forum Members
Forum Members
Posts: 24
Joined: Mon Apr 11, 2005 2:46 pm

error message...gastbuch

Post by Geo »

Warning: uniqid() expects at least 1 parameter, 0 given in /public_html/modules/gastbuch/gastbuch.module.php on line 480

message sits at top of the screen when going to add new message to guestbook screen - new message works okay, what should i do to prevent the message popping up?

Geo.
jah
Forum Members
Forum Members
Posts: 147
Joined: Thu Dec 30, 2004 9:09 am

Re: error message...gastbuch

Post by jah »

Maybe you can try to add/remove messages from the admin to see if it makes any difference?

Jon
pinthenet

Re: error message...gastbuch

Post by pinthenet »

I fixed this under php4 by changing the function call to uniqid(rand()).  According to http://ch2.php.net/manual/en/function.uniqid.php the parameter became optional with PHP5.

I also had a problem with the admin display - the column name for 'sender' showed an error as the wrong variable was used - can't remember exactly where I made the change though - the variable was $absender or $absender1.

And while we're on the subject.... With Firefox the I can only display the guestbook in "Courier New" - looking at the source produced there is a just before the checklen funtion definition, and the closing is after all guestbook entries. IEseems to override the if I redefine the font via CSS, but firefox seems to stick to the outer font definition: The problem is I can't see where this is generated - it only exists in the cached pages....
Here's the start

Code: Select all

<font face="Courier New"><__script__ type="text/javascript">
<!--
function checkLen()
{
[/color]
(I wonder if I'm using the latest version of gastbuch....)

John
Geo
Forum Members
Forum Members
Posts: 24
Joined: Mon Apr 11, 2005 2:46 pm

Re: error message...gastbuch

Post by Geo »

I fixed this under php4 by changing the function call to uniqid(rand()).  According to http://ch2.php.net/manual/en/function.uniqid.php the parameter became optional with PHP5.
where about did you change this?  in the php code for the gastbuch module before install or after?

sorry i'm bringing the topic back again but the client has really taken their time getting back to me with their buglist for the site :)

g.
Post Reply

Return to “CMSMS Core”