error on front end after install

Hello,

After installing I am getting this error on the front end.
Fatal error: Uncaught Error: Class ‘Mobile_Detect’ not found in /chroot/home/a749f153/hhdev.halfhitch.com/html/app/code/Ubertheme/UbMegaMenu/Helper/Mega.php:100 Stack trace: #0 /chroot/home/a749f153/hhdev.halfhitch.com/html/app/code/Ubertheme/UbMegaMenu/Block/Menu.php(171): Ubertheme\UbMegaMenu\Helper\Mega->rebuildData(Array) #1 /chroot/home/a749f153/hhdev.halfhitch.com/html/app/code/Ubertheme/UbMegaMenu/Block/Menu.php(135): Ubertheme\UbMegaMenu\Block\Menu->_generateMenuHtml(‘2’) #2 /chroot/home/a749f153/hhdev.halfhitch.com/html/vendor/magento/framework/View/Element/AbstractBlock.php(667): Ubertheme\UbMegaMenu\Block\Menu->_toHtml() #3 /chroot/home/a749f153/hhdev.halfhitch.com/html/vendor/magento/framework/View/Layout.php(558): Magento\Framework\View\Element\AbstractBlock->toHtml() #4 /chroot/home/a749f153/hhdev.halfhitch.com/html/vendor/magento/framework/View/Layout.php(534): Magento\Framework\View\Layout->_renderBlock(‘main.ub.mega.me…’) #5 /chroot/home/a749f153/hhdev.halfhitch.com/html/generated/code/Magento/Framework in /chroot/home/a749f153/hhdev.halfhitch.com/html/app/code/Ubertheme/UbMegaMenu/Helper/Mega.php on line 100

In developer mode when I run setup:di:compile I get this error.
Repositories code generation… 1/7 [====>———————--] 14% 1 sec 70.0 MiBPHP Fatal error: Interface ‘Magento\Framework\App\Action\HttpPostActionInterface’ not found in /chroot/home/a749f153/hhdev.halfhitch.com/html/app/code/Ubertheme/Base/Plugin/Controller/Product/Compare/Add.php on line 20
Fatal error: Interface ‘Magento\Framework\App\Action\HttpPostActionInterface’ not found in /chroot/home/a749f153/hhdev.halfhitch.com/html/app/code/Ubertheme/Base/Plugin/Controller/Product/Compare/Add.php on line 20

7 answers

Profile photo of ubdev Staff 73680.00 $tone November 15, 2020
Public

Hi there, 
 
As of UB Mega Menu v1.1.9, there’s an extra installation step — Installing the PHP Mobile Detect Resource APIs using Composer by requiring the mobiledetect/mobiledetectlibin your project.
 
Please take a look at the installation guide here. If you already completed that step and the issue still persists, please do let us know here. 
 
Regards,
Ubertheme team

#1
Profile photo of halfhitch 50.00 $tone November 22, 2020
Public

Hello, 
I have installed the php mobile detect and the error on the front end has gone away. However I am getting this error when I run setup:di:compile. 
 
Repositories code generation… 1/7 [====>———————--] 14% < 1 sec 66.0 MiBPHP Fatal error: Interface ‘Magento\Framework\App\Action\HttpPostActionInterface’ not found in /chroot/home/a749f153/hhdev.halfhitch.com/html/app/code/Ubertheme/Base/Plugin/Controller/Product/Compare/Add.php on line 20
 
Thank you for your help. 

#2
Profile photo of Mall Staff 156270.00 $tone 6 days ago
Public

Hi there,

Repositories code generation… 1/7 [====>———————--] 14% < 1 sec 66.0 MiBPHP Fatal error: Interface ‘Magento\Framework\App\Action\HttpPostActionInterface’ not found in

It seems that you are using an old version of Magento 2. What is the version of your M2 instance?

Regards,
Mall.

#3
Profile photo of halfhitch 50.00 $tone 6 days ago
Public

Hello, 
 
I am currently on magento 2.2.5. I am looking to upgrade to magento 2.3 but certain things about my current theme are preventing me from doing so. I am working through those issues. Your menu was built into my theme package but I want to keep it when I upgrade and get rid of my current theme, so I have removed it from the theme and installed it as a module.  Can it work with 2.2.5 while I work through my other issues? 

#4
Profile photo of ubdev Staff 73680.00 $tone 6 days ago
Public

Hi there,
Under your circumstance, please consider one of the options below: 

  • In order to use the latest UB Megamenu version, you have to upgrade to the latest Magento 2.4.1. 
  • If you want to move forward with the current M2.2.5, you need to use our older UB MegaMenu v1.1.5

If you select version 1.1.5, we will provide you a copy of that package via email upon your confirmation.
Regards,
Ubertheme team

#5
Profile photo of ubdev Staff 73680.00 $tone 6 days ago
Public

Hi there, 
It’s a pity that the customer group is available since version 1.1.7 only. 
Regards,
Ubertheme team

#7

Please login or Register to Submit Answer

Written By

Comments