Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Event Calendar Not showing up


Reply

7 Posts   1457 Views

Avatar
Yellow7 Jon

30 April 2009 at 5:06am Community Member, 39 Posts

Im trying to get the calendar ($CalendarWidget) to show up on the homepage, it parses in the template, but does not show anything. Likewise, when i goto the event calendar page, it just says "Loading" where the calendar is supposed to be.

Any help would be nice

Avatar
UncleCheese

30 April 2009 at 5:48am 4085 Posts

Probably a javascript conflict. Can you list all the scripts you have running on that page?

Avatar
Yellow7 Jon

30 April 2009 at 7:17am (Last edited: 30 April 2009 7:18am), Community Member, 39 Posts

heres the javascript files for the homepage, and event calendar page.

i removed all of my scripts and it still did not show up...

Attached Files
Avatar
UncleCheese

30 April 2009 at 7:23am 4085 Posts

Probably need to get rid of all that Prototype stuff. Is Firebug throwing any errors?

Avatar
Yellow7 Jon

30 April 2009 at 7:33am (Last edited: 30 April 2009 7:34am), Community Member, 39 Posts

thats all thrown in by silverstripe :(

this is only thrown on the events_calendar page

[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMViewCSS.getComputedStyle]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost/silverstripe2/event_calendar/javascript/jquery-1.2.6.min.js?m=1237483490 :: anonymous :: line 22" data: no]
[Break on this error] jQuery.swap(elem,props,getWH);return Mat...form")||elem.options)ret.push(elem);else

Avatar
UncleCheese

30 April 2009 at 7:40am 4085 Posts

Those are some pretty nasty looking errors that will kill any scripts you have scheduled to run after them. I'd work on getting rid of those first. If you take CalendarWidget out of your template, does the page render error-free?

Avatar
Yellow7 Jon

1 May 2009 at 10:02am Community Member, 39 Posts

ok, started over and re-upgraded my installation (after pulling it from the production site) and got the Calendar to show up on the Events Calendar page, but still cant on the homepage

when i goto /home/ with ?showtemplate=1 this is what shows up where the $CalendarWidget is

271 <h2>Event Calendar</h2>
272          
273          
274 SSVIEWER;
275 $val .= $item->XML_val("CalendarWidget",null,true) ;
276 $val .= <<<SSVIEWER
277
278          
279          
280       </div>
281    </div>
282    
283 </div>      
284
285
286 SSVIEWER;

any ideas?