Error on New import

I just dowloaded and set up the 3.9.2 version.
I clicked on New import in the Tools menu then the following error message displayed:
Fatal error: Can’t use function return value in write context in C:\dolibarr\www\dolibarr\htdocs\imports\import.php on line 621

/I have the same problem

Check what is on line 621 in your document. If it is just a single line that is creating the problem, delete that line and add it in manually and continue with the import of the other 620 entries.

Also I had problems when importing stock levels for products since I had commas in my Excel file, and when I put it in CSV I did not reformat to remove them, so everything with more than a thousand units only showed how many thousand there were. Of course this is because it is a CSV file and Excel tends to use commas for splitting number values. :happy: Just FYI.

USN it’s not a problem of a line in a file we want to import, the problem is we can’t access the import function. When we click on ‘new import’ the message in the picture appears.

Can anyone help? I used to be able to import in 3.9.1 and use the function extensively. Is it deleting something on the import.php code file?

Thanks for any lead

Pièces jointes :

Ok found the solution in the french forum and worked. I am copying the answer from frederic34 (https://www.dolibarr.fr/forum/user/8599-frederic34) and the post is here: https://www.dolibarr.fr/forum/8-mise-a-jour/55817-module-import-panne

Follow the route the error gives and ends in /import/import.php. inside your server
Download the file and enter it to modify the code
Do a search for !empty it is the only string of text like this in the whole file
Replace:
if(!empty(GETPOST(‘update’)))

for

if (GETPOST(‘update’))

Save the file and upload it in the same file and with the same name in the server (replace the old file)

It works perfect!

Martìn