«Area code is not set» on a df_area_code_is() call

mage2pro-core

(Sam D) #1

Hi Dmitry

I am getting this error, seems to be coming from mage2pro/core/lib/ - have you seen this error?

Repositories code generation... 1/7 [====>-----------------------]  14% 1 sec 90.0 MiBPHP Fatal error:  Class 'Magento\Paypal\Controller\Transparent\Response' not found in vendor/magento/module-paypal/Controller/Adminhtml/Transparent/Response.php on line 13
PHP Fatal error:  Uncaught Magento\Framework\Exception\LocalizedException: Area code is not set in /var/www/beta.pumpunderwear.com/web/2e/vendor/magento/framework/App/State.php:139
Stack trace:
#0 /var/www/beta.pumpunderwear.com/web/2e/vendor/mage2pro/core/Core/lib/area.php(16): Magento\Framework\App\State->getAreaCode()
#1 /var/www/beta.pumpunderwear.com/web/2e/vendor/mage2pro/core/Core/lib/area.php(55): df_area_code_is('adminhtml')
#2 /vendor/mage2pro/core/Store/lib/main.php(59): df_is_backend()
#3 /vendor/mage2pro/core/Store/lib/main.php(125): df_store(NULL)
#4 /vendor/mage2pro/core/Store/lib/main.php(143): df_store_url(NULL, 'web')
#5 /vendor/mage2pro/core/Core/lib/state.php(74): df_store_url_web(NULL)
#6 /vendor/mage2pro/core/Core/lib/cache.php(214): {closure}()
#7 /vendor/mage2pro/core/Core/lib/st in /vendor/magento/framework/App/State.php on line 139

Thanks!


(Dmitry Fedyuk) #2

I have fixed it in the 2.4.20 version of the mage2pro/core package.


(Dmitry Fedyuk) #3

A post was split to a new topic: Class ‘Df\Core\Helper\Path’ not found