'No such entity' error when saving category as anchorElement 'css', attribute 'order': The attribute 'order' is not allowedMagento 2: Plugin class does not existwhen i click on category filter on Category List page Category filter getting error “Bucket does not exist”Magento 2.2.2 - Admin Configuration loading problemPHP message: PHP Fatal error: Uncaught MagentoFrameworkExceptionNoSuchEntityException: No such entityCould not create an acl object: Invalid XMLElement 'referenceContainer', attribute 'after': The attribute 'after' is not allowedUnable to create/visualize productsMagento 2, error 'unserialize value' when using Ajax in phtml in admin pageUnable to serialize value problem with Magento 2.2.6

Using “ser” without "un/una"?

What is "override advice"?

Can you actually break an FPGA by programming it wrong?

Single level file directory

Can one use the present progressive or gerund like an adjective?

Who voices the character "Finger" in The Fifth Element?

How did Lefschetz do mathematics without hands?

Why wasn't ASCII designed with a contiguous alphanumeric character order?

Prime parity peregrination

Put my student loan in parents’ second mortgage - help?

Are the requirements of a Horn of Valhalla cumulative?

What verb for taking advantage fits in "I don't want to ________ on the friendship"?

Handling a player (unintentionally) stealing the spotlight

Losing queen and then winning the game

Can SOCPs approximate better than LPs?

Why is Japan trying to have a better relationship with Iran?

How do I organize members in a struct to waste the least space on alignment?

Will writing actual numbers instead of writing them with letters affect readership?

Reusable spacecraft: why still have fairings detach, instead of open/close?

My colleague is constantly blaming me for his errors

I hit a pipe with a mower and now it won't turn

Using the ArcGIS 'select by location' tool in ModelBuilder?

What exactly did Ant-Man see that made him say that their plan worked?

How to unit test methods which using static methods?



'No such entity' error when saving category as anchor


Element 'css', attribute 'order': The attribute 'order' is not allowedMagento 2: Plugin class does not existwhen i click on category filter on Category List page Category filter getting error “Bucket does not exist”Magento 2.2.2 - Admin Configuration loading problemPHP message: PHP Fatal error: Uncaught MagentoFrameworkExceptionNoSuchEntityException: No such entityCould not create an acl object: Invalid XMLElement 'referenceContainer', attribute 'after': The attribute 'after' is not allowedUnable to create/visualize productsMagento 2, error 'unserialize value' when using Ajax in phtml in admin pageUnable to serialize value problem with Magento 2.2.6






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















I have a weird issue in that when I try to save a category as an acher is fails with a 'No such entity' error. Underneath the error there is a futher error of




Warning: ltrim() expects parameter 1 to be string, array given in /var/www/mydomain.com/vendor/magento/module-catalog/Model/Category/FileInfo.php on line 102




When I look in my exception.log file I see




[2017-10-12 19:48:45] main.CRITICAL: No such entity. "exception":"[object] (MagentoFrameworkExceptionNoSuchEntityException(code: 0): No such entity. at /var/www/mydomain.com/vendor/magento/module-store/Model/WebsiteRepository.php:102)" []




and in the system.log file



 [2017-10-12 19:48:45] main.CRITICAL: Exception message: No such entity.
