Hello and happy christmas,
the upload function in mpForm 1.3.23 generates some messages (since PHP 7.0?):
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; HTTP_Upload_Error has a deprecated constructor in /modules/mpform/pear/Upload.php on line 58
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; HTTP_Upload has a deprecated constructor in /modules/mpform/pear/Upload.php on line 298
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; HTTP_Upload_File has a deprecated constructor in /modules/mpform/pear/Upload.php on line 526
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PEAR has a deprecated constructor in /modules/mpform/pear/PEAR.php on line 102
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PEAR_Error has a deprecated constructor in /modules/mpform/pear/PEAR.php on line 826"
Hi Frank,
I have fixed this by updating the pear components included in the module in release 1.3.24 (https://github.com/WebsiteBaker-modules/mpform/releases/tag/1.3.24).
Cheers, Martin
Thanks Martin, it works. (Y)
No messages, no problems.
The 1.3.24 is now in Add-ons Repo (https://addon.websitebaker.org/pages/en/browse-add-ons.php?id=0A702411).
I have another update for mpForm (https://github.com/WebsiteBaker-modules/mpform/releases/tag/1.3.25) which solves a problem when uploading multiple files with one upload field. The file names were not stored properly in the results table. Only the last one was stored there (in the submissions table and the notification mails everything was fine).
Now in the Repo (https://addon.websitebaker.org/pages/en/browse-add-ons.php), thanks (Y)