Forum Replies Created
The base directory is correct.
We believe that this is a compatibility issue with Download Manager and the level of PHP on our server. Our server is using the latest version of PHP – 8.1. The fatal error that is occurring each time the import is run is to do with this.
Please could you confirm the below:
• Is your plugin compatible with PHP 8 and above? (We are running PHP 8.1 on our server)
• The error we are receiving is possibly an error with PHP 8
• It is likely to do with this – https://www.php.net/manual/en/function.count.php
Below is the fatal error we are receiving:
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/allsaints.dorset.sch.uk/public/wp-content/plugins/download-manager/src/Admin/Menu/ImportExport.php:258
Thank you for getting back to me.
I can try this, but oddly the ‘Select Dir’ field is empty (see image here).
Do you know why this may be?
Also when I have imported the files in this method, can I then import the CSV file to point them to their correct categories?
Upon further investigation, we have found the error code found below:
FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key “csv” in /var/www/allsaints.dorset.sch.uk/public/wp-content/plugins/download-manager/src/Admin/Menu/ImportExport.php on line 107PHP message: PHP Warning: Trying to access array offset on value of type null in /var/www/allsaints.dorset.sch.uk/public/wp-content/plugins/download-manager/src/Admin/Menu/ImportExport.php on line 107PHP message: PHP Warning: Undefined array key “tags” in /var/www/allsaints.dorset.sch.uk/public/wp-content/plugins/download-manager/src/Admin/Menu/ImportExport.php on line 244PHP message: PHP Warning: foreach() argument must be of type array|object, null given in /var/www/allsaints.dorset.sch.uk/public/wp-content/plugins/download-manager/src/Admin/Menu/ImportExport.php on line 244PHP message: PHP Warning: Undefined array key “tags” in /var/www/allsaints.dorset.sch.uk/public/wp-content/plugins/download-manager/src/Admin/Menu/ImportExport.php on line 258PHP message: PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/allsaints.dorset.sch.uk/public/wp-content/plugins/download-manager/src/Admin/Menu/ImportExport.php:258
Does this help you in any way in diagnosing the issue?