Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Mobile_Detect error
(1 viewing) (1) Guest
Support forum for customers who have purchased this product with priority support pack. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Mobile_Detect error

Mobile_Detect error 11 years, 2 months ago #41017

I want to add a menu item for creating an artice on the frondend.
But when i do this, is get this error:

Fatal error: Cannot redeclare class Mobile_Detect in /var/www/vhosts/portlandzalencentrum.nl/httpdocs/components/com_booking/assets/libraries/mobile_detect/Mobile_Detect.php on line 35


Please help.

(Running ARTIO Booking 2.2.0 with Joomla! 2.5.14)
The topic has been locked.

Re: Mobile_Detect error 11 years, 2 months ago #41053

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

This problem should be solved in version 2.1.3+
You can check this TOPIC: HELP!!! Nothing but Issues!!!

But I consulted problem with other developers and you can try this modification:
Open file administrator/components/com_booking/helpers/config.php

There is this row:
require_once(JPATH_ROOT.DS.'components'.DS.'com_booking'.DS.'assets'.DS.'libraries'.DS.'mobile_detect'.DS.'Mobile_Detect.php');


Modify it to:
if (!class_exists('Mobile_Detect'))
require_once(JPATH_ROOT.DS.'components'.DS.'com_booking'.DS.'assets'.DS.'libraries'.DS.'mobile_detect'.DS.'Mobile_Detect.php');


Let us know if it helps.
ARTIO Support Team
The topic has been locked.

Re: Mobile_Detect error 11 years, 2 months ago #41063

maju wrote:
Hello,

This problem should be solved in version 2.1.3+
You can check this TOPIC: HELP!!! Nothing but Issues!!!

But I consulted problem with other developers and you can try this modification:
Open file administrator/components/com_booking/helpers/config.php

There is this row:
require_once(JPATH_ROOT.DS.'components'.DS.'com_booking'.DS.'assets'.DS.'libraries'.DS.'mobile_detect'.DS.'Mobile_Detect.php');


Modify it to:
if (!class_exists('Mobile_Detect'))
require_once(JPATH_ROOT.DS.'components'.DS.'com_booking'.DS.'assets'.DS.'libraries'.DS.'mobile_detect'.DS.'Mobile_Detect.php');


Let us know if it helps.



This did the trick, thanks!
The topic has been locked.

Re: Mobile_Detect error 11 years, 2 months ago #41072

  • maju
  • OFFLINE
  • Posts: 1107
Ok, modification will be also in version 2.2.1.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
User Login Empty