Author |
Message |
Foggy
Client

Joined: Jan 07, 2006
Posts: 52
|
Posted:
Fri Feb 17, 2006 1:59 pm |
|
Didn't see this one in the FAQ, anyone have a fix for this warning?
PHP Warning: mktime() expects parameter 1 to be long, string given in /home/mysite/public_html/modules/Downloads/index.php on line 1084
I'm getting a simular warning for an event callender too. |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Fri Feb 17, 2006 4:22 pm |
|
what downloads module do you use? |
|
|
|
 |
Foggy

|
Posted:
Sat Feb 18, 2006 6:47 am |
|
I'm using the stock download module that came with RavenNuke76 2.02.00. |
|
|
|
 |
hitwalker

|
Posted:
Sat Feb 18, 2006 6:54 am |
|
well most errors like yours are related to the time and date.
go to php.net and type in mktime in functions list... |
|
|
|
 |
Foggy

|
Posted:
Sat Feb 18, 2006 8:14 am |
|
OK, I'll check it out. Is there another download module you would recommend? |
|
|
|
 |
hitwalker

|
Posted:
Sat Feb 18, 2006 8:17 am |
|
just use yours....
it can because of yountry...(thats often the reason)
search php.net and it should show any solution to your error,if not post your error again in ravens distro forum.... |
|
|
|
 |
azism
Worker


Joined: Feb 02, 2005
Posts: 145
Location: Tucson, AZ
|
Posted:
Thu Aug 10, 2006 3:38 pm |
|
I am getting the error Quote: | PHP Warning: mktime() expects parameter 1 to be long, string given in /home/ti99ers/public_html/modules/Downloads/index.php on line 1087
|
Where lines 1087 and 1088 are as follows:
Quote: | line 1087 function categorynewdownloadgraphic($cat) {
line 1088 global $prefix, $db, $module_name, $datetime, $locale;
|
Now I've read the thread preceding this, but I am either really dense or I am totally missing what was stated.
What do I need to do???  |
_________________ Webmaster
TI99ers On-Line User Group
http://www.ti99ers.org/ |
|
|
 |
ozbutcher
Worker


Joined: Jan 17, 2007
Posts: 170
|
Posted:
Tue Jan 23, 2007 4:31 pm |
|
I got the same problem.
When I just submit a comment to a link on my site... and then click 'Link Comments' to read the comment I get this error:
Total of 1 comments
Warning: mktime() expects parameter 6 to be long, string given in C:\Program Files\xampp\htdocs\burntclan\modules\Web_Links\index.php on line 1235
Opening up the file listed above on that line I find this:
Code:$timestamp = mktime(0, 0, 0, $date_array['1'], $date_array['2'], $date_array['0']);
|
|
|
|
|
 |
|