webERP Forum

Full Version: Does php version 7.3+ support weberp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
when i upgraded my php version to 7.3 I encountered these two errors in StockTransfers and StockAdjustments
Code:
Got error 'PHP message: PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function StockTransfer::__construct(), 6 passed in /var/www/vhosts/.../ptl/StockTransfers.php on line 102 and exactly 8 expected in /var/www/vhosts/...ptl/includes/DefineStockTransfers.php:18\nStack trace:\n#0 /var/www/vhosts/.../StockTransfers.php(102): StockTransfer->__construct(0, 'S02', '', 'S014', '', '24/02/2021')\n#1 {main}\n  thrown in /var/www/vhosts/.../ptl/includes/DefineStockTransfers.php on line 18', referer: https://.../ptl/StockTransfers.php?New=Yes


Code:
Got error 'PHP message: PHP Deprecated:  Non-static method smtp::connect() should not be called statically in /var/www/vhosts/../ptl/includes/htmlMimeMail.php on line 690\nPHP message: PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/vhosts/../ptl/includes/smtp.php:91\nStack trace:\n#0 /var/www/vhosts/../ptl/includes/htmlMimeMail.php(690): smtp::connect(Array)\n#1 /var/www/vhosts/../ptl/includes/MiscFunctions.php(358): htmlMimeMail->send(Array, 'smtp')\n#2 /var/www/vhosts/../ptl/StockAdjustments.php(385): SendMailBySmtp(Object(htmlMimeMail), Array)\n#3 {main}\n  thrown in /var/www/vhosts/../ptl/includes/smtp.php on line 91\n', referer: https://../ptl/StockAdjustments.php?NewAdjustment=Yes
[/code]



Am using both webERP version 4.14.1 and  4.15.1! any Idea
This was fixed in back in 2019:

https://github.com/webERP-team/webERP/co...a0ff0916cd

This error is only thrown in PHP versions >= 7.1

https://www.php.net/manual/en/class.argu...terror.php
(02-24-2021, 11:36 PM)falkoner Wrote: [ -> ]This was fixed in back in 2019:

https://github.com/webERP-team/webERP/co...a0ff0916cd

This error is only thrown in PHP versions >= 7.1

https://www.php.net/manual/en/class.argu...terror.php
what of StockAdjustments? does it have any fix?


Code:
Got error 'PHP message: PHP Deprecated:  Non-static method smtp::connect() should not be called statically in /var/www/vhosts/../ptl/includes/htmlMimeMail.php on line 690\nPHP message: PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/vhosts/../ptl/includes/smtp.php:91\nStack trace:\n#0 /var/www/vhosts/../ptl/includes/htmlMimeMail.php(690): smtp::connect(Array)\n#1 /var/www/vhosts/../ptl/includes/MiscFunctions.php(358): htmlMimeMail->send(Array, 'smtp')\n#2 /var/www/vhosts/../ptl/StockAdjustments.php(385): SendMailBySmtp(Object(htmlMimeMail), Array)\n#3 {main}\n  thrown in /var/www/vhosts/../ptl/includes/smtp.php on line 91\n', referer: https://../ptl/StockAdjustments.php?NewAdjustment=Yes
Can you start a different thread for each query. That makes it easier for people to search in future.