_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.
Picture and barcode should load as they did up to a few days ago.
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.
....on a product with a picture and a barcode this is the error from firebug:
"NetworkError: 500 Internal Server Error - http://domain.co.uk/workflow/viewimage.php?modulepart=product&entity=1&file=%2Fkitchen-devils-large-cook%2Fkitchen-devils-large-cook.jpg"
"NetworkError: 500 Internal Server Error - http://domain.co.uk/workflow/viewimage.php?modulepart=barcode&generator=phpbarcode&code=5010624437446&encoding=EAN13"
"NetworkError: 500 Internal Server Error - http://domain.co.uk/workflow/viewimage.php?modulepart=product&entity=1&file=%2Fkitchen-devils-large-cook%2Fkitchen-devils-large-cook.jpg"
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.
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.