- Posts: 339
- Thank you received: 5
Event Search Module gives error
- OTWD
-
Topic Author
- Offline
- Platinum Member
-
Less
More
11 years 8 months ago #47346
by OTWD
Success consists of going from failure to failure without loss of enthusiasm.
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') ;
}
?>
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
-
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
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
-
Less
More
- Posts: 339
- Thank you received: 5
11 years 8 months ago #47369
by OTWD
Success consists of going from failure to failure without loss of enthusiasm.
Replied by OTWD on topic Event Search Module gives error
Hi Tuan
Thanks that worked perfectly. Great support as usual!
Best wishes
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
-
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
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.