Jump to content

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


Recommended Posts

Posted (edited)

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
Posted

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. 

 

Posted
2 hours ago, Jim M said:

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

Posted (edited)

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
Posted

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

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 members

    • No registered users viewing this page.
×
×
  • Create New...