Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 9, 20222 yr Was asked to pass this along. Having issues with files giving this error when you attempt to update it. Error: TypeError: array_merge(): Argument #1 must be of type array, IPS\File\FileSystem given (0) #0 /home/xxxx/public_html/applications/downloads/modules/front/downloads/view.php(1029): array_merge(Object(IPS\File\FileSystem), Array) #1 /home/xxxx/public_html/system/Dispatcher/Controller.php(107): IPS\downloads\modules\front\downloads\_view->newVersion() #2 /home/xxxx/public_html/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #3 /home/xxxx/public_html/applications/downloads/modules/front/downloads/view.php(62): IPS\Content\_Controller->execute() #4 /home/xxxx/public_html/system/Dispatcher/Dispatcher.php(153): IPS\downloads\modules\front\downloads\_view->execute() #5 /home/xxxx/public_html/index.php(13): IPS\_Dispatcher->run() #6 {main} Code: /* Filters */ $imageUploads = isset( $values['files'] ) ? $values['files'] : []; if ( isset( $values['screenshots'] ) ) { $imageUploads = array_merge( $imageUploads, $values['screenshots'] ); This code is from: applications\downloads\modules\front\downloads\view.php Edited July 9, 20222 yr by Daddy
July 9, 20222 yr Community Expert Is this happening on all your Downloads' files or just one specifically? If the latter, could you please provide us the URL?
July 9, 20222 yr Author The error occurs on all files. They cant be updated. Plug-ins and apps disabled same result
July 9, 20222 yr Community Expert We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you.
July 9, 20222 yr Author We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you. Done
July 10, 20222 yr Author Went ahead and uninstalled everything, plugins, apps, themes, etc, same error. Also tried php 7.4, 8.0 and 8.1 to no avail. Edited July 10, 20222 yr by Daddy
July 10, 20222 yr Author @Jim M Seems like this is a bug with "Allow Multiple Files" for downloads. When enabling this feature the error goes away. Please confirm 🙂
July 11, 20222 yr Community Expert Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.
July 19, 20222 yr Community Expert There is a patch that has gone out for this, so if you check for patches in the support area of your admin CP, you should be able to resolve this