WebsiteBaker Community Forum

WebsiteBaker Support (2.12.x) => Modules => Topic started by: dbs on December 26, 2018, 05:25:43 PM

Title: mpForm messages Methods with same name
Post by: dbs on December 26, 2018, 05:25:43 PM
Hello and happy christmas,

the upload function in mpForm 1.3.23 generates some messages (since PHP 7.0?):
Code: [Select]
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"
Title: Re: mpForm messages Methods with same name
Post by: Martin Hecht on December 27, 2018, 10:36:08 PM
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
Title: Re: mpForm messages Methods with same name
Post by: dbs on December 28, 2018, 08:12:10 AM
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).
Title: mpForm update
Post by: Martin Hecht on January 15, 2019, 09:00:45 PM
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).
Title: Re: mpForm messages Methods with same name
Post by: dbs on January 15, 2019, 11:25:38 PM
Now in the Repo (https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php), thanks  (Y)