Small fix on an existing site

Permalink
Hi there,

One of my client C5 sites needs a small fix.

The site ishttp://blindsports.on.ca/

The events page -http://blindsports.on.ca/events/... is displaying an error message and the events are showing up multiple times.

Please send me quote on fixing the error.

Thanks in advance.

James

 
exchangecore replied on at Permalink Reply
exchangecore
Could you pastebin the files that are throwing the errors so we can have a look at what we're dealing with?
jshannon replied on at Permalink Reply
jshannon
Also, it looks like it's a 3rd party block. Have you contacted the original developer for help?
jdog75 replied on at Permalink Reply 1 Attachment
Hi guys,

Thanks for the note.

I am attaching a screen shot which shows the error message. The page in question is the events page -http://blindsports.on.ca/events/...

I had a developer build the site a couple of years ago and have not been able to get in touch with him, so I was not aware it was a 3rd party block.

Hope this helps.

Thanks

Best Regards,

James
jshannon replied on at Permalink Reply
jshannon
Oh. I thought maybe it was a marketplace thing.

Having a picture of the page that we can see if we go to the URL doesn't do much good. The source code is required, which is a bit more difficult than trivial to get...
exchangecore replied on at Permalink Best Answer Reply
exchangecore
I didn't really dig into how the code works so much but the solution was pretty obvious; I went ahead an patched this for you. It was a really simple fix.

Changed /packages/calendar/blocks/calendar/controller.php Line 28
$this->calendarCIDs=explode(',',$this->calendarCIDs);


To the Following:

if(!is_array($this->calendarCIDs)){
        $this->calendarCIDs=explode(',',$this->calendarCIDs);
    }


Happy I could help!