Trace: #0 /var/www/mydomain.com/vendor/magento/module-store/Model/StoreManager.php(204): MagentoStoreModelWebsiteRepository->getById('2')
#1 /var/www/mydomain.com/vendor/magento/module-catalog/Model/Product.php(793): MagentoStoreModelStoreManager->getWebsite('2')
#2 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Model/ProductScopeRewriteGenerator.php(133): MagentoCatalogModelProduct->getStoreIds()
#3 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Model/CategoryProductUrlPathGenerator.php(54): MagentoCatalogUrlRewriteModelProductScopeRewriteGenerator->generateForGlobalScope(Object(MagentoCatalogModelResourceModelCategoryCollection), Object(MagentoCatalogModelProductInterceptor), '384')
#4 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/UrlRewriteHandler.php(192): MagentoCatalogUrlRewriteModelCategoryProductUrlPathGenerator->generate(Object(MagentoCatalogModelProductInterceptor), '384')
#5 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/UrlRewriteHandler.php(149): MagentoCatalogUrlRewriteObserverUrlRewriteHandler->getCategoryProductsUrlRewrites(Object(MagentoCatalogModelCategoryInterceptor), 0, true, '384')
#6 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/CategoryProcessUrlRewriteSavingObserver.php(94): MagentoCatalogUrlRewriteObserverUrlRewriteHandler->generateProductUrlRewrites(Object(MagentoCatalogModelCategoryInterceptor))
#7 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MagentoCatalogUrlRewriteObserverCategoryProcessUrlRewriteSavingObserver->execute(Object(MagentoFrameworkEventObserver))
#8 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod(Object(MagentoCatalogUrlRewriteObserverCategoryProcessUrlRewriteSavingObserver), Object(MagentoFrameworkEventObserver))
#9 /var/www/mydomain.com/vendor/magento/framework/Event/Manager.php(66): MagentoFrameworkEventInvokerInvokerDefault->dispatch(Array, Object(MagentoFrameworkEventObserver))
#10 /var/www/mydomain.com/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch('catalog_categor...', Array)
#11 /var/www/mydomain.com/vendor/magento/framework/Model/AbstractModel.php(818): MagentoFrameworkEventManagerProxy->dispatch('catalog_categor...', Array)
#12 /var/www/mydomain.com/vendor/magento/module-catalog/Model/Category.php(1082): MagentoFrameworkModelAbstractModel->afterSave()
#13 /var/www/mydomain.com/vendor/magento/framework/EntityManager/Observer/AfterEntitySave.php(34): MagentoCatalogModelCategory->afterSave()
#14 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MagentoFrameworkEntityManagerObserverAfterEntitySave->execute(Object(MagentoFrameworkEventObserver))
#15 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod(Object(MagentoFrameworkEntityManagerObserverAfterEntitySave), Object(MagentoFrameworkEventObserver))
#16 /var/www/mydomain.com/vendor/magento/framework/Event/Manager.php(66): MagentoFrameworkEventInvokerInvokerDefault->dispatch(Array, Object(MagentoFrameworkEventObserver))
#17 /var/www/mydomain.com/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch('magento_catalog...', Array)
#18 /var/www/mydomain.com/vendor/magento/framework/EntityManager/EventManager.php(52): MagentoFrameworkEventManagerProxy->dispatch('magento_catalog...', Array)
#19 /var/www/mydomain.com/vendor/magento/framework/EntityManager/Operation/Update.php(110): MagentoFrameworkEntityManagerEventManager->dispatchEntityEvent('Magento\Catalog...', 'save_after', Array)
#20 /var/www/mydomain.com/vendor/magento/framework/EntityManager/EntityManager.php(96): MagentoFrameworkEntityManagerOperationUpdate->execute(Object(MagentoCatalogModelCategoryInterceptor), Array)
#21 /var/www/mydomain.com/vendor/magento/module-catalog/Model/ResourceModel/Category.php(1053): MagentoFrameworkEntityManagerEntityManager->save(Object(MagentoCatalogModelCategoryInterceptor))
#22 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCatalogModelResourceModelCategory->save(Object(MagentoCatalogModelCategoryInterceptor))
#23 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogModelResourceModelCategoryInterceptor->___callParent('save', Array)
#24 /var/www/mydomain.com/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Plugin/Category.php(43): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#25 /var/www/mydomain.com/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Plugin/Category.php(29): MagentoCatalogSearchModelIndexerFulltextPluginCategory->addCommitCallback(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#26 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoCatalogSearchModelIndexerFulltextPluginCategory->aroundSave(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#27 /var/www/mydomain.com/vendor/magento/framework/App/Cache/FlushCacheByTags.php(68): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#28 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoFrameworkAppCacheFlushCacheByTags->aroundSave(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#29 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#30 /var/www/mydomain.com/generated/code/Magento/Catalog/Model/ResourceModel/Category/Interceptor.php(52): MagentoCatalogModelResourceModelCategoryInterceptor->___callPlugins('save', Array, NULL)
#31 /var/www/mydomain.com/vendor/magento/framework/Model/AbstractModel.php(647): MagentoCatalogModelResourceModelCategoryInterceptor->save(Object(MagentoCatalogModelCategoryInterceptor))
#32 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkModelAbstractModel->save()
#33 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogModelCategoryInterceptor->___callParent('save', Array)
#34 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogModelCategoryInterceptor->MagentoFrameworkInterceptionclosure()
#35 /var/www/mydomain.com/generated/code/Magento/Catalog/Model/Category/Interceptor.php(26): MagentoCatalogModelCategoryInterceptor->___callPlugins('save', Array, Array)
#36 /var/www/mydomain.com/vendor/magento/module-catalog/Controller/Adminhtml/Category/Save.php(215): MagentoCatalogModelCategoryInterceptor->save()
#37 /var/www/mydomain.com/vendor/magento/framework/App/Action/Action.php(107): MagentoCatalogControllerAdminhtmlCategorySave->execute()
#38 /var/www/mydomain.com/vendor/magento/module-backend/App/AbstractAction.php(229): MagentoFrameworkAppActionAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
#39 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoBackendAppAbstractAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
#40 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->___callParent('dispatch', Array)
#41 /var/www/mydomain.com/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#42 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoBackendAppActionPluginAuthentication->aroundDispatch(Object(MagentoCatalogControllerAdminhtmlCategorySaveInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#43 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#44 /var/www/mydomain.com/generated/code/Magento/Catalog/Controller/Adminhtml/Category/Save/Interceptor.php(26): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->___callPlugins('dispatch', Array, NULL)
#45 /var/www/mydomain.com/vendor/magento/framework/App/FrontController.php(55): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#46 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkAppFrontController->dispatch(Object(MagentoFrameworkAppRequestHttp))
#47 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkAppFrontControllerInterceptor->___callParent('dispatch', Array)
#48 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkAppFrontControllerInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#49 /var/www/mydomain.com/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): MagentoFrameworkAppFrontControllerInterceptor->___callPlugins('dispatch', Array, Array)
#50 /var/www/mydomain.com/vendor/magento/framework/App/Http.php(135): MagentoFrameworkAppFrontControllerInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#51 /var/www/mydomain.com/vendor/magento/framework/App/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()
#52 /var/www/mydomain.com/pub/index.php(37): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))
#53 main [] []


Does anyone have any idea as to what's going on? I believe it may to do with our multisite setup but am unsure, store info is



+----------+---------+------------+----------+---------+------------+-----------+
| store_id | code | website_id | group_id | name | sort_order | is_active |
+----------+---------+------------+----------+---------+------------+-----------+
| 0 | admin | 0 | 0 | Admin | 0 | 1 |
| 1 | default | 1 | 1 | English | 0 | 1 |
| 3 | irish | 3 | 3 | English | 0 | 1 |
| 4 | pl_pl | 4 | 4 | Polish | 5 | 1 |
| 5 | de_de | 5 | 5 | German | 0 | 1 |
| 6 | fr_fr | 6 | 6 | French | 0 | 1 |
| 7 | de_at | 7 | 7 | German | 0 | 1 |
| 8 | fr_be | 8 | 8 | French | 0 | 1 |
| 9 | nl_en | 9 | 9 | English | 0 | 1 |
+----------+---------+------------+----------+---------+------------+-----------+


Looking at eav_entity_store though it looks like it may have something to do with this?



