undefined constant "__PS_BASE_URI__"

  • Posts: 15
  • Thank you received: 2
1 day 14 hours ago #369041

-- Error-message(debug-mod must be tuned on) -- : undefined constant "__PS_BASE_URI__"

Hello there,

Hikashop runs fine.. no complaints... great job.
However, The Google Search Console finds an error: an undefined constant "__PS_BASE_URI__" in com_hikashop/product/cart.php on line 40. Does anyone know how to handle this error or how to define this constant?

Thanks

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

  • Posts: 84543
  • Thank you received: 13745
  • MODERATOR
1 day 10 hours ago #369044

Hi,

If you search for __PS_BASE_URI__ on Google, you'll find that this is a constant from PrestaShop. This constant does not exist in HikaShop.
Also, the product / cart.php view file of HikaShop is located in a folder like this: components/com_hikashop/views/product/tmpl/cart.php
And its override is located in templates/YOUR_TEMPLATE/html/com_hikashop/product/cart.php
Note that in the override file path, there is no "tmpl" between the product and cart parts of the path, like in your message. So it's likely that this comes from a view override of product / cart.php
Maybe some code copy / pasted from a PrestaShop which the website was using before switching to HikaShop or something like that ?

Last edit: 1 day 13 hours ago by nicolas.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum