Recent Changes - Search:

PITS main list

edit sidebar

Main sidebar



Summary: Upload triggers "Only variables should be passed by reference" error
Created: 2014-12-12 04:47
Status: Closed, fixed for 2.2.71
Category: Bug
Priority: 53
Version: 2.2.70
OS: php 5.4.35

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: replace:
$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

Edit - History - Print - Recent Changes - Search
Page last modified on December 29, 2014, at 10:26 AM