Redirect to login page if user not logged in

  • Posts: 35
  • Thank you received: 0
9 years 8 months ago #192122

-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5

I have a link from an image that points to cart-display <a href="/cart-display">. My problem is if a user clicks the link when not logged in it re-directs to a blank page with the text Please login first.

I could use some php code to recognise when the link is clicked and force a redirect to the login page but I wondered if there is a setting on Hikashop I can use instead.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #192176

Hi,

You can update your HikaShop version and this is already handled ;)

The following user(s) said Thank You: PigeonTech

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

  • Posts: 35
  • Thank you received: 0
9 years 8 months ago #192344

That worked, thanks very much.

Next problem I noticed if I put the wrong password in it takes me to an error page Error: 0 - Cannot open file for writing log

Any ideas how I can get round this?

Gareth

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #192368

Hi,

That is more a Joomla related isue, please check in your Joomla global configuration under the "system" tab that the path to log folder option is correct.

The following user(s) said Thank You: PigeonTech

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

  • Posts: 35
  • Thank you received: 0
9 years 8 months ago #192759

Thanks. It was a problem with the error log file. When I changed the ftp account to a new user it kept the old root address for the logs folder in Joomla. All sorted now.

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

Time to create page: 0.087 seconds
Powered by Kunena Forum