SOLVED: Add image to product category

Hi All,

I cannot add a picture to a product category. If i try the same with a product this works.
If i go to product category and try to upload the picture, it gives me the following error :

Warning: file_exists() expects parameter 1 to be a valid path, array given in /volume1/web/discovery/htdocs/core/lib/files.lib.php on line 923
Warning: preg_match() expects parameter 2 to be string, array given in /volume1/web/discovery/htdocs/core/lib/files.lib.php on line 943
Warning: preg_match() expects parameter 2 to be string, array given in /volume1/web/discovery/htdocs/core/lib/files.lib.php on line 943
Warning: preg_match() expects parameter 2 to be string, array given in /volume1/web/discovery/htdocs/core/lib/files.lib.php on line 943
Warning: move_uploaded_file() expects parameter 1 to be string, array given in /volume1/web/discovery/htdocs/core/lib/files.lib.php on line 984

Hi,
What’s your Dolibarr version?

Hi thanks for the reply

i’m using dolibar 6.0.0
php is version 5.6.23

Thanks for the info. It is a bug in version 6.0.0 but it has been fixed in version 6.0.1 and above.

Yes indeed, I’ve tested with 6.0.6 and everything is fine!!!

Thanks for the reply