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

#   Error by buing products.

##

- **[Bone](/forum/user/77721-bone "View Bone's Profile")**
- [![Bone's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/77721-bone "View Bone's Profile") Topic Author
- [ Away](/forum/user/77721-bone)

Less More

- Posts: 13
- Thank you received: 2
-
-

4 months 2 weeks ago -  4 months 2 weeks ago [\#372561](#372561) by [Bone](/forum/user/77721-bone "View Bone's Profile")  *[Error by buing products.](/forum/25-install-update/910659-error-by-buing-products#372561 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6.1.2 -- PHP version -- : 8.3.29 -- Browser(s) name and version -- : all brawsers -- Error-message(debug-mod must be tuned on) -- : 0 stripslashes(): Argument #1 ($string) must be of type string, array given Call Stack # Function Location 1 () JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1073 2 stripslashes() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1073 3 Joomla&#92;Plugin&#92;System&#92;Securitycheck&#92;Extension&#92;Securitycheck-&gt;second&#95;level() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1249 4 Joomla&#92;Plugin&#92;System&#92;Securitycheck&#92;Extension&#92;Securitycheck-&gt;acciones&#95;no&#95;listas() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1720 5 Joomla&#92;Plugin&#92;System&#92;Securitycheck&#92;Extension&#92;Securitycheck-&gt;onAfterRoute() JROOT/libraries/src/Plugin/CMSPlugin.php:386 6 Joomla&#92;CMS&#92;Plugin&#92;CMSPlugin-&gt;Joomla&#92;CMS&#92;Plugin&#92;{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:454 7 Joomla&#92;Event&#92;Dispatcher-&gt;dispatch() JROOT/libraries/vendor/joomla/application/src/AbstractApplication.php:99 8 Joomla&#92;Application&#92;AbstractApplication-&gt;dispatchEvent() JROOT/libraries/src/Application/SiteApplication.php:651 9 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;route() JROOT/libraries/src/Application/SiteApplication.php:244 10 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:320 11 Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() JROOT/includes/app.php:58 12 require&#95;once() JROOT/index.php:51  I’m experiencing an error when trying to purchase products using PayPal.  This issue started after updating to the latest version. It did not occur in previous versions, so it appears to be a regression.")* was created by *[Bone](/forum/user/77721-bone "View Bone's Profile")*

-- HikaShop version -- : 6.5.0
-- Joomla version -- : 6.1.2
-- PHP version -- : 8.3.29
-- Browser(s) name and version -- : all brawsers
-- Error-message(debug-mod must be tuned on) -- : 0
stripslashes(): Argument #1 ($string) must be of type string, array given
Call Stack
\# Function Location
1 () JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1073
2 stripslashes() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1073
3 Joomla\Plugin\System\Securitycheck\Extension\Securitycheck-&gt;second_level() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1249
4 Joomla\Plugin\System\Securitycheck\Extension\Securitycheck-&gt;acciones_no_listas() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1720
5 Joomla\Plugin\System\Securitycheck\Extension\Securitycheck-&gt;onAfterRoute() JROOT/libraries/src/Plugin/CMSPlugin.php:386
6 Joomla\CMS\Plugin\CMSPlugin-&gt;Joomla\CMS\Plugin\{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:454
7 Joomla\Event\Dispatcher-&gt;dispatch() JROOT/libraries/vendor/joomla/application/src/AbstractApplication.php:99
8 Joomla\Application\AbstractApplication-&gt;dispatchEvent() JROOT/libraries/src/Application/SiteApplication.php:651
9 Joomla\CMS\Application\SiteApplication-&gt;route() JROOT/libraries/src/Application/SiteApplication.php:244
10 Joomla\CMS\Application\SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:320
11 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/includes/app.php:58
12 require_once() JROOT/index.php:51

I’m experiencing an error when trying to purchase products using PayPal.

This issue started after updating to the latest version. It did not occur in previous versions, so it appears to be a regression.

Last edit: 4 months 2 weeks ago by [Bone](/forum/user/77721-bone "View Bone's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkxMDY1OS1lcnJvci1ieS1idWluZy1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

4 months 2 weeks ago [\#372562](#372562) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error by buing products.](/forum/25-install-update/910659-error-by-buing-products#372562 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6.1.2 -- PHP version -- : 8.3.29 -- Browser(s) name and version -- : all brawsers -- Error-message(debug-mod must be tuned on) -- : 0 stripslashes(): Argument #1 ($string) must be of type string, array given Call Stack # Function Location 1 () JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1073 2 stripslashes() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1073 3 Joomla&#92;Plugin&#92;System&#92;Securitycheck&#92;Extension&#92;Securitycheck-&gt;second&#95;level() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1249 4 Joomla&#92;Plugin&#92;System&#92;Securitycheck&#92;Extension&#92;Securitycheck-&gt;acciones&#95;no&#95;listas() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1720 5 Joomla&#92;Plugin&#92;System&#92;Securitycheck&#92;Extension&#92;Securitycheck-&gt;onAfterRoute() JROOT/libraries/src/Plugin/CMSPlugin.php:386 6 Joomla&#92;CMS&#92;Plugin&#92;CMSPlugin-&gt;Joomla&#92;CMS&#92;Plugin&#92;{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:454 7 Joomla&#92;Event&#92;Dispatcher-&gt;dispatch() JROOT/libraries/vendor/joomla/application/src/AbstractApplication.php:99 8 Joomla&#92;Application&#92;AbstractApplication-&gt;dispatchEvent() JROOT/libraries/src/Application/SiteApplication.php:651 9 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;route() JROOT/libraries/src/Application/SiteApplication.php:244 10 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:320 11 Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() JROOT/includes/app.php:58 12 require&#95;once() JROOT/index.php:51  I’m experiencing an error when trying to purchase products using PayPal.  This issue started after updating to the latest version. It did not occur in previous versions, so it appears to be a regression.")*

Hi,

The error doesn't come from HikaShop. Based on the call stack, it comes from the "second level" protection of the Securitycheck Pro system plugin.

That plugin loops on all the parameters sent in the POST request and runs the PHP function stripslashes on each of them, assuming they are all texts. However, when adding a product to the cart, HikaShop sends some parameters as arrays of values, which is perfectly valid. And on recent versions of PHP, calling stripslashes on an array triggers the fatal error you got, while older versions of PHP only emitted a warning.

So I would recommend to:
- add com_hikashop to the "Second Level exceptions" setting of the Securitycheck Pro plugin, which will avoid the error.
- report the issue to the Securitycheck developers so that they can add the handling of array parameters to their second_level function (their cleanQuery function already handles arrays, so it should be easy for them to fix).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkxMDY1OS1lcnJvci1ieS1idWluZy1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[P.M.](/forum/user/78358-p-m "View P.M.'s Profile")**
- [![P.M.'s Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar78358.png?1792269314)](/forum/user/78358-p-m "View P.M.'s Profile")
- [ Offline](/forum/user/78358-p-m)

Less More

- Posts: 68
- Thank you received: 9
-
-
- [](http://www.breisig.live)
-

4 months 2 weeks ago [\#372577](#372577) by [P.M.](/forum/user/78358-p-m "View P.M.'s Profile")  Replied by *[P.M.](/forum/user/78358-p-m "View P.M.'s Profile")* on topic *[Error by buing products.](/forum/25-install-update/910659-error-by-buing-products#372577 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6.1.2 -- PHP version -- : 8.3.29 -- Browser(s) name and version -- : all brawsers -- Error-message(debug-mod must be tuned on) -- : 0 stripslashes(): Argument #1 ($string) must be of type string, array given Call Stack # Function Location 1 () JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1073 2 stripslashes() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1073 3 Joomla&#92;Plugin&#92;System&#92;Securitycheck&#92;Extension&#92;Securitycheck-&gt;second&#95;level() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1249 4 Joomla&#92;Plugin&#92;System&#92;Securitycheck&#92;Extension&#92;Securitycheck-&gt;acciones&#95;no&#95;listas() JROOT/plugins/system/securitycheck/src/Extension/Securitycheck.php:1720 5 Joomla&#92;Plugin&#92;System&#92;Securitycheck&#92;Extension&#92;Securitycheck-&gt;onAfterRoute() JROOT/libraries/src/Plugin/CMSPlugin.php:386 6 Joomla&#92;CMS&#92;Plugin&#92;CMSPlugin-&gt;Joomla&#92;CMS&#92;Plugin&#92;{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:454 7 Joomla&#92;Event&#92;Dispatcher-&gt;dispatch() JROOT/libraries/vendor/joomla/application/src/AbstractApplication.php:99 8 Joomla&#92;Application&#92;AbstractApplication-&gt;dispatchEvent() JROOT/libraries/src/Application/SiteApplication.php:651 9 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;route() JROOT/libraries/src/Application/SiteApplication.php:244 10 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:320 11 Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() JROOT/includes/app.php:58 12 require&#95;once() JROOT/index.php:51  I’m experiencing an error when trying to purchase products using PayPal.  This issue started after updating to the latest version. It did not occur in previous versions, so it appears to be a regression.")*

You can download fix here, just found: [ securitycheck.protegetuordenador.com/dow...uritycheck-5-1-0-fix](https://securitycheck.protegetuordenador.com/downloads/securitycheck/securitycheck-5-1-0-fix)

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkxMDY1OS1lcnJvci1ieS1idWluZy1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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.051 seconds

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