Hello,
I have installed UB Mega Menu.
In my frontend appears ‘Mobile_Detect’…
I need an extension that works immediately and not one where I have to install something that doesn’t work.
Please refund my money.
Thank You!
7 answers
Hello,
I put the files in Vendor mobile_detect / mobile detect lib /
But it doesn’t work.
My shop keeps giving an error.
Please tell me how to configure it correctly.
Otherwise I would like a refund.
Thanks
Error: Class ‘Mobile_Detect’ not found in /var/www/html/Source/app/code/Ubertheme/Base/Plugin/Magento/Framework/App/Http/Context.php:13 Stack trace: # 0 / var / www /html/Source/vendor/magento/framework/Interception/Interceptor.php(121): Ubertheme \ Base \ Plugin \ Magento \ Framework \ App \ Http \ Context-> beforeGetVaryString (Object (Magento \ Framework \ App \ Http \ Context \ Interceptor)) # 1 /var/www/html/Source/vendor/magento/framework/Interception/Interceptor.php(153): Magento \ Framework \ App \ Http \ Context \ Interceptor-> Magento \ Framework \ Interception \ { closure} () # 2 /var/www/html/Source/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(78): Magento \ Framework \ App \ Http \ Context \ Interceptor -> ___ callPlugins (‘getVaryString’, Array, Array) # 3 /var/www/html/Source/vendor/magento/framework/App/PageCache/Identifier.php(57):
etc.
Hi Steph,
Please tell me how to configure it correctly.
As per the guide -- How to install PHP Mobile Detect Resource APIs, you need to install that lib via Composer, you can run the following command in your M2 root folder to install:
composer require mobiledetect/mobiledetectlib
Please try once again.
PS. Our team is off at the weekend, our apology for a certain delay during this time. We will follow up closely on your case though.
Regards,
Ubertheme team
Hi,
doesn’t work for me -- my frontend is not loading.
It’s a local dev on ubuntu.
my console output:
~$ composer require mobiledetect/mobiledetectlib
Using version ^2.8 for mobiledetect/mobiledetectlib
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
-- Installing mobiledetect/mobiledetectlib (2.8.37): Loading from cache
Writing lock file
Generating autoload files
Any ideas
Hi Steph,
We’re sorry for replying to you a little bit late.
From the information you provided, we can see that you have installed the PHP mobile detect lib via Composer successfully.
To finish the installation, you run the CLI command in your M2 root folder:
php -f bin/magento setup:upgrade;
And then, let us how it goes.
Regards,
Mall.
Hello,
php -f bin/magento setup:upgrade; I have already tried.
I have a local dev environment on ubuntu linux.
Currently the extension is not working.
?
Below is the error code from my FF.
Best regards
Steph
Error: Class ‘Mobile_Detect’ not found in /var/www/html/Source/app/code/Ubertheme/Base/Plugin/Magento/Framework/App/Http/Context.php:13 Stack trace: #0 /var/www/html/Source/vendor/magento/framework/Interception/Interceptor.php(121): Ubertheme\Base\Plugin\Magento\Framework\App\Http\Context->beforeGetVaryString(Object(Magento\Framework\App\Http\Context\Interceptor)) #1 /var/www/html/Source/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #2 /var/www/html/Source/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(78): Magento\Framework\App\Http\Context\Interceptor->___callPlugins(‘getVaryString’, Array, Array) #3 /var/www/html/Source/vendor/magento/framework/App/PageCache/Identifier.php(57): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #4 /var/www/html/Source/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\PageCache\Identifier->getValue() #5 /var/www/html/Source/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\PageCache\Identifier\Interceptor->___callParent(‘getValue’, Array) #6 /var/www/html/Source/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\PageCache\Identifier\Interceptor->Magento\Framework\Interception\{closure}() #7 /var/www/html/Source/generated/code/Magento/Framework/App/PageCache/Identifier/Interceptor.php(26): Magento\Framework\App\PageCache\Identifier\Interceptor->___callPlugins(‘getValue’, Array, Array) #8 /var/www/html/Source/vendor/magento/framework/App/PageCache/Kernel.php(112): Magento\Framework\App\PageCache\Identifier\Interceptor->getValue() #9 /var/www/html/Source/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\PageCache\Kernel->load() #10 /var/www/html/Source/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #11 /var/www/html/Source/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #12 /var/www/html/Source/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins(‘dispatch’, Array, Array) #13 /var/www/html/Source/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #14 /var/www/html/Source/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch() #15 /var/www/html/Source/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http\Interceptor->launch() #16 /var/www/html/Source/index.php(68): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #17 {main}
Hi Steph,
php -f bin/magento setup:upgrade; I have already tried.
The error notice you mentioned in reply#6 is strange. With the information and result in your reply #4, then running the command setup:upgrade as per our reply #5 should get the module ready.
We wonder if you did complete the setup:upgrade successfully.
Anyway, please try to deploy once again following these steps:
1. Run the CLI commands below one by one:
php -f bin/magento deploy:mode:set developer
php -f bin/magento setup:upgrade
php -f bin/magento setup:di:compile
2. Then check the issue again.
If the issue still persists, please help to move your M2 to a live staging instance where we can take a closer look and help debug directly.
Regards,
Ubertheme team