+-----------------+----------------+----------+------------------+-------------------+
| entity_store_id | entity_type_id | store_id | increment_prefix | increment_last_id |
+-----------------+----------------+----------+------------------+-------------------+
| 1 | 5 | 2 | 1 | 1201584183 |
| 2 | 6 | 2 | 1 | 12301583211 |
| 3 | 8 | 2 | 1 | 13401580560 |
| 4 | 7 | 2 | 1 | 14401564687 |
| 5 | 5 | 0 | 2 | 200000001 |
| 6 | 5 | 3 | IRL | IRL35301569424 |
| 7 | 6 | 3 | 353 | 35301569416 |
| 8 | 8 | 3 | 15 | 1535301569411 |
| 9 | 5 | 4 | PL | PL48342658808 |
| 10 | 6 | 4 | 18 | 1848342658795 |
| 11 | 8 | 4 | 18 | 1848342658790 |
| 12 | 5 | 6 | FR | FR33153264939 |
| 13 | 5 | 5 | DE | DE49248574351 |
| 14 | 5 | 8 | BE | BE32475983532 |
| 15 | 5 | 7 | AT | AT43536957446 |
| 16 | 5 | 9 | NL | NL31658957439 |
| 17 | 6 | 9 | 23 | 2300000016 |
| 18 | 8 | 9 | 23 | 2300000013 |
| 19 | 6 | 5 | 19 | 1900000086 |
| 20 | 6 | 6 | 20 | 2000000062 |
| 21 | 8 | 5 | 19 | 1900000079 |
| 22 | 8 | 6 | 20 | 2000000058 |
| 23 | 6 | 7 | 21 | 2100000008 |
| 24 | 8 | 7 | 21 | 2100000008 |
| 25 | 6 | 8 | 22 | 2200000010 |
| 26 | 8 | 8 | 22 | 2200000009 |
+-----------------+----------------+----------+------------------+-------------------+









share|improve this question
























  • Did you find out what was going on?

    – pinicio
    Dec 13 '17 at 19:40

















3















I have a weird issue in that when I try to save a category as an acher is fails with a 'No such entity' error. Underneath the error there is a futher error of




Warning: ltrim() expects parameter 1 to be string, array given in /var/www/mydomain.com/vendor/magento/module-catalog/Model/Category/FileInfo.php on line 102




When I look in my exception.log file I see




[2017-10-12 19:48:45] main.CRITICAL: No such entity. "exception":"[object] (MagentoFrameworkExceptionNoSuchEntityException(code: 0): No such entity. at /var/www/mydomain.com/vendor/magento/module-store/Model/WebsiteRepository.php:102)" []




and in the system.log file



 [2017-10-12 19:48:45] main.CRITICAL: Exception message: No such entity.
Trace: #0 /var/www/mydomain.com/vendor/magento/module-store/Model/StoreManager.php(204): MagentoStoreModelWebsiteRepository->getById('2')
#1 /var/www/mydomain.com/vendor/magento/module-catalog/Model/Product.php(793): MagentoStoreModelStoreManager->getWebsite('2')
#2 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Model/ProductScopeRewriteGenerator.php(133): MagentoCatalogModelProduct->getStoreIds()
#3 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Model/CategoryProductUrlPathGenerator.php(54): MagentoCatalogUrlRewriteModelProductScopeRewriteGenerator->generateForGlobalScope(Object(MagentoCatalogModelResourceModelCategoryCollection), Object(MagentoCatalogModelProductInterceptor), '384')
#4 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/UrlRewriteHandler.php(192): MagentoCatalogUrlRewriteModelCategoryProductUrlPathGenerator->generate(Object(MagentoCatalogModelProductInterceptor), '384')
#5 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/UrlRewriteHandler.php(149): MagentoCatalogUrlRewriteObserverUrlRewriteHandler->getCategoryProductsUrlRewrites(Object(MagentoCatalogModelCategoryInterceptor), 0, true, '384')
#6 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/CategoryProcessUrlRewriteSavingObserver.php(94): MagentoCatalogUrlRewriteObserverUrlRewriteHandler->generateProductUrlRewrites(Object(MagentoCatalogModelCategoryInterceptor))
#7 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MagentoCatalogUrlRewriteObserverCategoryProcessUrlRewriteSavingObserver->execute(Object(MagentoFrameworkEventObserver))
#8 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod(Object(MagentoCatalogUrlRewriteObserverCategoryProcessUrlRewriteSavingObserver), Object(MagentoFrameworkEventObserver))
#9 /var/www/mydomain.com/vendor/magento/framework/Event/Manager.php(66): MagentoFrameworkEventInvokerInvokerDefault->dispatch(Array, Object(MagentoFrameworkEventObserver))
#10 /var/www/mydomain.com/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch('catalog_categor...', Array)
#11 /var/www/mydomain.com/vendor/magento/framework/Model/AbstractModel.php(818): MagentoFrameworkEventManagerProxy->dispatch('catalog_categor...', Array)
#12 /var/www/mydomain.com/vendor/magento/module-catalog/Model/Category.php(1082): MagentoFrameworkModelAbstractModel->afterSave()
#13 /var/www/mydomain.com/vendor/magento/framework/EntityManager/Observer/AfterEntitySave.php(34): MagentoCatalogModelCategory->afterSave()
#14 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MagentoFrameworkEntityManagerObserverAfterEntitySave->execute(Object(MagentoFrameworkEventObserver))
#15 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod(Object(MagentoFrameworkEntityManagerObserverAfterEntitySave), Object(MagentoFrameworkEventObserver))
#16 /var/www/mydomain.com/vendor/magento/framework/Event/Manager.php(66): MagentoFrameworkEventInvokerInvokerDefault->dispatch(Array, Object(MagentoFrameworkEventObserver))
#17 /var/www/mydomain.com/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch('magento_catalog...', Array)
#18 /var/www/mydomain.com/vendor/magento/framework/EntityManager/EventManager.php(52): MagentoFrameworkEventManagerProxy->dispatch('magento_catalog...', Array)
#19 /var/www/mydomain.com/vendor/magento/framework/EntityManager/Operation/Update.php(110): MagentoFrameworkEntityManagerEventManager->dispatchEntityEvent('Magento\Catalog...', 'save_after', Array)
#20 /var/www/mydomain.com/vendor/magento/framework/EntityManager/EntityManager.php(96): MagentoFrameworkEntityManagerOperationUpdate->execute(Object(MagentoCatalogModelCategoryInterceptor), Array)
#21 /var/www/mydomain.com/vendor/magento/module-catalog/Model/ResourceModel/Category.php(1053): MagentoFrameworkEntityManagerEntityManager->save(Object(MagentoCatalogModelCategoryInterceptor))
#22 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCatalogModelResourceModelCategory->save(Object(MagentoCatalogModelCategoryInterceptor))
#23 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogModelResourceModelCategoryInterceptor->___callParent('save', Array)
#24 /var/www/mydomain.com/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Plugin/Category.php(43): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#25 /var/www/mydomain.com/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Plugin/Category.php(29): MagentoCatalogSearchModelIndexerFulltextPluginCategory->addCommitCallback(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#26 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoCatalogSearchModelIndexerFulltextPluginCategory->aroundSave(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#27 /var/www/mydomain.com/vendor/magento/framework/App/Cache/FlushCacheByTags.php(68): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#28 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoFrameworkAppCacheFlushCacheByTags->aroundSave(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#29 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#30 /var/www/mydomain.com/generated/code/Magento/Catalog/Model/ResourceModel/Category/Interceptor.php(52): MagentoCatalogModelResourceModelCategoryInterceptor->___callPlugins('save', Array, NULL)
#31 /var/www/mydomain.com/vendor/magento/framework/Model/AbstractModel.php(647): MagentoCatalogModelResourceModelCategoryInterceptor->save(Object(MagentoCatalogModelCategoryInterceptor))
#32 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkModelAbstractModel->save()
#33 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogModelCategoryInterceptor->___callParent('save', Array)
#34 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogModelCategoryInterceptor->MagentoFrameworkInterceptionclosure()
#35 /var/www/mydomain.com/generated/code/Magento/Catalog/Model/Category/Interceptor.php(26): MagentoCatalogModelCategoryInterceptor->___callPlugins('save', Array, Array)
#36 /var/www/mydomain.com/vendor/magento/module-catalog/Controller/Adminhtml/Category/Save.php(215): MagentoCatalogModelCategoryInterceptor->save()
#37 /var/www/mydomain.com/vendor/magento/framework/App/Action/Action.php(107): MagentoCatalogControllerAdminhtmlCategorySave->execute()
#38 /var/www/mydomain.com/vendor/magento/module-backend/App/AbstractAction.php(229): MagentoFrameworkAppActionAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
#39 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoBackendAppAbstractAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
#40 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->___callParent('dispatch', Array)
#41 /var/www/mydomain.com/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#42 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoBackendAppActionPluginAuthentication->aroundDispatch(Object(MagentoCatalogControllerAdminhtmlCategorySaveInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#43 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#44 /var/www/mydomain.com/generated/code/Magento/Catalog/Controller/Adminhtml/Category/Save/Interceptor.php(26): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->___callPlugins('dispatch', Array, NULL)
#45 /var/www/mydomain.com/vendor/magento/framework/App/FrontController.php(55): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#46 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkAppFrontController->dispatch(Object(MagentoFrameworkAppRequestHttp))
#47 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkAppFrontControllerInterceptor->___callParent('dispatch', Array)
#48 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkAppFrontControllerInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#49 /var/www/mydomain.com/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): MagentoFrameworkAppFrontControllerInterceptor->___callPlugins('dispatch', Array, Array)
#50 /var/www/mydomain.com/vendor/magento/framework/App/Http.php(135): MagentoFrameworkAppFrontControllerInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#51 /var/www/mydomain.com/vendor/magento/framework/App/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()
#52 /var/www/mydomain.com/pub/index.php(37): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))
#53 main [] []


