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