Identification



Welcome, Guest
Please Login or Register.    Lost Password?

delete product picture gives error
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: delete product picture gives error
#22626
delete product picture gives error 11 Months, 3 Weeks ago Karma: 1
When I confirm the deletion of a product picture with "[" and "]" in the file name, Dolibarr 3.3.1 gives messages and does not delete the picture, while there were no messages when uploading or showing it. Pictures with other file names are deleted without messages.

Messages when trying to delete:

Warning: Invalid argument supplied for foreach() in dolibarr/htdocs/core/lib/files.lib.php on line 757
and
Warning: Cannot modify header information - headers already sent by (output started at dolibarr/htdocs/core/lib/files.lib.php:757) in dolibarr/htdocs/main.inc.php on line 825

I think an adjustment in the PHP code has to be made to prevent these errors and to make the deletion possible.
Apart from this, is there a way to delete these pictures?
peve
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#22655
Re: delete product picture gives error 11 Months, 3 Weeks ago Karma: 147
You can delete manually files. Make a scan of file into dolibarr "documents" directory.

Fix should be included into 3.4
eldy
Administrateur
Posts: 1363
graph
User Offline Click here to see the profile of this user
Gender: Male Site web personnel Location: Rueil Malmaison
Last Edit: 2013/04/30 16:36 By eldy.
Laurent Destailleur (alias eldy, Dolibarr grade: Yoda).
- Dolibarr in the Cloud: DoliCloud, the OpenSource hosting solution for your Dolibar ERP & CRM.
- Android app for Dolibarr: DoliDroid
The administrator has disabled public write access.
 
Go to topPage: 1