Banner
Home Forum
Qivva Forum
Welcome, Guest
Please Login or Register.    Lost Password?
FIX Eventlist1.1 - Invalid argument supplied for
(1 viewing) 1 Guest
Go to bottom
TOPIC: FIX Eventlist1.1 - Invalid argument supplied for
#2229
Juul
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
FIX Eventlist1.1 - Invalid argument supplied for 1 Year, 5 Months ago Karma: 0
Dear Toni,

I have fixed it!

The mod_eventlistcal15q does NOT work with the 1.1beta2.0-7 version of eventlist. You'll then get this error, because the database is different:

Warning: Invalid argument supplied for foreach() in ...\modules\mod_eventlistcal15q\helper.php on line 131

To fix this open modules\mod_eventlistcal15q\helper.php and change the $query to:

Code:

$query = 'SELECT a.*, l.venue, DAYOFMONTH(a.dates) AS created_day, YEAR(a.dates) AS created_year, MONTH(a.dates) AS created_month,c.id AS mcatid,c.catname,l.id AS mlocid,l.venue,'
.' CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(\':\', a.id, a.alias) ELSE a.id END as slug'
. ' FROM #__eventlist_events AS a'
.' INNER JOIN #__eventlist_cats_event_relations AS rel ON rel.itemid = a.id'
.' INNER JOIN #__eventlist_categories AS c ON c.id = rel.catid'
. ' LEFT JOIN #__eventlist_venues AS l ON l.id = a.locid'
. $wherestr
. ' AND c.access <= '.(int)$user->aid
.($catid ? $categories : '')
.($venid ? $venues : '')
;



It is not backwards compatible.
 
Logged Logged
 
Last Edit: 2010/10/20 16:14 By toni.
  The administrator has disabled public write access.
#2233
toni
Administrator
Posts: 91
graphgraph
User Offline Click here to see the profile of this user
Re:How to fix Warning: Invalid argument supplied for. 1 Year, 5 Months ago Karma: 0
Thanks

I'll try and get an updated version for the new Beta Eventlist out soon incorporating your change.

Toni
 
Logged Logged
  The administrator has disabled public write access.
#2343
toni
Administrator
Posts: 91
graphgraph
User Offline Click here to see the profile of this user
Re:FIX Eventlist1.1 - Invalid argument supplied for 1 Year, 2 Months ago Karma: 0
A new version of the calendar has been released for Eventlist 1.1 Beta.
Find it in Downloads.

There is also an Ajax version of the calendar for Eventlist 1.1
 
Logged Logged
  The administrator has disabled public write access.
Go to top