René Schep
René Schep
@engcom-Delta I've implemented my workaround with a patch to avoid the issue. But I'm very confident it's caused by having a caching system configured that doesn't run on your system....
@engcom-Delta This scenario could use some better error handling. Because it's very unclear that a incorrectly configured FPC is causing the issue.
@engcom-Dash Did you configure Varnish on the server before upgrade but don't actually have varnish installed? This is what I believe results in the error. Also it only showed when...
@engcom-Dash I've had the issue happen to multiple different shops between 2.4.4 and 2.4.5. But I have no clue how the effectively reproduce it on a clean installation.
@engcom-Dash We found the cause of the issue, we had the following node in our `app/etc/env.php` ``` 'cache' => [ 'graphql' => [ 'id_salt' => '[A SALT HASH]' ] ]...
@engcom-Hotel Your module is not doing what I described. ``` class A function aFunction() { $this->_scopeInterface->setCurrentScope(Area::AREA_ADMINHTML); } class PluginOnA function afterAFunction() { //this doesn't work } ```
@engcom-Hotel I'm trying to think of an easy way to reproduce the issue, because the code that was executing setCurrentScope function was quite a bit more complicated. And the content...
@engcom-Hotel No my code was calling setCurrentScope within a function that was called indirectly by a plugin and that function called a different plugin that broke.
``` if ($product->getTypeId() !== 'configurable') { $code = Area::AREA_FRONTEND; $currentScope = $this->configScope->getCurrentScope(); $this->configScope->setCurrentScope($code); $price = $this->appState->emulateAreaCode( $code, [$this, 'getProductPrice'], [$product, $group->getId()] ); $this->configScope->setCurrentScope($currentScope); } else { ... } ``` This...
@engcom-Hotel Sort of, class A isn't the class that has the after plugin on it. It was more like this (might be even deeper nested) ``` Class C function cFunction()...