Forums

This topic is locked

Pure PHP upload 2.1.10

Posted 15 Mar 2010 16:51:01
1
has voted
15 Mar 2010 16:51:01 Patrick Molyneux posted:
I have just uploaded your latest version of pure php upload - 2.1.10.

However when used with Smart Image Processor it fails.

The issue is with the version number.

Smart Image PRocessor is looking for a version greater than 2.1.3 ....

if ($this->upload->version < $this->nNeededPPUVersion)
{
$this->error("uploadversion", $this->nNeededPPUVersion);
}

Numerically 2.1.10 is less that 2.1.3 and therfore produces an error.

2.1.9 is allowed but not 2.1.10

This can be fixed manually but the way the applications are currently deployed means they do not work "out of the box"


many thanks

Patrick

Replies

Replied 07 Aug 2010 07:12:12
07 Aug 2010 07:12:12 Bobby Edgar replied:
Simply open ScriptLibrary/incResize.php and change lines 38 and 39 to your current PPU Version. Keep in mind that every time you add and make a change on a page... the file (incResize.php) will go back. Again....Change lines 38 and 39 to your PPU Version. It's a pain, but it works.

Hope that helps anyone...
Replied 11 Aug 2010 10:25:47
11 Aug 2010 10:25:47 Patrick Woldberg replied:
In most extensions the check is fixed, only some older extensions aren't.

The fix is using the version_compare function from php:
if (version_compare($this->upload->version, $this->nNeededPPUVersion, '<')) {

Reply to this topic