Dolibarr: Bug: Product Pic and Barcode suddenly fail to load/generate

Created on 23 Mar 2016  路  9Comments  路  Source: Dolibarr/dolibarr

capture

Bug

_Loading any product normally when I upgraded to 3.9.0 showed the picture and barcode of the product on the main product page and in the tooltips. For the last two days, both the picture and the barcode fail to generate showing a broken image link_

When I download the picture file it is ok. When I find the picture file from the documents area it exists but will not load anymore. I have only started using product pictures with 3.9.0.

Environment

Picture and barcode should load as they did up to a few days ago.

Most helpful comment

wow it works!

product pictures and barcodes now show up properly.

Thank you so much for your help. It is very much appreciated. I hope this is corrected in the next version.

All 9 comments

Can anybody help with this?

Google Chrome Inspector Tools say this:

_Failed to load resource: the server responded with a status of 500 (Internal Server Error)_

VM786:61 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

Am I the only one who cannot get the product pics and barcodes to show up?

you tried a different browser?
you have installed or you use external modules?
can you test with Firefox with firebug plugin and look the error console ?

Hello, thanks for replying.

and in the Apache logs ?
you are this in the /conf/conf/php ? :
$dolibarr_main_prod='0';

this is from my server error log:
domain.co.uk [Tue Mar 29 09:12:10 2016] [error] [client 79.77.247.50:60555] AH01215: PHP Fatal error: Call to a member function trans() on a non-object in /home/sites/domain.co.uk/public_html/workflow/user/class/user.class.php on line 259: /home/sites/domain.co.uk/public_html/workflow/viewimage.php

*_yes *_ the conf.php has $dolibarr_main_prod='0';

edit the file viewimage.php and comment this line :

if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');

with

//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');

wow it works!

product pictures and barcodes now show up properly.

Thank you so much for your help. It is very much appreciated. I hope this is corrected in the next version.

Was this page helpful?
0 / 5 - 0 ratings