remove product from cart, have this error 0 stripslashes(): Argument #1 ($string

  • Posts: 36
  • Thank you received: 2
3 weeks 23 hours ago #372665

-- url of the page with the problem -- : www.classicbikesregis.it/carrello.html
-- HikaShop version -- : 6.5.1
-- Joomla version -- : 4.4.14
-- PHP version -- : 8.3.29
-- Browser(s) name and version -- : ALL
-- Error-message(debug-mod must be tuned on) -- : 0
STRIPSLASHES(): ARGUMENT #1 ($STRING) MUST BE OF TYPE STRING, ARRAY GIVEN

Home page

Hi, let me give you an example: I'm logged in and I have 3 products in my cart. If I remove one (click on Trash) I get:
0 stripslashes(): Argument #1 ($string) must be of type string, array given
Please can you help me?
Hika shop already reinstalled!

Attachments:

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

  • Posts: 86027
  • Thank you received: 14170
  • MODERATOR
3 weeks 16 hours ago #372667

Hi,

The message you pasted is only the first line of the error, so it tells us the function that failed (stripslashes) but not where it is called from. To find the cause we need the full error, with the file path and the line number.

Please set your error reporting to Maximum and debug system to On in the Joomla Global Configuration, then reproduce the trash click and copy the whole error message here (it will then show something like ".../file.php on line xxx").

This matters because HikaShop itself calls stripslashes in only one place, the file upload handler, which is not used at all when a product is removed from the cart. So the file and line will almost certainly point to another extension or to a template override on your site, and once we see them we can tell you exactly what to change.

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

  • Posts: 36
  • Thank you received: 2
3 weeks 57 minutes ago #372675

Hi Nicolas, I think it all depends on Securitysystem plugin, now that I have uninstalled it does not give me the problem but I am not sure to keep the site without security, in case you can suggest me 100% compatible security components with HIKA Shop?
Thank you

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

  • Posts: 86027
  • Thank you received: 14170
  • MODERATOR
2 weeks 6 days ago #372680

Hi,

This looks like a bug in the Securitysystem plugin, not that the plugin is incompatible with HikaShop.
You should update the plugin, and report the problem to the developer.
You should be able to use any security component with HikaShop.

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

Time to create page: 0.181 seconds
Powered by Kunena Forum