Jump to content
thirty bees forum

Recommended Posts

Posted

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

Posted
21 minutes ago, Havouza said:

But these two lines are identical

For such simple errors you can always check with ChatGPT:

image.png.c4af5460f02d0deb751971c2a0c858d5.png
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()

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...