Does anyone have any idea as to what's going on? I believe it may to do with our multisite setup but am unsure, store info is



+----------+---------+------------+----------+---------+------------+-----------+
| store_id | code | website_id | group_id | name | sort_order | is_active |
+----------+---------+------------+----------+---------+------------+-----------+
| 0 | admin | 0 | 0 | Admin | 0 | 1 |
| 1 | default | 1 | 1 | English | 0 | 1 |
| 3 | irish | 3 | 3 | English | 0 | 1 |
| 4 | pl_pl | 4 | 4 | Polish | 5 | 1 |
| 5 | de_de | 5 | 5 | German | 0 | 1 |
| 6 | fr_fr | 6 | 6 | French | 0 | 1 |
| 7 | de_at | 7 | 7 | German | 0 | 1 |
| 8 | fr_be | 8 | 8 | French | 0 | 1 |
| 9 | nl_en | 9 | 9 | English | 0 | 1 |
+----------+---------+------------+----------+---------+------------+-----------+


Looking at eav_entity_store though it looks like it may have something to do with this?



+-----------------+----------------+----------+------------------+-------------------+
| entity_store_id | entity_type_id | store_id | increment_prefix | increment_last_id |
+-----------------+----------------+----------+------------------+-------------------+
| 1 | 5 | 2 | 1 | 1201584183 |
| 2 | 6 | 2 | 1 | 12301583211 |
| 3 | 8 | 2 | 1 | 13401580560 |
| 4 | 7 | 2 | 1 | 14401564687 |
| 5 | 5 | 0 | 2 | 200000001 |
| 6 | 5 | 3 | IRL | IRL35301569424 |
| 7 | 6 | 3 | 353 | 35301569416 |
| 8 | 8 | 3 | 15 | 1535301569411 |
| 9 | 5 | 4 | PL | PL48342658808 |
| 10 | 6 | 4 | 18 | 1848342658795 |
| 11 | 8 | 4 | 18 | 1848342658790 |
| 12 | 5 | 6 | FR | FR33153264939 |
| 13 | 5 | 5 | DE | DE49248574351 |
| 14 | 5 | 8 | BE | BE32475983532 |
| 15 | 5 | 7 | AT | AT43536957446 |
| 16 | 5 | 9 | NL | NL31658957439 |
| 17 | 6 | 9 | 23 | 2300000016 |
| 18 | 8 | 9 | 23 | 2300000013 |
| 19 | 6 | 5 | 19 | 1900000086 |
| 20 | 6 | 6 | 20 | 2000000062 |
| 21 | 8 | 5 | 19 | 1900000079 |
| 22 | 8 | 6 | 20 | 2000000058 |
| 23 | 6 | 7 | 21 | 2100000008 |
| 24 | 8 | 7 | 21 | 2100000008 |
| 25 | 6 | 8 | 22 | 2200000010 |
| 26 | 8 | 8 | 22 | 2200000009 |
+-----------------+----------------+----------+------------------+-------------------+









