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

  • Posts: 35
  • Thank you received: 2
13 hours 45 minutes 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: 85884
  • Thank you received: 14124
  • MODERATOR
7 hours 5 minutes 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.

Time to create page: 0.202 seconds
Powered by Kunena Forum