PHP 8.3 deprecated warning

  • Posts: 19
  • Thank you received: 0
2 weeks 1 day ago #366985

-- HikaShop version -- : 5.1.5
-- Joomla version -- : 5.3.0
-- PHP version -- : 8.3
-- Error-message(debug-mod must be tuned on) -- : ( ! ) Deprecated: PDO::quote(): Passing null to parameter #1 ($string) of type string is deprecated in \libraries\vendor\joomla\database\src\Mysql\MysqlDriver.php on line 711

On order create, we have a depercated warning:
( ! ) Deprecated: PDO::quote(): Passing null to parameter #1 ($string) of type string is deprecated in \libraries\vendor\joomla\database\src\Mysql\MysqlDriver.php on line 711

stack:

checkoutController->confirm( )
hikashopOrderClass->createFromCart( $cart_id = 19081, $options = ??? )
hikashopOrderClass->save( $order = class stdClass { public $order_user_id = 1......
hikashopOrder_productClass->save( $products =..... - ...\order.php:350
Joomla\Database\DatabaseDriver->quote( $text = NULL, $escape = ??? ) - ...\order_product.php:122
Joomla\Database\Mysql\MysqlDriver->escape( $text = NULL, $extra = ??? )
quote( $string = NULL )

Edit and change
$this->database->Quote(@$product->order_product_tax),
to
$this->database->Quote(@$product->order_product_tax ?? 0),

Also change
$this->database->Quote(@$product->order_product_params),
to
$this->database->Quote(@$product->order_product_params ?? ''),

Please Log in or Create an account to join the conversation.

  • Posts: 83811
  • Thank you received: 13571
  • MODERATOR
2 weeks 1 day ago #366988

Hi,

Thank you for your feedback on these.
I've added modifications for this on our end.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum