Skip to content

Magento 2.4.6: Getting error “Namespace not defined properly” when compile command running

When I am trying to compile, then I am getting Below error: Namespace not defined properly you can see proper command running here : www-data@robert-php-fpm:/var/www/html$ bin/magento setup:di:compile -v Compilation was started. Repositories code generation… 1/9 [===>————————] 11% &lt 1 sec… Read More »Magento 2.4.6: Getting error “Namespace not defined properly” when compile command running

Magento 2.4 – Programmatically Created Categories in Multi-Store Collide

I have a Magento 2.4.3 multi-store and I am currently creating categories programmatically, with the following code: $category = $objectManager->create(‘MagentoCatalogModelCategory’, [‘data’ => [“name” => $refCat[‘name’], “is_active” => $refCat[‘active’], “include_in_menu” => $refCat[‘menu’], “parent_id” => $parentID, “store_id” => $refCat[‘store_id’]]]); $category->setCustomAttributes([“display_mode” => “PRODUCTS”,… Read More »Magento 2.4 – Programmatically Created Categories in Multi-Store Collide