Hi, I'm having trouble importing from csv and xlsx.
I have exported from my database so that I know the field names are correct. The file name is the same as the database.
I managed to find the error in the log:
[Wed Apr 10 11:00:53.060643 2024] [proxy_fcgi:error] [pid 4016067:tid 140072347223616] [client 77.44.82.0:0] AH01071: Got error 'PHP message: PHP Warning: move_uploaded_file(/var/www/vhosts/xxxxxxxx.co.uk/demo.xxxxxxxx.co.uk/uploads_import/661663550ea776.39928860.csv): Failed to open stream: Permission denied in /var/www/vhosts/xxxxxxxx.co.uk/demo.xxxxxxxx.co.uk/front_logic.php on line 0; PHP message: PHP Warning: move_uploaded_file(): Unable to move "/tmp/phpJHZap7" to "/var/www/vhosts/xxxxxxxx.co.uk/demo.xxxxxxxx.co.uk/uploads_import/661663550ea776.39928860.csv" in /var/www/vhosts/xxxxxxxx.co.uk/demo.xxxxxxxx.co.uk/front_logic.php on line 0', referer: https://demo.xxxxxxxx.co.uk/index.php?tablename=Hoses&function=import_from_csv&step=1
The permissions on my uploads_import file is 755, is that correct?
I have exported from my database so that I know the field names are correct. The file name is the same as the database.
I managed to find the error in the log:
[Wed Apr 10 11:00:53.060643 2024] [proxy_fcgi:error] [pid 4016067:tid 140072347223616] [client 77.44.82.0:0] AH01071: Got error 'PHP message: PHP Warning: move_uploaded_file(/var/www/vhosts/xxxxxxxx.co.uk/demo.xxxxxxxx.co.uk/uploads_import/661663550ea776.39928860.csv): Failed to open stream: Permission denied in /var/www/vhosts/xxxxxxxx.co.uk/demo.xxxxxxxx.co.uk/front_logic.php on line 0; PHP message: PHP Warning: move_uploaded_file(): Unable to move "/tmp/phpJHZap7" to "/var/www/vhosts/xxxxxxxx.co.uk/demo.xxxxxxxx.co.uk/uploads_import/661663550ea776.39928860.csv" in /var/www/vhosts/xxxxxxxx.co.uk/demo.xxxxxxxx.co.uk/front_logic.php on line 0', referer: https://demo.xxxxxxxx.co.uk/index.php?tablename=Hoses&function=import_from_csv&step=1
The permissions on my uploads_import file is 755, is that correct?
Last edited: