Pure PHP Upload 3 Support Product Page

Answered

Will php upload 3 work with php7?

Asked 17 Sep 2019 20:29:01
1
has this question
17 Sep 2019 20:29:01 Brian Williams posted:
I have been currently working with pure php upload 2, the latest version. I just upgraded to another server which has php7, and I am getting Depreciation errors on all the pages with the php file upload 2 extension. Will version 3 work with this? If not, how about 5? Hoping this will be an easy, quick fix?

Any help would be appreciated.

Thank you

Replies

Replied 18 Sep 2019 06:46:12
18 Sep 2019 06:46:12 Teodor Kuduschiev replied:
Hello Brian,
Could you paste the exact errors you see? Are you sure the errors are not related to the old, deprecated DW Server Behaviors on your pages?
Replied 18 Sep 2019 15:11:51
18 Sep 2019 15:11:51 Brian Williams replied:
Here's the errors I'm receiving. All the pages with errors have to do with file uploading.

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; pureFileUpload has a deprecated constructor in /home/jswalls/public_html/ScriptLibrary/incPureUpload.php on line 8

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; pureUploadAddon has a deprecated constructor in /home/jswalls/public_html/ScriptLibrary/incPureUpload.php on line 430

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; fileInfo has a deprecated constructor in /home/jswalls/public_html/ScriptLibrary/incPureUpload.php on line 442

Fatal error: Uncaught Error: Call to undefined function eregi() in /home/jswalls/public_html/cp/add-property-listing/index.php:85 Stack trace: #0 {main} thrown in /home/jswalls/public_html/cp/add-property-listing/index.php on line 85
Replied 19 Sep 2019 07:21:26
19 Sep 2019 07:21:26 Teodor Kuduschiev replied:
The last error mentioning the function eregi() has been fixed in Pure PHP Upload 3, but you will see some deprecation warnings with it as well using PHP7+.
The last update for Pure PHP Upload 3 was almost 5 years ago and it is no longer being updated or maintained. Pure PHP Upload 2 is even older.

With the deprecation of the old DW server Behaviors, we released new, modern tools (Server Connect and App Connect) no longer relying on DW server behaviors and they include a file upload extension which is PHP 7 compatible, it's called HTML5 File Upload www.dmxzone.com/go/23308/html5-file-upload
However there is no a point-and-click way of transforming your old website, relying on DW server behaviors to the new tools we offer.

For sites which run such old scripts i'd recommend you to keep PHP 5.6.
Replied 19 Sep 2019 08:25:50
19 Sep 2019 08:25:50 Brian Williams replied:
I downgrades the php to 5.4, and I get the function eregi() error. If I upgrade to php file upload 3, would that solve the error? I tried php 5.5 and also got that same error.
Replied 19 Sep 2019 08:39:21
19 Sep 2019 08:39:21 Teodor Kuduschiev replied:
The erregi() function error won't appear in PPU3, as the code has been updated there.

Reply to this topic