Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching Mollie order status in backend causes error #19

Open
peterjaap opened this issue Feb 2, 2023 · 0 comments
Open

Fetching Mollie order status in backend causes error #19

peterjaap opened this issue Feb 2, 2023 · 0 comments

Comments

@peterjaap
Copy link
Contributor

There is a Mollie Fetch Status button in the Magento backend:

image

When clicked, and the status is Paid, the observer in this extension is triggered. But it gives an error:

[2023-02-02T14:17:53.610338+00:00] main.INFO: elgentos_serversideanalytics_requests:  ["https://ssl.google-analytics.com/collect?ti=2000000384&tr=13.94&tt=2.42&ts=8.9900&ta=Main%20Website%0ATepper%20Efka%20-%20Store%0AEnglish&v=1&tid=UA-22992695-19&uip=144.178.244.242&cid=470046374.1675346692&dp=%2Fcheckout%2Fonepage%2Fsuccess%2F&pa=purchase&ec=Checkout&ea=Purchase&t=event&pr1id=AL%20668000&pr1nm=Airolube%20De-Icer%20%2F%20Windshield%20defroster%20-%20500ml%20Spray&pr1pr=4.9500&pr1qt=1.0000"] []
[2023-02-02T14:17:55.987210+00:00] main.ERROR: Environment emulation nesting is not allowed. [] []

This is because the environment emulation is already running for this store.

Maybe we can check which store it is emulating and if it's the same, skip starting it here? https://github.com/elgentos/magento2-serversideanalytics/blob/master/Observer/SendPurchaseEvent.php#L65

And if it is not the same, stop the current emulation, start the one we need, and restart the original? Or would that have some adverse effects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant