[Skip to main content](#vessel-content)

#   PDO warning

##

- **[Denitz](/forum/user/42054-denitz "View Denitz's Profile")**
- [![Denitz's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/42054-denitz "View Denitz's Profile") Topic Author
- [ Offline](/forum/user/42054-denitz)

Less More

- Posts: 31
- Thank you received: 2
-
-

10 months 4 weeks ago [\#369664](#369664) by [Denitz](/forum/user/42054-denitz "View Denitz's Profile")  *[PDO warning](/forum/25-install-update/909954-pdo-warning#369664 "-- HikaShop version -- : 6.1.1 -- Joomla version -- : 5.4.1 -- 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 &#92;libraries&#92;vendor&#92;joomla&#92;database&#92;src&#92;Mysql&#92;MysqlDriver.php on line 711  Once I create an order in frontend, I see this error:  ( ! ) Deprecated: PDO::quote(): Passing null to parameter #1 ($string) of type string is deprecated in &#92;libraries&#92;vendor&#92;joomla&#92;database&#92;src&#92;Mysql&#92;MysqlDriver.php on line 711  The problem is that hikashopOrder&#95;productClass-&gt;save() is called, Next, it quotes all data and around line 122 the data can be NULL. NULL can't be passed to $db-&gt;quote()  This code is better, if you don't save NULLs but empty strings:")* was created by *[Denitz](/forum/user/42054-denitz "View Denitz's Profile")*

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.1
-- 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

Once I create an order in frontend, I see this error:

( ! ) 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

The problem is that hikashopOrder_productClass-&gt;save() is called,
Next, it quotes all data and around line 122 the data can be NULL. NULL can't be passed to $db-&gt;quote()
Code:

$this-&gt;database-&gt;Quote(@$product-&gt;order_product_shipping_params),

This code is better, if you don't save NULLs but empty strings:
Code:

$this-&gt;database-&gt;Quote($product-&gt;order_product_shipping_params ?? ''),

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwOTk1NC1wZG8td2FybmluZz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86326
- Thank you received: 14288
-
-

10 months 4 weeks ago [\#369665](#369665) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PDO warning](/forum/25-install-update/909954-pdo-warning#369665 "-- HikaShop version -- : 6.1.1 -- Joomla version -- : 5.4.1 -- 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 &#92;libraries&#92;vendor&#92;joomla&#92;database&#92;src&#92;Mysql&#92;MysqlDriver.php on line 711  Once I create an order in frontend, I see this error:  ( ! ) Deprecated: PDO::quote(): Passing null to parameter #1 ($string) of type string is deprecated in &#92;libraries&#92;vendor&#92;joomla&#92;database&#92;src&#92;Mysql&#92;MysqlDriver.php on line 711  The problem is that hikashopOrder&#95;productClass-&gt;save() is called, Next, it quotes all data and around line 122 the data can be NULL. NULL can't be passed to $db-&gt;quote()  This code is better, if you don't save NULLs but empty strings:")*

Hi,

Thank you for your feedback. I've made a patch for it on our end for the next version of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwOTk1NC1wZG8td2FybmluZz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
