1. Rob Swart
  2. General Talk
  3. Wednesday, 28 May 2014
  4.  Subscribe via email
Hi Yves,

I've found some bugs and solutions to them.
I'm not really a php programmer, so I don't know if my solutions are truly ok, but they work for me.

1. SQL error when publishing or unpublishing an event in the administrator eventlist.
When clicking on the publish icon or when selecting an event and clicking the publish of unpublish button this error appears:
"1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 SQL=UPDATE vpcb_matukio_recurring SET published = '0' WHERE event_id IN ()"
As you can see the eventId is not filled.

My solution:
File: /administrator/components/com_matukio/controllers/eventlist.php
Find: public function publish() and after that // Update recurring events (line 106)
Add after this line the following code:
$db = JFactory::getDbo();
$cids = implode(',', $ids);

2. When editing a booking, my participants keep getting an error saying they did not accept the terms and conditions.
This is while the box for accepting is filled. I think it's because this box is disabled in some cases.

My solution:
File: /components/com_matukio/views/event/tmpl/default.php
Find: “// AGB-Bestaetigung anzeigen”
Disable the four lines of code on and after line 874:
// if ($this->art == 0 OR $this->art == 2 OR $this->art == 1 OR $this->art == 4 OR $tempdis != "";)
// {
// $htx1 .= " disabled";
// }

I have no idea if I've killed some other function by doing this, but after extensive testing everything seems fine.

Maybe you can use this. Maybe not. Do with it whatever you like B)
It's also possible that I have overlooked the obvious and that there are other solutions to these bugs. Please tell me if so.
Responses (13)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now

Last questions

Dowload all Hotspots entries
Hi there, I'm looking for a way to dowload all the Hotspots entries. I've got t...
0 Replies
Posted on Sunday, 06 April 2025
  • #kml
  • #download
Set number of hotspots / user groups
Hi, I'm working with Hotspots for my new website and I love it! After trying ...
0 Replies
Posted on Monday, 31 March 2025
J5 compatibility for Hotspots
Hi guys, Just started to update my old J3x website. Is there J5 compatibility p...
1 Replies
Posted on Monday, 24 February 2025
  • #Hotspots
  • #hotspots Joomla 5
Text size in the comment input form
Hello. How can I increase the font size in the comment input field? For examp...
0 Replies
Posted on Wednesday, 26 February 2025
  • #CComment 6
Problem with enlarged image
Hello. When you click on the image in the comments, it does not appear in the ce...
1 Replies
Posted on Wednesday, 26 February 2025