components/com_eventbooking/router.php on line 202

  • OTWD
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 11 months ago #45811 by OTWD
Error in log file
PHP Warning: Division by zero in /home/xxxx/public_html/components/com_eventbooking/router.php on line 202
Lines 198 - 204 EB1.6.2

if (isset($query) || isset($query))
{
$limit = $app->getUserState('eventbooking.limit');
$limitStart = isset($query) ? (int)$query : (int)$query;
$page = ceil(($limitStart + 1) / $limit);
$segments[] = JText::_('EB_PAGE').'-'.$page;
}

Is there a code fix for this error? I can update my EB system as i have lots of mods done to it so can you let me know what could be causing this error?
Thanks

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

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

More
9 years 11 months ago #45812 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic components/com_eventbooking/router.php on line 202
We changed some code in the router from version 1.6.4. You can get the updated file here, unzip, then upload to components/com_eventbooking folder to get the issue sorted.

Tuan
Attachments:

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

Moderators: Tuan Pham Ngoc