This is a forum where members new and old can come to ask questions and get info and opinions. It is not a place to advertise your business or have other forms of advertising, whether it be in your posts or signature.

All links in the forum will not be indexed by Search Engines and any unapproved forms of advertising or spam will be dealt with accordingly, deleted, and that member's account banned.

Forums

Overview » Bugs » Pure PHP upload 2.1.10
Reply

Pure PHP upload 2.1.10

Patrick Molyneux
Member



Since: 24 Jun 2002
Posts: 3
Posted 15 Mar 2010 16:51:01

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

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
Bobby Edgar
Freaking Member



Since: 30 Apr 2003
Posts: 100
Replied 07 Aug 2010 07:12:12
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...
Patrick Woldberg
Official Representative



Since: 11 Feb 2003
Posts: 1,894
Replied 11 Aug 2010 10:25:47
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

Message
Reply
Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency