Error: Call to a member function getData() on null in /var/www/virtual/gosmarteyewear.com/htdocs/app/code/Zemez/AjaxCompare/Plugin/Product/Compare/Add.php:56 Stack trace: #0 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Zemez\AjaxCompare\Plugin\Product\Compare\Add->aroundExecute(Object(Magento\Catalog\Controller\Product\Compare\Add\Interceptor), Object(Closure)) #1 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php(51): Magento\Catalog\Controller\Product\Compare\Add\Interceptor->Magento\Framework\Interception\{closure}() #2 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute(Object(Magento\Catalog\Controller\Product\Compare\Add\Interceptor), Object(Closure)) #3 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Product\Compare\Add\Interceptor->Magento\Framework\Interception\{closure}() #4 /var/www/virtual/gosmarteyewear.com/htdocs/generated/code/Magento/Catalog/Controller/Product/Compare/Add/Interceptor.php(23): Magento\Catalog\Controller\Product\Compare\Add\Interceptor->___callPlugins('execute', Array, NULL) #5 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/App/Action/Action.php(111): Magento\Catalog\Controller\Product\Compare\Add\Interceptor->execute() #6 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #7 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Product\Compare\Add\Interceptor->___callParent('dispatch', Array) #8 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Product\Compare\Add\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #9 /var/www/virtual/gosmarteyewear.com/htdocs/generated/code/Magento/Catalog/Controller/Product/Compare/Add/Interceptor.php(32): Magento\Catalog\Controller\Product\Compare\Add\Interceptor->___callPlugins('dispatch', Array, Array) #10 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/App/FrontController.php(186): Magento\Catalog\Controller\Product\Compare\Add\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #11 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/App/FrontController.php(118): Magento\Framework\App\FrontController->processRequest(Object(Magento\Framework\App\Request\Http), Object(Magento\Catalog\Controller\Product\Compare\Add\Interceptor)) #12 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #13 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #14 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #15 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #16 /var/www/virtual/gosmarteyewear.com/htdocs/app/code/Zemez/LayoutSwitcher/Model/App/Action/ContextPlugin.php(40): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #17 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Zemez\LayoutSwitcher\Model\App\Action\ContextPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #18 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(75): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #19 /var/www/virtual/gosmarteyewear.com/htdocs/app/code/Zemez/SiteMaintenance/Model/PageCache/App/FrontController/BuiltinPlugin.php(30): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #20 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Zemez\SiteMaintenance\Model\PageCache\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #21 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #22 /var/www/virtual/gosmarteyewear.com/htdocs/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL) #23 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #24 /var/www/virtual/gosmarteyewear.com/htdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http->launch() #25 /var/www/virtual/gosmarteyewear.com/htdocs/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http\Interceptor->launch() #26 /var/www/virtual/gosmarteyewear.com/htdocs/pub/index.php(29): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #27 {main}