01359: Upload triggers "Only variables should be passed by reference" error (Closed, fixed for 2.2.71)
Description: Uploading a file generates the following error message :
Strict Standards: Only variables should be passed by reference in [...]scripts/upload.php on line 264.
The fix is quite simple:
$upname = strtolower(end(explode("/", $filepath)));
on line 264 with:
$patharray = explode("/", $filepath);
$upname = strtolower(end($patharray));
in order to pass the variable $patharray by reference.
Frédéric Boulanger December 12, 2014, at 04:47 AM