Thanks very much for the pointers,
I've been struggling with this for a while now and have attempted to search the forums for information but it have trouble searching for the specific detail that I'm looking for. I uninstalled mxcalendar, tried Churcheventscalendar, decided that wasn't suitable, reinstalled mxcalendar(clearing down caches, logging out etc, before after all actions) and attempted to trace the source of the problem without really knowing what I'm looking for
.
I've tried removing the '?' from the call - but unfortunately I still get the notices and the dodgy output :-(
I'm convinced that it's probably a problem stemming from my having something set up wrongly in one of the configuration files or maybe a problem with Ajax.
I've tried putting a call to the 1.7.1 script library in the page headers, but that doesn't seem to have worked.
I installed Firebug and got a little more info but not sure how to interpret it apart from the fact it seems to indicate that something is not quite working as expected
(snippet is now id 49 as Formit and colorpicker also installed now!)
But looking back I found the debug command for the date - which seems to point at a server problem(now I just need to work out where to look)
Thanks very much again,
Allan
:
Filtering calendar date SQL range with: 01/01/1970 through 02/12/1970
SQL: SELECT mxCalendarEvents.* FROM `mod1_mxcalendars_events` AS `mxCalendarEvents` WHERE ( ( `mxCalendarEvents`.`repeating` = 0 AND `mxCalendarEvents`.`enddate` >= 0 AND `mxCalendarEvents`.`enddate` <= 3628800 OR ( `mxCalendarEvents`.`repeating` = 1 AND `mxCalendarEvents`.`repeatenddate` >= 0 ) ) AND `mxCalendarEvents`.`context` IN ('','web') AND `mxCalendarEvents`.`active` = 1 ) ORDER BY startdate ASC LIMIT 99
mxCalendars Query started @0.039999961853027 and ended @0.039999961853027 for total processing time of 0 seconds
Returned Events: 0
mxc result set loop started @0.039999961853027 and ended @0.039999961853027 for total processing time of 0 seconds
generate list of all columns for sorting started @0.039999961853027 and ended @0.039999961853027 for total processing time of 0 seconds
No valid dates returned.
<div class="container">
<b>Notice</b>: Undefined variable: properties in <b>C:\xampp\htdocs\wacsites\core\cache\includes\elements\modsnippet\49.include.cache.php</b> on line <b>109</b>
<b>Notice</b>: Undefined index: dt in <b>C:\xampp\htdocs\wacsites\core\components\mxcalendars\model\mxcalendars\mxcalendars.class.php</b> on line <b>392</b>
<b>Notice</b>: Undefined index: dt in <b>C:\xampp\htdocs\wacsites\core\components\mxcalendars\model\mxcalendars\mxcalendars.class.php</b> on line <b>392</b>
<b>Notice</b>: Undefined variable: debug in <b>C:\xampp\htdocs\wacsites\core\components\mxcalendars\model\mxcalendars\mxcalendars.class.php</b> on line <b>400</b>
<b>Notice</b>: Undefined index: dt in <b>C:\xampp\htdocs\wacsites\core\components\mxcalendars\model\mxcalendars\mxcalendars.class.php</b> on line <b>406</b>
<b>Notice</b>: Undefined index: cid in <b>C:\xampp\htdocs\wacsites\core\components\mxcalendars\model\mxcalendars\mxcalendars.class.php</b> on line <b>421</b>
<b>Notice</b>: Undefined index: cid in <b>C:\xampp\htdocs\wacsites\core\components\mxcalendars\model\mxcalendars\mxcalendars.class.php</b> on line <b>422</b>
<b>Notice</b>: Undefined index: cid in <b>C:\xampp\htdocs\wacsites\core\components\mxcalendars\model\mxcalendars\mxcalendars.class.php</b> on line <b>423</b>
<b>Notice</b>: Undefined index: cid in <b>C:\xampp\htdocs\wacsites\core\cache\includes\elements\modsnippet\49.include.cache.php</b> on line <b>398</b>
<div id="calbody" style="">
<a href="index.php?id=1&conf=%2Cweb&dt=2013-07" class="mxcnav sm" id="mxctodaylnk">Today</a>
<span class="nomargins">
<a href="index.php?id=1&conf=%2Cweb&dt=2013-06" class="mxcnav" id="mxcprevlnk"><</a>
<a href="index.php?id=1&conf=%2Cweb&dt=2013-08" class="mxcnav" id="mxcnextlnk">></a>
</span>
<span class="label">July 2013</span>
<table id="Wed" class="Wed1970">
<tr id="" class="">
<td id="" class="mxcdow">
mxcalendars.label_dow_
</td><td id="" class="mxcdow">
mxcalendars.label_dow_
</td><td id="" class="mxcdow">
mxcalendars.label_dow_
</td><td id="" class="mxcdow">
mxcalendars.label_dow_
</td><td id="" class="mxcdow">
mxcalendars.label_dow_
</td><td id="" class="mxcdow">
mxcalendars.label_dow_
</td><td id="" class="mxcdow">
mxcalendars.label_dow_
</td>
</tr><tr id="mxcWeek0" class="Wednesday07">
<td id="dom-Thursday01" class="noEvents ncm">
<!-- day of month label -->
<div class="datestamp">Jan 1</div>
<!-- event listing container -->
<div id="" class="event">
</div>
</td><td id="dom-Friday02" class="noEvents ncm">
<!-- day of month label -->
<div class="datestamp"> 2</div>
<!-- event listing container -->
<div id="" class="event">
</div>
</td><td id="dom-Saturday03" class="noEvents ncm">
<!-- day of month label -->
<div class="datestamp"> 3</div>
<!-- event listing container -->
<div id="" class="event">
</div>
</td><td id="dom-Sunday04" class="noEvents ncm">
<!-- day of month label -->
<div class="datestamp"> 4</div>
<!-- event listing container -->
<div id="" class="event">
Seems to point at this:
public function getEventCalendarDateRange($activeMonthOnlyEvents=false){
$startDate = $_REQUEST['dt'] ? $_REQUEST['dt'] : ($this->config['dt'] ? $this->config['dt'] : strftime('%Y-%m'));
$mStartDate = strftime('%Y-%m',strtotime($startDate)) . '-01 00:00:01';
$nextMonth = strftime('%Y-%m', strtotime('+1 month',strtotime($mStartDate)));
$prevMonth = strftime('%Y-%m', strtotime('-1 month',strtotime($mStartDate)));
$startDOW = strftime('%u', strtotime($mStartDate));
$lastDayOfMonth = strftime('%Y-%m',strtotime($mStartDate)) . '-'.date('t',strtotime($mStartDate)) .' 23:59:59';
$startMonthCalDate = $startDOW <= 6 ? strtotime('- '.$startDOW.' day', strtotime($mStartDate)) : strtotime($mStartDate) ;
$endMonthCalDate = strtotime('+ 6 weeks', $startMonthCalDate);
if($debug) echo 'Active Month Only: '.$mStartDate.' :: '.$lastDayOfMonth.' All displayed dates: '.strftime('%Y-%m-%d',$startMonthCalDate).' :: '.strftime('%Y-%m-%d',$endMonthCalDate).'
';
if($activeMonthOnlyEvents) return array('start'=>strtotime($mStartDate), 'end'=>strtotime($lastDayOfMonth)); else return array('start'=>$startMonthCalDate, 'end'=>$endMonthCalDate);
}
All of which seems to say that this isn't working with the way I've (mis?)configured Apache
[ed. note: allan1 last edited this post 10 years, 9 months ago.]