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

#   Redirect to login page if user not logged in

##

- **[PigeonTech](/forum/user/35279-pigeontech "View PigeonTech's Profile")**
- [![PigeonTech's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35279-pigeontech "View PigeonTech's Profile") Topic Author
- [ Offline](/forum/user/35279-pigeontech)

Less More

- Posts: 35
- Thank you received: 0
-
-

11 years 9 months ago [\#192122](#192122) by [PigeonTech](/forum/user/35279-pigeontech "View PigeonTech's Profile")  *[Redirect to login page if user not logged in](/forum/33-customers/875239-redirect-to-login-page-if-user-not-logged-in#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 . 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.")* was created by *[PigeonTech](/forum/user/35279-pigeontech "View PigeonTech's Profile")*

-- 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 &lt;a href="/cart-display"&gt;. 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzUyMzktcmVkaXJlY3QtdG8tbG9naW4tcGFnZS1pZi11c2VyLW5vdC1sb2dnZWQtaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 9 months ago [\#192176](#192176) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Redirect to login page if user not logged in](/forum/33-customers/875239-redirect-to-login-page-if-user-not-logged-in#192176 "-- 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 . 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.")*

Hi,

You can update your HikaShop version and this is already handled ![;)](/media/kunena/emoticons/24.png ";)")

The following user(s) said Thank You: [PigeonTech](/forum/user/35279-pigeontech "View PigeonTech's Profile")

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

- **[PigeonTech](/forum/user/35279-pigeontech "View PigeonTech's Profile")**
- [![PigeonTech's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35279-pigeontech "View PigeonTech's Profile") Topic Author
- [ Offline](/forum/user/35279-pigeontech)

Less More

- Posts: 35
- Thank you received: 0
-
-

11 years 9 months ago [\#192344](#192344) by [PigeonTech](/forum/user/35279-pigeontech "View PigeonTech's Profile")  Replied by *[PigeonTech](/forum/user/35279-pigeontech "View PigeonTech's Profile")* on topic *[Redirect to login page if user not logged in](/forum/33-customers/875239-redirect-to-login-page-if-user-not-logged-in#192344 "-- 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 . 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzUyMzktcmVkaXJlY3QtdG8tbG9naW4tcGFnZS1pZi11c2VyLW5vdC1sb2dnZWQtaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 8 months ago [\#192368](#192368) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Redirect to login page if user not logged in](/forum/33-customers/875239-redirect-to-login-page-if-user-not-logged-in#192368 "-- 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 . 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.")*

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](/forum/user/35279-pigeontech "View PigeonTech's Profile")

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

- **[PigeonTech](/forum/user/35279-pigeontech "View PigeonTech's Profile")**
- [![PigeonTech's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35279-pigeontech "View PigeonTech's Profile") Topic Author
- [ Offline](/forum/user/35279-pigeontech)

Less More

- Posts: 35
- Thank you received: 0
-
-

11 years 8 months ago [\#192759](#192759) by [PigeonTech](/forum/user/35279-pigeontech "View PigeonTech's Profile")  Replied by *[PigeonTech](/forum/user/35279-pigeontech "View PigeonTech's Profile")* on topic *[Redirect to login page if user not logged in](/forum/33-customers/875239-redirect-to-login-page-if-user-not-logged-in#192759 "-- 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 . 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzUyMzktcmVkaXJlY3QtdG8tbG9naW4tcGFnZS1pZi11c2VyLW5vdC1sb2dnZWQtaW4/dG1wbD1tYXJrZG93bg==) 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.068 seconds

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