Error when adding an item to an order (printObjectLine)

Hi all,

First of all, thank you so much for the excellent system.

When adding an item under the order, the systems return the following error. However, if I remove “#addline” from the URL dolibarr/htdocs/commande/card.php?id=4527#addline and refresh the screen the item was already added.

Dolibarr has detected a technical error.
This information can be useful for diagnostic purposes (you can set option $dolibarr_main_prod to ‘1’ to remove such notices):
Date: 20200702133703
Dolibarr: 12.0.0 - https://www.dolibarr.org
Level of features: 0
PHP: 5.6.38
Server: Apache
OS: Linux genesis.websitewelcome.com 4.14.146-225.ELK.el6.x86_64 #1 SMP Sat Sep 21 01:19:55 CDT 2019 x86_64
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

Requested URL: /dolibarr/htdocs/commande/card.php?id=4527
Referer: /dolibarr/htdocs/commande/card.php?id=4527
Menu manager: eldy_menu.php

Modules/Applications: user, import, ticket, tax, prelevement, banque, export, margin, categorie, fckeditor, bookmark, workflow, accounting, agenda, barcode, commande, ecm, expensereport, facture, fournisseur, holiday, salaries, societe, service, printipp, stock, product
Message: Error: Method printObjectLine was called on an object and object->fetch_thirdparty was not done before

Hi All, I updated to version 12.0.1 but still having the same issue. Please let me know if somebody else is having the same issue. I’ll appreciate it.

Dolibarr ha detectado un error técnico.
Esta información puede ser útil para fines de diagnóstico (puede establecer la opción $dolibarr_main_prod en ‘1’ para eliminar dichos avisos):
Fecha: 20200709133932
Dolibarr: 12.0.1 - https://www.dolibarr.org
Nivel de funciones: 0
PHP: 5.6.38
Server: Apache
OS: Linux genesis.websitewelcome.com 4.14.146-225.ELK.el6.x86_64 #1 SMP Sat Sep 21 01:19:55 CDT 2019 x86_64
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

URL solicitada: /dolibarr/htdocs/commande/card.php?id=3550
Referer: dolibarr/htdocs/commande/card.php?id=3550
Administrador de menús: eldy_menu.php

Módulos/Aplicaciones: user, import, ticket, tax, prelevement, banque, export, margin, categorie, fckeditor, bookmark, workflow, accounting, agenda, barcode, commande, ecm, expensereport, facture, fournisseur, holiday, salaries, societe, service, printipp, stock, product
Message: Error: Method printObjectLine was called on an object and object->fetch_thirdparty was not done before

Hi,

Do you have external module installed ?
Have you some extrafields declared ?

Hi Ksar, thank you for your help.

  • I don’t have any external module install.

  • I have some extra fields / Complementary Attributes that were added through the admin module page

  • It generates an error for each of the items added to the order. Even when i removed the extra fields in the form

2020-07-09 19:41:47 ERR Error url=/dolibarr/htdocs/commande/card.php?id=4555, query_string=id=4555, msg=Error: Method printObjectLine was called on an object and object->fetch_thirdparty was not done before
2020-07-09 19:41:47 ERR Error url=/dolibarr/htdocs/commande/card.php?id=4555, query_string=id=4555, msg=Error: Method printObjectLine was called on an object and object->fetch_thirdparty was not done before
2020-07-09 19:41:47 ERR Error url=/dolibarr/htdocs/commande/card.php?id=4555, query_string=id=4555, msg=Error: Method printObjectLine was called on an object and object->fetch_thirdparty was not done before

Hi,

Can you print screen the extrafield line configuration ?

I have the same problem. I also have some extra fields added through the admin module.
No external modules

Installed 12.0.2 and problem still exists

Same problem here (12.0.2)

The problem only happens when mulitlanguage support is enabled. This is definitly a bug. Here is another thread about this:

Thank you @dolichicken. I disabled the multilanguage and it solved the problem. Appreciated.

@bvgeleuken / @Munchilu