Posted: Tue 23. May 2006, 00:14
Strange, exactly my setup
volkamn
volkamn
The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
Code: Select all
Add a New Event
Category:
Date:
Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 79
Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 79
Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 95
Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 95
Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 111
Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 111
oLi303 wrote:i installed the calendar mod and all is working fine so far.
but, when i start to add a new event, the interface shows some php/sql errors. like this:
everything else is working ! the system is running under xampp for windows. any ideas ?Code: Select all
Add a New Event Category: Date: Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 79 Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 79 Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 95 Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 95 Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 111 Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in E:\xampp\htdocs\wcms\include\inc_module\mod_calendar\inc_lib\main.functions.php on line 111
Code: Select all
<?php
// main function for calendar mod
function stateSelect($selected) {
$states = array (
"AL"=>"Alabama",
"AK"=>"Alaska",
"AZ"=>"Arizona",
"AR"=>"Arkansas",
"CA"=>"California",
"CO"=>"Colorado",
"CT"=>"Connecticut",
"DE"=>"Delaware",
"FL"=>"Florida",
"GA"=>"Georgia",
"HI"=>"Hawaii",
"ID"=>"Idaho",
"IL"=>"Illinois",
"IN"=>"Indiana",
"IA"=>"Iowa",
"KS"=>"Kansas",
"KY"=>"Kentucky",
"LA"=>"Louisiana",
"ME"=>"Maine",
"MD"=>"Maryland",
"MA"=>"Massachusetts",
"MI"=>"Michigan",
"MN"=>"Minnesota",
"MS"=>"Mississippi",
"MO"=>"Missouri",
"MT"=>"Montana",
"NE"=>"Nebraska",
"NV"=>"Nevada",
"NH"=>"New Hampshire",
"NJ"=>"New Jersey",
"NM"=>"New Mexico",
"NY"=>"New York",
"NC"=>"North Carolina",
"ND"=>"North Dakota",
"OH"=>"Ohio",
"OK"=>"Oklahoma",
"OR"=>"Oregon",
"PA"=>"Pennsylvania",
"RI"=>"Rhode Island",
"SC"=>"South Carolina",
"SD"=>"South Dakota",
"TN"=>"Tennessee",
"TX"=>"Texas",
"UT"=>"Utah",
"VT"=>"Vermont",
"VA"=>"Virginia",
"WA"=>"Washington",
"WV"=>"West Virginia",
"WI"=>"Wisconsin",
"WY"=>"Wyoming"
);
while (list($key, $val) = each($states)) {
$value .= "<option value="" . $key . """;
if ($key == $selected) {
$value .= " selected";
}
$value .= ">" . $val . "</option>\n";
}
return $value;
}
function showCategories($value) {
$result = mysql_query("SELECT * FROM " . $GLOBALS['tables']['cal_categories'])
or die("There was an error<br /> " . mysql_error() . "<hr />");
$select .= "<select name="category">";
while ($row = mysql_fetch_array($result)) {
$select .= "<option value="$row[id]">$row[name]</option>\n";
}
$select .= "</select>\n";
return $select;
}
function showMonths($month="January", $name="MyMonth") {
if($month==""){$month = "now";}
$month = date('n', strtotime($month || 'NopeIAmEmpty'));
$months = "<select name="$name">\n";
for ($i=1; $i<=12; $i++) {
$months .= "<option name="month"";
if ($month==$i) {
$months .= " selected";
}
$months .= " value="" .date("n", strtotime("$i/15/2004"))."">";
$months .= date("F", strtotime("$i/15/2004"));
$months .= "</option>\n";
}
$months .= "</select>";
return $months;
}
function showDays($day=1, $name="MyDay") {
if($day==""){$day = "now";}
$day = date('d', strtotime($day || 'NopeIAmEmpty'));
$days = "<select name="$name">\n";
for ($i=1; $i<=31; $i++) {
$days .= "<option name="day"";
if ($day == $i) {
$days .= " selected";
}
$days .= " value="" . $i . "" />";
$days .= $i;
$days .= "</option>\n";
}
$days .= "</select>\n";
return $days;
}
function showYears($year, $name) {
if($year==""){$year = "now";}
$year = date('Y', strtotime($Year || 'NopeIAmEmpty'));
$thisYear = date("Y");
$years = "<select name="$name">\n";
for ($i=date("Y"); $i<=($thisYear+3); $i++) {
$years .= "<option name="year"";
if ($year == $i) {
$years .= " selected";
}
$years .= " value="" . $i . "" />";
$years .= $i;
$years .= "</option>\n";
}
$years .= "</select>\n";
return $years;
}
function showSpan($val) {
$value = "<select name="span">\n";
for ($i=1; $i<=31; $i++) {
$value .= "<option value="$i"";
if ($i == $val)
$value .= "selected";
$value .= ">$i</option>\n";
}
$value .= "</select>\n";
return $value;
}
function showYesOrNo($name, $formValue) {
$value .= "<select name="$name">\n";
for ($i=0; $i<=1; $i++) {
$value .= "<option value="$i" ";
if ($i == $formValue)
$value .= "selected";
$value .= ">";
if ($i == 0)
$value .= "No";
else
$value .= "Yes";
$value .= "</option>\n";
}
$value .= "</select>";
return $value;
}
?>