share|improve this question
























  • Did you find out what was going on?

    – pinicio
    Dec 13 '17 at 19:40













3












3








3








I have a weird issue in that when I try to save a category as an acher is fails with a 'No such entity' error. Underneath the error there is a futher error of




Warning: ltrim() expects parameter 1 to be string, array given in /var/www/mydomain.com/vendor/magento/module-catalog/Model/Category/FileInfo.php on line 102




When I look in my exception.log file I see




[2017-10-12 19:48:45] main.CRITICAL: No such entity. "exception":"[object] (MagentoFrameworkExceptionNoSuchEntityException(code: 0): No such entity. at /var/www/mydomain.com/vendor/magento/module-store/Model/WebsiteRepository.php:102)" []




and in the system.log file



 [2017-10-12 19:48:45] main.CRITICAL: Exception message: No such entity.
Trace: #0 /var/www/mydomain.com/vendor/magento/module-store/Model/StoreManager.php(204): MagentoStoreModelWebsiteRepository->getById('2')
#1 /var/www/mydomain.com/vendor/magento/module-catalog/Model/Product.php(793): MagentoStoreModelStoreManager->getWebsite('2')
#2 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Model/ProductScopeRewriteGenerator.php(133): MagentoCatalogModelProduct->getStoreIds()
#3 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Model/CategoryProductUrlPathGenerator.php(54): MagentoCatalogUrlRewriteModelProductScopeRewriteGenerator->generateForGlobalScope(Object(MagentoCatalogModelResourceModelCategoryCollection), Object(MagentoCatalogModelProductInterceptor), '384')
#4 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/UrlRewriteHandler.php(192): MagentoCatalogUrlRewriteModelCategoryProductUrlPathGenerator->generate(Object(MagentoCatalogModelProductInterceptor), '384')
#5 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/UrlRewriteHandler.php(149): MagentoCatalogUrlRewriteObserverUrlRewriteHandler->getCategoryProductsUrlRewrites(Object(MagentoCatalogModelCategoryInterceptor), 0, true, '384')
#6 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/CategoryProcessUrlRewriteSavingObserver.php(94): MagentoCatalogUrlRewriteObserverUrlRewriteHandler->generateProductUrlRewrites(Object(MagentoCatalogModelCategoryInterceptor))
#7 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MagentoCatalogUrlRewriteObserverCategoryProcessUrlRewriteSavingObserver->execute(Object(MagentoFrameworkEventObserver))
#8 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod(Object(MagentoCatalogUrlRewriteObserverCategoryProcessUrlRewriteSavingObserver), Object(MagentoFrameworkEventObserver))
#9 /var/www/mydomain.com/vendor/magento/framework/Event/Manager.php(66): MagentoFrameworkEventInvokerInvokerDefault->dispatch(Array, Object(MagentoFrameworkEventObserver))
#10 /var/www/mydomain.com/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch('catalog_categor...', Array)
#11 /var/www/mydomain.com/vendor/magento/framework/Model/AbstractModel.php(818): MagentoFrameworkEventManagerProxy->dispatch('catalog_categor...', Array)
#12 /var/www/mydomain.com/vendor/magento/module-catalog/Model/Category.php(1082): MagentoFrameworkModelAbstractModel->afterSave()
#13 /var/www/mydomain.com/vendor/magento/framework/EntityManager/Observer/AfterEntitySave.php(34): MagentoCatalogModelCategory->afterSave()
#14 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MagentoFrameworkEntityManagerObserverAfterEntitySave->execute(Object(MagentoFrameworkEventObserver))
#15 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod(Object(MagentoFrameworkEntityManagerObserverAfterEntitySave), Object(MagentoFrameworkEventObserver))
#16 /var/www/mydomain.com/vendor/magento/framework/Event/Manager.php(66): MagentoFrameworkEventInvokerInvokerDefault->dispatch(Array, Object(MagentoFrameworkEventObserver))
#17 /var/www/mydomain.com/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch('magento_catalog...', Array)
#18 /var/www/mydomain.com/vendor/magento/framework/EntityManager/EventManager.php(52): MagentoFrameworkEventManagerProxy->dispatch('magento_catalog...', Array)
#19 /var/www/mydomain.com/vendor/magento/framework/EntityManager/Operation/Update.php(110): MagentoFrameworkEntityManagerEventManager->dispatchEntityEvent('Magento\Catalog...', 'save_after', Array)
#20 /var/www/mydomain.com/vendor/magento/framework/EntityManager/EntityManager.php(96): MagentoFrameworkEntityManagerOperationUpdate->execute(Object(MagentoCatalogModelCategoryInterceptor), Array)
#21 /var/www/mydomain.com/vendor/magento/module-catalog/Model/ResourceModel/Category.php(1053): MagentoFrameworkEntityManagerEntityManager->save(Object(MagentoCatalogModelCategoryInterceptor))
#22 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCatalogModelResourceModelCategory->save(Object(MagentoCatalogModelCategoryInterceptor))
#23 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogModelResourceModelCategoryInterceptor->___callParent('save', Array)
#24 /var/www/mydomain.com/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Plugin/Category.php(43): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#25 /var/www/mydomain.com/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Plugin/Category.php(29): MagentoCatalogSearchModelIndexerFulltextPluginCategory->addCommitCallback(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#26 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoCatalogSearchModelIndexerFulltextPluginCategory->aroundSave(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#27 /var/www/mydomain.com/vendor/magento/framework/App/Cache/FlushCacheByTags.php(68): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#28 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoFrameworkAppCacheFlushCacheByTags->aroundSave(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#29 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#30 /var/www/mydomain.com/generated/code/Magento/Catalog/Model/ResourceModel/Category/Interceptor.php(52): MagentoCatalogModelResourceModelCategoryInterceptor->___callPlugins('save', Array, NULL)
#31 /var/www/mydomain.com/vendor/magento/framework/Model/AbstractModel.php(647): MagentoCatalogModelResourceModelCategoryInterceptor->save(Object(MagentoCatalogModelCategoryInterceptor))
#32 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkModelAbstractModel->save()
#33 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogModelCategoryInterceptor->___callParent('save', Array)
#34 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogModelCategoryInterceptor->MagentoFrameworkInterceptionclosure()
#35 /var/www/mydomain.com/generated/code/Magento/Catalog/Model/Category/Interceptor.php(26): MagentoCatalogModelCategoryInterceptor->___callPlugins('save', Array, Array)
#36 /var/www/mydomain.com/vendor/magento/module-catalog/Controller/Adminhtml/Category/Save.php(215): MagentoCatalogModelCategoryInterceptor->save()
#37 /var/www/mydomain.com/vendor/magento/framework/App/Action/Action.php(107): MagentoCatalogControllerAdminhtmlCategorySave->execute()
#38 /var/www/mydomain.com/vendor/magento/module-backend/App/AbstractAction.php(229): MagentoFrameworkAppActionAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
#39 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoBackendAppAbstractAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
#40 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->___callParent('dispatch', Array)
#41 /var/www/mydomain.com/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#42 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoBackendAppActionPluginAuthentication->aroundDispatch(Object(MagentoCatalogControllerAdminhtmlCategorySaveInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#43 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#44 /var/www/mydomain.com/generated/code/Magento/Catalog/Controller/Adminhtml/Category/Save/Interceptor.php(26): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->___callPlugins('dispatch', Array, NULL)
#45 /var/www/mydomain.com/vendor/magento/framework/App/FrontController.php(55): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#46 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkAppFrontController->dispatch(Object(MagentoFrameworkAppRequestHttp))
#47 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkAppFrontControllerInterceptor->___callParent('dispatch', Array)
#48 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkAppFrontControllerInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#49 /var/www/mydomain.com/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): MagentoFrameworkAppFrontControllerInterceptor->___callPlugins('dispatch', Array, Array)
#50 /var/www/mydomain.com/vendor/magento/framework/App/Http.php(135): MagentoFrameworkAppFrontControllerInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#51 /var/www/mydomain.com/vendor/magento/framework/App/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()
#52 /var/www/mydomain.com/pub/index.php(37): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))
#53 main [] []


Does anyone have any idea as to what's going on? I believe it may to do with our multisite setup but am unsure, store info is



+----------+---------+------------+----------+---------+------------+-----------+
| store_id | code | website_id | group_id | name | sort_order | is_active |
+----------+---------+------------+----------+---------+------------+-----------+
| 0 | admin | 0 | 0 | Admin | 0 | 1 |
| 1 | default | 1 | 1 | English | 0 | 1 |
| 3 | irish | 3 | 3 | English | 0 | 1 |
| 4 | pl_pl | 4 | 4 | Polish | 5 | 1 |
| 5 | de_de | 5 | 5 | German | 0 | 1 |
| 6 | fr_fr | 6 | 6 | French | 0 | 1 |
| 7 | de_at | 7 | 7 | German | 0 | 1 |
| 8 | fr_be | 8 | 8 | French | 0 | 1 |
| 9 | nl_en | 9 | 9 | English | 0 | 1 |
+----------+---------+------------+----------+---------+------------+-----------+


Looking at eav_entity_store though it looks like it may have something to do with this?



+-----------------+----------------+----------+------------------+-------------------+
| entity_store_id | entity_type_id | store_id | increment_prefix | increment_last_id |
+-----------------+----------------+----------+------------------+-------------------+
| 1 | 5 | 2 | 1 | 1201584183 |
| 2 | 6 | 2 | 1 | 12301583211 |
| 3 | 8 | 2 | 1 | 13401580560 |
| 4 | 7 | 2 | 1 | 14401564687 |
| 5 | 5 | 0 | 2 | 200000001 |
| 6 | 5 | 3 | IRL | IRL35301569424 |
| 7 | 6 | 3 | 353 | 35301569416 |
| 8 | 8 | 3 | 15 | 1535301569411 |
| 9 | 5 | 4 | PL | PL48342658808 |
| 10 | 6 | 4 | 18 | 1848342658795 |
| 11 | 8 | 4 | 18 | 1848342658790 |
| 12 | 5 | 6 | FR | FR33153264939 |
| 13 | 5 | 5 | DE | DE49248574351 |
| 14 | 5 | 8 | BE | BE32475983532 |
| 15 | 5 | 7 | AT | AT43536957446 |
| 16 | 5 | 9 | NL | NL31658957439 |
| 17 | 6 | 9 | 23 | 2300000016 |
| 18 | 8 | 9 | 23 | 2300000013 |
| 19 | 6 | 5 | 19 | 1900000086 |
| 20 | 6 | 6 | 20 | 2000000062 |
| 21 | 8 | 5 | 19 | 1900000079 |
| 22 | 8 | 6 | 20 | 2000000058 |
| 23 | 6 | 7 | 21 | 2100000008 |
| 24 | 8 | 7 | 21 | 2100000008 |
| 25 | 6 | 8 | 22 | 2200000010 |
| 26 | 8 | 8 | 22 | 2200000009 |
+-----------------+----------------+----------+------------------+-------------------+









share|improve this question
















I have a weird issue in that when I try to save a category as an acher is fails with a 'No such entity' error. Underneath the error there is a futher error of




Warning: ltrim() expects parameter 1 to be string, array given in /var/www/mydomain.com/vendor/magento/module-catalog/Model/Category/FileInfo.php on line 102




