Page 1 of 1

error message...gastbuch

Posted: Thu Apr 28, 2005 1:42 pm
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.

Re: error message...gastbuch

Posted: Mon May 02, 2005 7:47 am
by jah
Maybe you can try to add/remove messages from the admin to see if it makes any difference?

Jon

Re: error message...gastbuch

Posted: Tue May 03, 2005 8:00 am
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

Re: error message...gastbuch

Posted: Mon Jul 25, 2005 3:10 pm
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.