New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Fatal error: Cannot redeclare class Mobile_Detect #622
Comments
Hey all - any idea about that issue ? |
Did you edit the plugin at all or have a class declaration of Mobile_Detect anywhere else on your site? |
This is not an issue, you included the Mobile_Detect.php twice. You can use include_once instead of include (or require_once instead of require), for example |
I use it like this /httpdcs/fun.php ` function isMobile()
and for mobile same code in structure How it should looks like to work properly ? That issue I described is very rare - normally website detection works very good |
When you call your |
Used Wordpress to install this, got the same error. Switching to another plugin, but thought you should know. |
Thank you @u-mulder and everyone for the assist on this issue. |
Hello,
I`m getting following error :
[09-Jan-2017 06:53:42 UTC] PHP Fatal error: Cannot redeclare class Mobile_Detect in /var/www/vhosts/website.com/httpdocs/libs/MobileDetect/Mobile_Detect.php on line 29
My version is @Version 2.8.24
The issue is random for me and not very frequent - can you resolve ?
tnx
Grzegorz
The text was updated successfully, but these errors were encountered: