-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.3.4
-- PHP version -- : 8.1
**ignore title as i was unable to change after submit...should be "authorize.net php deprecation warnings"**
I am seeing a php error right after payment is submitted to authorize.net. Payment is collected successfully though.
[Wed Sep 27 14:03:31.081688 2023] [fcgid:warn] [pid 133211:tid 140657877489408] [client XXXX] mod_fcgid: stderr: PHP Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/mojo6966/mojo_prod/plugins/hikashoppayment/authorize/authorize.php on line 242, referer: https://www.mojooutdoors.com/checkout/cid-3
[Wed Sep 27 14:03:31.081725 2023] [fcgid:warn] [pid 133211:tid 140657877489408] [client XXX] mod_fcgid: stderr: PHP Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/mojo6966/mojo_prod/plugins/hikashoppayment/authorize/authorize.php on line 253, referer: https://www.mojooutdoors.com/checkout/cid-3
[Wed Sep 27 14:03:31.081728 2023] [fcgid:warn] [pid 133211:tid 140657877489408] [client XXX] mod_fcgid: stderr: PHP Warning: Undefined property: stdClass::$order in /home/mojo6966/mojo_prod/media/com_hikashop/mail/payment_notification.text.php on line 12, referer: https://www.mojooutdoors.com/checkout/cid-3
[Wed Sep 27 14:03:31.081743 2023] [fcgid:warn] [pid 133211:tid 140657877489408] [client XXXX] mod_fcgid: stderr: PHP Warning: Attempt to read property "order_number" on null in /home/mojo6966/mojo_prod/media/com_hikashop/mail/payment_notification.text.php on line 12, referer: https://www.mojooutdoors.com/checkout/cid-3
Since the media/com_hikashop/mail/payment_notification.text.php file does not exist in the latest hikashop installer, i have removed this file.
The authorize issues seems to be related to the lack of company name attached to the order:
$vars["x_ship_to_company"]=mb_substr(@$order->cart->shipping_address->address_company,0,50);
After commenting the affected lines out, warning goes away. HOWEVER, there's something strange going on because on initial load, it shows a text copy of the thank you note, and it immediately reloads with the html copy.