Questions tagged [environment-emulation]

The tag has no usage guidance.

6 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
3k views

main.ERROR: Environment emulation nesting is not allowed. [] []

I got an error in system.log main.ERROR: Environment emulation nesting is not allowed. [] [] Why this came and how to fix this?
2
votes
0answers
25 views

taxClassId are not saved with the rest of the product

I'm trying to update some attributes of my product by a cron to avoid common mistakes. The code causing me trouble is executed in a loop: foreach ($storesIds as $storeId) { $this->...
0
votes
1answer
433 views

How to install packages php7.2-hash php7.2-openssl php7.2-pdo_mysql if they are not found by apt

How to install packages php7.2-hash php7.2-openssl php7.2-pdo_mysql if they are not found by apt. php7.2-hash php7.2-openssl php7.2-pdo_mysql root@sample:~# apt install php7.2-hash Reading package ...
0
votes
1answer
69 views

magento 2 development environment operating system

I am using Window OS for magento 2 development. Is it better to switch to ubuntu? Is development fast in unbuntu? Thanks
0
votes
1answer
110 views

Convert environment emulation v.1.9 to v.2

How to rewrite below code to fix version 2.0 $initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId); //Dealing with uninitialized translator! Mage::app()->getTranslator()-...
0
votes
0answers
21 views

Emulating a different user role

Is it possible to emulate a different user role in code? I'm wondering if it is possible to do something similar to Mage_Sales_Model_Order::sendNewOrderEmail() where a different store is emulated i.e....