Skip to content

Fixing bug where uploading large files sometimes fails#3761

Open
andresrs wants to merge 1 commit intoStudio-42:masterfrom
andresrs:patch-1
Open

Fixing bug where uploading large files sometimes fails#3761
andresrs wants to merge 1 commit intoStudio-42:masterfrom
andresrs:patch-1

Conversation

@andresrs
Copy link

Sometimes uploading large files fails with the following error: Unsupported operand types: string + int {"userId":2,"exception":"[object] (TypeError(code: 0): Unsupported operand types: string + int at /vendor/studio-42/elfinder/php/elFinder.php:4476).

The function file_get_contents returns a string, and PHP 8 doesn't do implicit conversion. It requires the conversion to be explicit to not give problems.

Sometimes uploading large files fails with the following error: Unsupported operand types: string + int {"userId":2,"exception":"[object] (TypeError(code: 0): Unsupported operand types: string + int at <path>/vendor/studio-42/elfinder/php/elFinder.php:4476). 

The function file_get_contents returns a string, and PHP 8 doesn't do implicit conversion. It requires the conversion to be explicit to not give problems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant