Jump to content
thirty bees forum
  • 0

API get Error 500 with DEBUG mode disabled (but works!)


Question

Posted

Hello,

I have a sandbox shop with TB 1.0.3 and I'm trying to use a service (bindCommerce) that use TB/PS APIs to sync products.

Right now I'm trying to send products from the bC to TB and to update them.

With DEBUG disabled bC can create the product on TB correctly but if it try to update a product the server generates this (but correctly update the item):

NGINX Error log:

PHP message: [PHP Warning #2] Illegal offset type (/home/domain/domains/new.domain.com/public_html/classes/ObjectModel.php, line 1055)

NGINX Access log:

94.177.239.167 - BXXXXXXXXXX2ZMPCJKMFAXXXXXXXXXXA [24/Feb/2018:17:05:19 +0100] "PUT /api/products/289 HTTP/1.1" 500 1436 "-" "bindCommerce"

If I enable DEBUG MODE the PHP Warning disappear. (the problem is not related to a single product)

The products are created or updated correctly but during an update, TB responds with that and the service stop! So in case of a multiple products sync, when the first update is done the system respond with that error/warning and stop the whole process.

Can you give me some more info about what change TB is DEBUG is activated or not?

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...