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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Event Calendar Not showing up


Go to End


7 Posts   2031 Views

Avatar
Yellow7 Jon

Community Member, 39 Posts

30 April 2009 at 5:06am

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

Forum Moderator, 4102 Posts

30 April 2009 at 5:48am

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

Avatar
Yellow7 Jon

Community Member, 39 Posts

30 April 2009 at 7:17am

Edited: 30/04/2009 7:18am

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

Forum Moderator, 4102 Posts

30 April 2009 at 7:23am

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

Avatar
Yellow7 Jon

Community Member, 39 Posts

30 April 2009 at 7:33am

Edited: 30/04/2009 7:34am

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

Forum Moderator, 4102 Posts

30 April 2009 at 7:40am

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

Community Member, 39 Posts

1 May 2009 at 10:02am

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?