CMS MADE SIMPLE FORGE

JMDownMan

 

[#11739] Adding new files does not work any more with PHP 7.1 and above

avatar
Created By: Simon (creopard)
Date Submitted: Thu Feb 15 14:43:44 -0500 2018

Assigned To: Fernando Morgado (JoMorg)
Version: 1.RC.2
CMSMS Version: 2.2.5
Severity: Critical
Resolution: Awaiting Response
State: Open
Summary:
Adding new files does not work any more with PHP 7.1 and above
Detailed Description:
I just noticed a nasty "bug" in file "function.uploadfile.php", however the
solution is trivial.
When updating from PHP v7.0 to v7.1 it's not possible to add new files, as there
are several PHP-warnings due to the "$f_contents"-variable.

The solution ist simple:
in "function.uploadfile.php" change line 40 from
$f_contents = '';
to
$f_contents = array();

done :)


History

Updates

Updated: 2023-01-20 05:59
resolution_id: 11 => 10

Updated: 2018-02-15 14:44
resolution_id: => 11