- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
UPGRADE FROM mAGENTO 2.1.6 TO 2.1.7 AND GETTING THIS ERROR PLEASE HELP
I dont know a ton about Magento anyone have insight into why I am getting this code?
Warning: ltrim() expects parameter 1 to be string, object given in /home/wworks/public_html/store/vendor/magento/framework/Code/Generator/EntityAbstract.php on line 152
Notice: Uninitialized string offset: 0 in /home/wworks/public_html/store/vendor/magento/framework/Autoload/ClassLoaderWrapper.php on line 81
Notice: Uninitialized string offset: 0 in /home/wworks/public_html/store/vendor/composer/ClassLoader.php on line 375
An error has happened during application run. See exception log for details.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: UPGRADE FROM mAGENTO 2.1.6 TO 2.1.7 AND GETTING THIS ERROR PLEASE HELP
@webdesigner1507You should check the exception log for more details. What you have provided are just warning and notices it may not be real cause of issue.
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: UPGRADE FROM mAGENTO 2.1.6 TO 2.1.7 AND GETTING THIS ERROR PLEASE HELP
I tried to add it here but it said it was too much text lol
I will see if I can attach it something
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: UPGRADE FROM mAGENTO 2.1.6 TO 2.1.7 AND GETTING THIS ERROR PLEASE HELP
a:4:{i:0;s:25:"Cannot initialize product";i:1;s:9275:"#0 /home/wworks/public_html/store/vendor/magento/framework/App/Action/Action.php(102): Magento\Review\Controller\Product\ListAjax->execute() #1 /home/wworks/public_html/store/vendor/magento/module-review/Controller/Product.php(169): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #2 /home/wworks/public_html/store/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Review\Controller\Product->dispatch(Object(Magento\Framework\App\Request\Http)) #3 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Review\Controller\Product\ListAjax\Interceptor->___callParent('dispatch', Array) #4 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Review\\...', 'dispatch', Object(Magento\Review\Controller\Product\ListAjax\Interceptor), Array, 'contextPlugin') #5 /home/wworks/public_html/store/vendor/magento/module-store/App/Action/Plugin/Context.php(106): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #6 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Store\App\Action\Plugin\Context->aroundDispatch(Object(Magento\Review\Controller\Product\ListAjax\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #7 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Review\\...', 'dispatch', Object(Magento\Review\Controller\Product\ListAjax\Interceptor), Array, 'storeCheck') #8 /home/wworks/public_html/store/vendor/magento/module-store/App/Action/Plugin/StoreCheck.php(44): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #9 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Store\App\Action\Plugin\StoreCheck->aroundDispatch(Object(Magento\Review\Controller\Product\ListAjax\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #10 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Review\\...', 'dispatch', Object(Magento\Review\Controller\Product\ListAjax\Interceptor), Array, 'customer-app-ac...') #11 /home/wworks/public_html/store/vendor/magento/module-customer/Model/App/Action/ContextPlugin.php(61): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #12 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Customer\Model\App\Action\ContextPlugin->aroundDispatch(Object(Magento\Review\Controller\Product\ListAjax\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #13 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Review\\...', 'dispatch', Object(Magento\Review\Controller\Product\ListAjax\Interceptor), Array, 'tax-app-action-...') #14 /home/wworks/public_html/store/vendor/magento/module-tax/Model/App/Action/ContextPlugin.php(91): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #15 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Tax\Model\App\Action\ContextPlugin->aroundDispatch(Object(Magento\Review\Controller\Product\ListAjax\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #16 /home/wworks/public_html/store/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Review\\...', 'dispatch', Object(Magento\Review\Controller\Product\ListAjax\Interceptor), Array, 'weee-app-action...') #17 /home/wworks/public_html/store/vendor/magento/module-weee/Model/App/Action/ContextPlugin.php(112): Magento\Review\Controller\Product\ListAjax\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #18 /home/wworks/public_html/store/vendor/magento/framework/Interception/Interceptor.php(142): Magento\Weee\Model\App\Action\ContextPlugin->aroundDispatch(Object(Magento\Review\Controller\Product\ListAjax\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #19 /home/wworks/public_html/store/var/generation/Magento/Review/Controller/Product/ListAjax/Interceptor.php(26): Magento\Review\Controller\Product\ListAjax\Interceptor->___callPlugins('dispatch', Array, Array) #20 /home/wworks/public_html/store/vendor/magento/framework/App/FrontController.php(55): Magento\Review\Controller\Product\ListAjax\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #21 /home/wworks/public_html/store/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #22 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #23 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'requestPreproce...') #24 /home/wworks/public_html/store/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #25 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #26 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install') #27 /home/wworks/public_html/store/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #28 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #29 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...') #30 /home/wworks/public_html/store/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #31 /home/wworks/public_html/store/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #32 /home/wworks/public_html/store/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...') #33 /home/wworks/public_html/store/vendor/magento/module-page-cache/Model/App/FrontController/VarnishPlugin.php(55): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #34 /home/wworks/public_html/store/vendor/magento/framework/Interception/Interceptor.php(142): Magento\PageCache\Model\App\FrontController\VarnishPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #35 /home/wworks/public_html/store/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array) #36 /home/wworks/public_html/store/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #37 /home/wworks/public_html/store/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch() #38 /home/wworks/public_html/store/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #39 {main}";s:3:"url";s:39:"/store/review/product/listAjax/id/3311/";s:11:"script_name";s:16:"/store/index.php";}
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: UPGRADE FROM mAGENTO 2.1.6 TO 2.1.7 AND GETTING THIS ERROR PLEASE HELP
http://www.wonderworkstoys.com/store/
The site doesn't even look right either, like its nnot connecting to any of the css or scripts
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: UPGRADE FROM mAGENTO 2.1.6 TO 2.1.7 AND GETTING THIS ERROR PLEASE HELP
I get this error too frequently, it's always after running bin/magento setup:di:compile
What works for me is running bin/magento setup:di:compile a couple of times until it works. I use a clean Magento 2 DevBox on a supported plattform, for me bin/magento setup:di:compile takes about 20-30 minutes per time so this error is very time consuming
Exception log is empty as well as system log and web server logs so no clues there
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: UPGRADE FROM mAGENTO 2.1.6 TO 2.1.7 AND GETTING THIS ERROR PLEASE HELP
I found another solution, if you use the DevBox, kill it with docker-compose kill and then create new one with ./m2devbox-init.sh it solves the problem much faster