Event Search Module gives error

  • OTWD
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 8 months ago #47346 by OTWD
Event Search Module gives error was created by OTWD
Hi
I have setup the module however when searching the following error appears instead of the event description.
The events are set to ACCESS "public" but Registration Access "registered"
If i change this to ACCESS "public" but Registration Access "public " the error goes away.
Here is the error

Your search Warning: in_array() expects parameter 2 to be array, null given in /components/com_eventbooking/views/common/events_default.php on line 66


Here is line 66
<?php
}
//output event description
if (!$event->short_description)
{
$event->short_description = $event->description;
}
echo $event->short_description;
if (!$canRegister && $event->registration_type != 3 && $config->display_message_for_full_event && !$waitingList)
{
if (@$event->user_registered)
{
$msg = JText::_('EB_YOU_REGISTERED_ALREADY');
}
elseif (!in_array($event->registration_access, $viewLevels))
{
$msg = JText::_('EB_LOGIN_TO_REGISTER') ;
}
else
{
$msg = JText::_('EB_NO_LONGER_ACCEPT_REGISTRATION') ;
}
?>

Success consists of going from failure to failure without loss of enthusiasm.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 8 months ago #47354 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Search Module gives error
Hi

Could you please get this file, unzip it, upload to administrator/components/com_eventbooking/views/search and check it again?

Tuan
The following user(s) said Thank You: OTWD

Please Log in or Create an account to join the conversation.

  • OTWD
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 8 months ago #47369 by OTWD
Replied by OTWD on topic Event Search Module gives error
Hi Tuan
Thanks that worked perfectly. Great support as usual!
Best wishes

Success consists of going from failure to failure without loss of enthusiasm.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 8 months ago #47382 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Search Module gives error
Great. Thanks for confirming .

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc