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

  • 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: - 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?

Log in to reply

Looks like your connection to thirty bees forum was lost, please wait while we try to reconnect.