View Full Version : Error Message
I got this error message when I clicked to view a public profile:
"Warning: mktime() expects parameter 4 to be long, string given in /member.php on line 558"
It still showed the profile, but just had this error at the top of the window.
Alonzo
04-29-2008, 08:24 PM
It's because the person never reset their birth date. They still have the format from the old system which didn't transfer properly.
Truth_and_Power
04-29-2008, 08:40 PM
Well don't enter such a short parameter 4 next time.. DUHH
Well don't enter such a short parameter 4 next time.. DUHH
lol. My bad.
Pookie
05-01-2008, 05:50 AM
What's a parameter 4?
Purrs,
Pookie
Scribbler1
05-01-2008, 10:44 PM
It's the think you NEVER want to enter.
It's the think you NEVER want to enter.
:clapper: :madlaugh:
What's a parameter 4?
Actually it refers to the 4th parameter of the function mktime.
"Warning: mktime() expects parameter 4 to be long, string given in /member.php on line 558"
If I read this correctly, mktime needs the 4th parameter to be a number, instead of a string that was passed to it.
If I were not lazy, I would look up the mktime function instead of just guessing, but meh..
mktime would have a parameter list in its definition, in this case it would have at least 4 params.
mktime(int day, int month, int hour, int minute, MAYBE MORE....)
The 4th argument passed to mktime here should be an integer, which is what 'int' means in the definition. In this case, the function is mistakenly passed data of type string as the 4th argument and complains with the error message.
And probably, because like Zo pointed out, the field for that data is stored with the old information. So some function pulls the data out of the DB, passes it along to mktime and then mktime complains because the data is of the wrong type.
:nana:
Truth_and_Power
05-02-2008, 02:59 PM
:clapper: :madlaugh:
Actually it refers to the 4th parameter of the function mktime.
"Warning: mktime() expects parameter 4 to be long, string given in /member.php on line 558"
If I read this correctly, mktime needs the 4th parameter to be a number, instead of a string that was passed to it.
If I were not lazy, I would look up the mktime function instead of just guessing, but meh..
mktime would have a parameter list in its definition, in this case it would have at least 4 params.
mktime(int day, int month, int hour, int minute, MAYBE MORE....)
The 4th argument passed to mktime here should be an integer, which is what 'int' means in the definition. In this case, the function is mistakenly passed data of type string as the 4th argument and complains with the error message.
And probably, because like Zo pointed out, the field for that data is stored with the old information. So some function pulls the data out of the DB, passes it along to mktime and then mktime complains because the data is of the wrong type.
:nana:
It's probably a difference in how the database stores dates. The old database stored them as strings and the new database stores them as an integer.. or something like that. Hence re-entering your birthday fixes it.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.