When I look in my exception.log file I see




[2017-10-12 19:48:45] main.CRITICAL: No such entity. "exception":"[object] (MagentoFrameworkExceptionNoSuchEntityException(code: 0): No such entity. at /var/www/mydomain.com/vendor/magento/module-store/Model/WebsiteRepository.php:102)" []




and in the system.log file



 [2017-10-12 19:48:45] main.CRITICAL: Exception message: No such entity.
Trace: #0 /var/www/mydomain.com/vendor/magento/module-store/Model/StoreManager.php(204): MagentoStoreModelWebsiteRepository->getById('2')
#1 /var/www/mydomain.com/vendor/magento/module-catalog/Model/Product.php(793): MagentoStoreModelStoreManager->getWebsite('2')
#2 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Model/ProductScopeRewriteGenerator.php(133): MagentoCatalogModelProduct->getStoreIds()
#3 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Model/CategoryProductUrlPathGenerator.php(54): MagentoCatalogUrlRewriteModelProductScopeRewriteGenerator->generateForGlobalScope(Object(MagentoCatalogModelResourceModelCategoryCollection), Object(MagentoCatalogModelProductInterceptor), '384')
#4 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/UrlRewriteHandler.php(192): MagentoCatalogUrlRewriteModelCategoryProductUrlPathGenerator->generate(Object(MagentoCatalogModelProductInterceptor), '384')
#5 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/UrlRewriteHandler.php(149): MagentoCatalogUrlRewriteObserverUrlRewriteHandler->getCategoryProductsUrlRewrites(Object(MagentoCatalogModelCategoryInterceptor), 0, true, '384')
#6 /var/www/mydomain.com/vendor/magento/module-catalog-url-rewrite/Observer/CategoryProcessUrlRewriteSavingObserver.php(94): MagentoCatalogUrlRewriteObserverUrlRewriteHandler->generateProductUrlRewrites(Object(MagentoCatalogModelCategoryInterceptor))
#7 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MagentoCatalogUrlRewriteObserverCategoryProcessUrlRewriteSavingObserver->execute(Object(MagentoFrameworkEventObserver))
#8 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod(Object(MagentoCatalogUrlRewriteObserverCategoryProcessUrlRewriteSavingObserver), Object(MagentoFrameworkEventObserver))
#9 /var/www/mydomain.com/vendor/magento/framework/Event/Manager.php(66): MagentoFrameworkEventInvokerInvokerDefault->dispatch(Array, Object(MagentoFrameworkEventObserver))
#10 /var/www/mydomain.com/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch('catalog_categor...', Array)
#11 /var/www/mydomain.com/vendor/magento/framework/Model/AbstractModel.php(818): MagentoFrameworkEventManagerProxy->dispatch('catalog_categor...', Array)
#12 /var/www/mydomain.com/vendor/magento/module-catalog/Model/Category.php(1082): MagentoFrameworkModelAbstractModel->afterSave()
#13 /var/www/mydomain.com/vendor/magento/framework/EntityManager/Observer/AfterEntitySave.php(34): MagentoCatalogModelCategory->afterSave()
#14 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MagentoFrameworkEntityManagerObserverAfterEntitySave->execute(Object(MagentoFrameworkEventObserver))
#15 /var/www/mydomain.com/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod(Object(MagentoFrameworkEntityManagerObserverAfterEntitySave), Object(MagentoFrameworkEventObserver))
#16 /var/www/mydomain.com/vendor/magento/framework/Event/Manager.php(66): MagentoFrameworkEventInvokerInvokerDefault->dispatch(Array, Object(MagentoFrameworkEventObserver))
#17 /var/www/mydomain.com/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch('magento_catalog...', Array)
#18 /var/www/mydomain.com/vendor/magento/framework/EntityManager/EventManager.php(52): MagentoFrameworkEventManagerProxy->dispatch('magento_catalog...', Array)
#19 /var/www/mydomain.com/vendor/magento/framework/EntityManager/Operation/Update.php(110): MagentoFrameworkEntityManagerEventManager->dispatchEntityEvent('Magento\Catalog...', 'save_after', Array)
#20 /var/www/mydomain.com/vendor/magento/framework/EntityManager/EntityManager.php(96): MagentoFrameworkEntityManagerOperationUpdate->execute(Object(MagentoCatalogModelCategoryInterceptor), Array)
#21 /var/www/mydomain.com/vendor/magento/module-catalog/Model/ResourceModel/Category.php(1053): MagentoFrameworkEntityManagerEntityManager->save(Object(MagentoCatalogModelCategoryInterceptor))
#22 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCatalogModelResourceModelCategory->save(Object(MagentoCatalogModelCategoryInterceptor))
#23 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogModelResourceModelCategoryInterceptor->___callParent('save', Array)
#24 /var/www/mydomain.com/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Plugin/Category.php(43): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#25 /var/www/mydomain.com/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Plugin/Category.php(29): MagentoCatalogSearchModelIndexerFulltextPluginCategory->addCommitCallback(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#26 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoCatalogSearchModelIndexerFulltextPluginCategory->aroundSave(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#27 /var/www/mydomain.com/vendor/magento/framework/App/Cache/FlushCacheByTags.php(68): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#28 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoFrameworkAppCacheFlushCacheByTags->aroundSave(Object(MagentoCatalogModelResourceModelCategoryInterceptor), Object(Closure), Object(MagentoCatalogModelCategoryInterceptor))
#29 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogModelResourceModelCategoryInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelCategoryInterceptor))
#30 /var/www/mydomain.com/generated/code/Magento/Catalog/Model/ResourceModel/Category/Interceptor.php(52): MagentoCatalogModelResourceModelCategoryInterceptor->___callPlugins('save', Array, NULL)
#31 /var/www/mydomain.com/vendor/magento/framework/Model/AbstractModel.php(647): MagentoCatalogModelResourceModelCategoryInterceptor->save(Object(MagentoCatalogModelCategoryInterceptor))
#32 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkModelAbstractModel->save()
#33 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogModelCategoryInterceptor->___callParent('save', Array)
#34 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogModelCategoryInterceptor->MagentoFrameworkInterceptionclosure()
#35 /var/www/mydomain.com/generated/code/Magento/Catalog/Model/Category/Interceptor.php(26): MagentoCatalogModelCategoryInterceptor->___callPlugins('save', Array, Array)
#36 /var/www/mydomain.com/vendor/magento/module-catalog/Controller/Adminhtml/Category/Save.php(215): MagentoCatalogModelCategoryInterceptor->save()
#37 /var/www/mydomain.com/vendor/magento/framework/App/Action/Action.php(107): MagentoCatalogControllerAdminhtmlCategorySave->execute()
#38 /var/www/mydomain.com/vendor/magento/module-backend/App/AbstractAction.php(229): MagentoFrameworkAppActionAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
#39 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoBackendAppAbstractAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
#40 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->___callParent('dispatch', Array)
#41 /var/www/mydomain.com/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#42 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(135): MagentoBackendAppActionPluginAuthentication->aroundDispatch(Object(MagentoCatalogControllerAdminhtmlCategorySaveInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#43 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#44 /var/www/mydomain.com/generated/code/Magento/Catalog/Controller/Adminhtml/Category/Save/Interceptor.php(26): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->___callPlugins('dispatch', Array, NULL)
#45 /var/www/mydomain.com/vendor/magento/framework/App/FrontController.php(55): MagentoCatalogControllerAdminhtmlCategorySaveInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#46 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkAppFrontController->dispatch(Object(MagentoFrameworkAppRequestHttp))
#47 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkAppFrontControllerInterceptor->___callParent('dispatch', Array)
#48 /var/www/mydomain.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkAppFrontControllerInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppRequestHttp))
#49 /var/www/mydomain.com/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): MagentoFrameworkAppFrontControllerInterceptor->___callPlugins('dispatch', Array, Array)
#50 /var/www/mydomain.com/vendor/magento/framework/App/Http.php(135): MagentoFrameworkAppFrontControllerInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#51 /var/www/mydomain.com/vendor/magento/framework/App/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()
#52 /var/www/mydomain.com/pub/index.php(37): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))
#53 main [] []


