Calendar Not Working

Permalink
I'm getting this message when trying to add the 'calendar' block to a page.

Does anyone know how to fix this?

Fatal error: Cannot redeclare class CalendarBlockController in /home/.energy/joekcellam/pipelinegeneration.com/packages/calendar/blocks/calendar/controller.php on line 228

joemalleck
 
ddbuster replied on at Permalink Reply
all previous calendar events bring up a blank page. New events no better
ryan replied on at Permalink Reply
ryan
Can you post a link to your site, do you have errors turned on in: Dashboard -> Sitewide Settings -> Debug?
joemalleck replied on at Permalink Reply
joemalleck
http://pginterns.com

Thanks!
ryan replied on at Permalink Reply
ryan
Did you have errors turned on?
Any other info?
joemalleck replied on at Permalink Reply
joemalleck
Should I set them to 'Development'?

I will have a look at controller.php and see what I can find. Thanks for the tips. I may attach the file if I can't get it to work.
joemalleck replied on at Permalink Reply
joemalleck
I tried to directly upload the calendar file via ftp into the 'blocks' folder and then when that didn't work, I installed it inside of Concrete and got the duplicate message. If I delete the lines in question and then re-install the calendar do you think that it will fix it?
ryan replied on at Permalink Reply
ryan
Chances are you can remove it from your blocks directory and everything will work fine.

When you say you installed it in concrete, I'm assuming that you mean you downloaded and installed it through the Dashboard -> Add Functionality page.

Attached is a screenshot of how your developer settings should look when your ... developing.
ryan replied on at Permalink Reply
ryan
Sounds like there's something wrong with your file:
/packages/calendar/blocks/calendar/controller.php

That file should only be 228 lines long, try opening that up & make sure that there isn't anything going on at the bottom of that file. Possibly post that file as an attachment.
joemalleck replied on at Permalink Reply
joemalleck
When I try and re-install through the dashboard->add functionality it installs fine but gives me this:

mysql error: [1062: Duplicate entry 'calendar_event' for key 2] in EXECUTE("insert into PageTypes (ctHandle, ctName, ctIcon, pkgID) values ('calendar_event', 'Event', 'main.png', '2')")

Do I need to edit the database? What am I looking for?
ScottC replied on at Permalink Reply
ScottC
uninstalled when a package is reinstalled then installed. The reason is you have a page that is using the calendar event.

What I would do is move any existing calendar events to your default pagetype, then go into the dashboard pages and themes/ pagetypes, click edit next to the offending pagetypes, and delete them.

The install process should probably work then, but I haven't looked at the calendar package in a while, but this is probably the issue with you. Or you can delete the events and then delete the pagetype, that'll certainly work and won't give you the duplication error that you are currently seeing.
joemalleck replied on at Permalink Reply
joemalleck
So it installed fine with no error message, but now when I go to add a calendar to a page it gives me a blank page.