What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi guys π after updating some of the modules to newer version we are getting the `Uncaught Erro
Comments
-
@UKBSFUDEJ I feel you have insights here.
0 -
Hi, could you be more specific, which module and what version is throwing this?
0 -
PHP Fatal error: Uncaught ErrorException: Use of undefined constant APPLICATION_CODE_BUCKET - assumed 'APPLICATION_CODE_BUCKET' (this will throw an Error in a future version of PHP) in /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/ClassResolver/ModuleNameResolver.php:36 Stack trace: #0 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/ClassResolver/ModuleNameResolver.php(36): Spryker\Shared\ErrorHandler\ErrorHandlerEnvironment->Spryker\Shared\ErrorHandler\{closure}(2, 'Use of undefine...', '/data/vendor/sp...', 36, Array) #1 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/ClassResolver/ModuleNameResolver.php(19): Spryker\Shared\Kernel\ClassResolver\ModuleNameResolver->getCodeBucket() #2 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/ClassResolver/ClassInfo.php(65): Spryker\Shared\Kernel\ClassResolver\ModuleNameResolver->resolve('Monitoring') #3 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/ClassResolver/AbstractClassResolver.php(153): Spryker\Shared\Kernel\ClassResolver\ClassInfo->setClass('Sp in /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/ClassResolver/ModuleNameResolver.php on line 36
0 -
i believe after updating
spryker/kernel
to https://github.com/spryker/kernel/releases/tag/3.48.00 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
i have the same version and integration but no errors..
as specified in expcetion
this will throw an Error in a future version of PHP
the question is: which version of php are u using?
7.2 and 7.3 no problems0 -
7.3
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
ok.. strange..
do u have/** * @deprecated Exists for BC reasons. * * @return void */ protected static function defineCodeBucket(): void { if (!defined('APPLICATION_CODE_BUCKET')) { define('APPLICATION_CODE_BUCKET', APPLICATION_STORE); } }
in
vendor/spryker/config/src/Spryker/Shared/Config/Config.php
?0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
maybe u override this on pyz level because it is called in init function of config
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
and there is another define of APPLICATION_CODE_BUCKET in
vendor/spryker/config/src/Spryker/Shared/Config/Application/Environment.php
0 -
will check it, thanks for pointing it out
0 -
yeah, that would have been my next question, thx @UL65CH0MC
0 -
Kernel do require new version of Config module, thus OOTB itβs supposed to work unless there are project customizations
0 -
Thank you for your answers. In the end it was the problem with docker-sync. Reseting the containers did the trick.
0 -
It's time to recommend to use Linux. π
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random