TypeError: trim() expects parameter 1 to be string, null given in /chroot/home/abced32e/e517dbc91f.nxcli.net/html/app/code/Diana/SkuSearch/Observer/RedirectToProduct.php:47 Stack trace: #0 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/app/code/Diana/SkuSearch/Observer/RedirectToProduct.php(47): trim(NULL) #1 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Diana\SkuSearch\Observer\RedirectToProduct->execute(Object(Magento\Framework\Event\Observer)) #2 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Diana\SkuSearch\Observer\RedirectToProduct), Object(Magento\Framework\Event\Observer)) #3 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #4 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('controller_acti...', Array) #5 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/App/FrontController.php(279): Magento\Framework\Event\Manager\Proxy->dispatch('controller_acti...', Array) #6 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/App/FrontController.php(211): Magento\Framework\App\FrontController->dispatchPreDispatchEvents(Object(Magento\CatalogSearch\Controller\Result\Index\Interceptor), Object(Magento\Framework\App\Request\Http)) #7 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest(Object(Magento\Framework\App\Request\Http), Object(Magento\CatalogSearch\Controller\Result\Index\Interceptor)) #8 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #9 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #10 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/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)) #11 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/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)) #12 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/app/code/Infortis/Cgen/Plugin/Magento/Framework/App/FrontController.php(32): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #13 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/Interception/Interceptor.php(135): Infortis\Cgen\Plugin\Magento\Framework\App\FrontController->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #14 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/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)) #15 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/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)) #16 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #17 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL) #18 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #19 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch() #20 /chroot/home/abced32e/e517dbc91f.nxcli.net/html/pub/index.php(29): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #21 {main}