Jump to content

TypeError: array_merge(): Argument #1 must be of type array, IPS\File\FileSystem given (0)

Featured Replies

Posted

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 by Daddy

  • Community Expert

Is this happening on all your Downloads' files or just one specifically? If the latter, could you please provide us the URL?

  • Author

The error occurs on all files. They cant be updated. Plug-ins and apps disabled same result

  • 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. 

 

  • 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

  • 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.
 

Could contain: Text, Page, Menu, Paper

Edited by Daddy

  • 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 🙂

  • 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.

 

  • 2 weeks later...
  • 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

Recently Browsing 0

  • No registered users viewing this page.