- Posts: 31
- Thank you received: 2
PHP 8.3 deprecated warning
1 year 5 months ago #366985
by Denitz
PHP 8.3 deprecated warning was created by Denitz
-- 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 ?? ''),
-- 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.
1 year 5 months ago #366988
by nicolas
Replied by nicolas on topic PHP 8.3 deprecated warning
Hi,
Thank you for your feedback on these.
I've added modifications for this on our end.
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.125 seconds