Havouza Posted March 24 Posted March 24 @datakick I get the attached error when trying to upgrade the php from 7.4 to 8.3. I understand that it is a probem with a module in the theme. There is perhaps more but must test to start somewhere and see if it is possible Any hints please, shop_error.txt
yaniv14 Posted March 24 Posted March 24 in this single example you sent I think changing: 'context' => (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') == 0) ? 1 : ($this->context->shop->getTotalShops() != 1) ? $this->context->shop->getContext() : 1 to 'context' => (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') == 0) ? 1 : (($this->context->shop->getTotalShops() != 1) ? $this->context->shop->getContext() : 1) would do the trick
the.rampage.rado Posted March 24 Posted March 24 21 minutes ago, Havouza said: But these two lines are identical For such simple errors you can always check with ChatGPT: As @yaniv14 said, his fix will most probably fix your error. In future please give the complete code that Collect PHP Logs gives. This helps greatly for developers that know what to look for to assist you. 😉 (of course obfuscate any sensitive info as your true local address, admin folder, etc.) Sample how the code works when you simply copy and paste it here: Exception Message: ThirtyBeesException: Property Product->price is empty Location: classes/ObjectModel.php line 1054 Stacktrace #0 classes/ObjectModel.php(1054) #1 classes/ObjectModel.php(333): ObjectModelCore->validateFields() #2 classes/ObjectModel.php(361): ObjectModelCore->getFields() #3 classes/ObjectModel.php(610): ObjectModelCore->getFieldsPrimary() #4 classes/Product.php(7816): ObjectModelCore->add() #5 controllers/admin/AdminProductsController.php(822): ProductCore->add() #6 classes/controller/AdminController.php(597): AdminProductsControllerCore->processDuplicate() #7 controllers/admin/AdminProductsController.php(1341): AdminControllerCore->postProcess() #8 classes/controller/Controller.php(202): AdminProductsControllerCore->postProcess() #9 classes/Dispatcher.php(865): ControllerCore->run() #10 adminXXX/index.php(58): DispatcherCore->dispatch()
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now