Does anyone have any idea as to what's going on? I believe it may to do with our multisite setup but am unsure, store info is



+----------+---------+------------+----------+---------+------------+-----------+
| store_id | code | website_id | group_id | name | sort_order | is_active |
+----------+---------+------------+----------+---------+------------+-----------+
| 0 | admin | 0 | 0 | Admin | 0 | 1 |
| 1 | default | 1 | 1 | English | 0 | 1 |
| 3 | irish | 3 | 3 | English | 0 | 1 |
| 4 | pl_pl | 4 | 4 | Polish | 5 | 1 |
| 5 | de_de | 5 | 5 | German | 0 | 1 |
| 6 | fr_fr | 6 | 6 | French | 0 | 1 |
| 7 | de_at | 7 | 7 | German | 0 | 1 |
| 8 | fr_be | 8 | 8 | French | 0 | 1 |
| 9 | nl_en | 9 | 9 | English | 0 | 1 |
+----------+---------+------------+----------+---------+------------+-----------+


Looking at eav_entity_store though it looks like it may have something to do with this?



+-----------------+----------------+----------+------------------+-------------------+
| entity_store_id | entity_type_id | store_id | increment_prefix | increment_last_id |
+-----------------+----------------+----------+------------------+-------------------+
| 1 | 5 | 2 | 1 | 1201584183 |
| 2 | 6 | 2 | 1 | 12301583211 |
| 3 | 8 | 2 | 1 | 13401580560 |
| 4 | 7 | 2 | 1 | 14401564687 |
| 5 | 5 | 0 | 2 | 200000001 |
| 6 | 5 | 3 | IRL | IRL35301569424 |
| 7 | 6 | 3 | 353 | 35301569416 |
| 8 | 8 | 3 | 15 | 1535301569411 |
| 9 | 5 | 4 | PL | PL48342658808 |
| 10 | 6 | 4 | 18 | 1848342658795 |
| 11 | 8 | 4 | 18 | 1848342658790 |
| 12 | 5 | 6 | FR | FR33153264939 |
| 13 | 5 | 5 | DE | DE49248574351 |
| 14 | 5 | 8 | BE | BE32475983532 |
| 15 | 5 | 7 | AT | AT43536957446 |
| 16 | 5 | 9 | NL | NL31658957439 |
| 17 | 6 | 9 | 23 | 2300000016 |
| 18 | 8 | 9 | 23 | 2300000013 |
| 19 | 6 | 5 | 19 | 1900000086 |
| 20 | 6 | 6 | 20 | 2000000062 |
| 21 | 8 | 5 | 19 | 1900000079 |
| 22 | 8 | 6 | 20 | 2000000058 |
| 23 | 6 | 7 | 21 | 2100000008 |
| 24 | 8 | 7 | 21 | 2100000008 |
| 25 | 6 | 8 | 22 | 2200000010 |
| 26 | 8 | 8 | 22 | 2200000009 |
+-----------------+----------------+----------+------------------+-------------------+






magento2.2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 13 '17 at 5:54









Manashvi Birla

6,7376 gold badges20 silver badges41 bronze badges




6,7376 gold badges20 silver badges41 bronze badges










asked Oct 12 '17 at 20:01









David FinlaysonDavid Finlayson

163 bronze badges




163 bronze badges












  • Did you find out what was going on?

    – pinicio
    Dec 13 '17 at 19:40

















  • Did you find out what was going on?

    – pinicio
    Dec 13 '17 at 19:40
















Did you find out what was going on?

– pinicio
Dec 13 '17 at 19:40





Did you find out what was going on?

– pinicio
Dec 13 '17 at 19:40










0






active

oldest

votes














Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f197054%2fno-such-entity-error-when-saving-category-as-anchor%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f197054%2fno-such-entity-error-when-saving-category-as-anchor%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림