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

#   Not logged in wishlist message wrong

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 9 months ago [\#143370](#143370) by [riskin](/forum/user/31047-riskin "View riskin's Profile")  *[Not logged in wishlist message wrong](/forum/41-wishlist/865753-not-logged-in-wishlist-message-wrong#143370 "-- url of the page with the problem -- :   www.ushistorytouring.com/tour-registration/2014-summer-tour  -- HikaShop version -- : HikaShop Essential: 2.2.3 -- Joomla version -- :3.2.2 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  When not logged in, clicking on the Add to Wishlist button on a product page (see above url) I get only a blank page with the word: notLogged  That isn't in the language file. The page does not go to LOGIN&#95;REQUIRED&#95;FOR&#95;WISHLISTS=&quot;You must be logged in to use the wishlists.&quot; as the code would seem to indicate it should. When logged in the wishlist is shown correctly.")* was created by *[riskin](/forum/user/31047-riskin "View riskin's Profile")*

-- url of the page with the problem -- : [ www.ushistorytouring.com/tour-registration/2014-summer-tour](http://www.ushistorytouring.com/tour-registration/2014-summer-tour)
-- HikaShop version -- : HikaShop Essential: 2.2.3
-- Joomla version -- ![:3](/smile3.gif ":3").2.2
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- : Error_message

When not logged in, clicking on the Add to Wishlist button on a product page (see above url) I get only a blank page with the word: notLogged

That isn't in the language file. The page does not go to LOGIN_REQUIRED_FOR_WISHLISTS="You must be logged in to use the wishlists." as the code would seem to indicate it should. When logged in the wishlist is shown correctly.

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 9 months ago [\#143406](#143406) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Not logged in wishlist message wrong](/forum/41-wishlist/865753-not-logged-in-wishlist-message-wrong#143406 "-- url of the page with the problem -- :   www.ushistorytouring.com/tour-registration/2014-summer-tour  -- HikaShop version -- : HikaShop Essential: 2.2.3 -- Joomla version -- :3.2.2 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  When not logged in, clicking on the Add to Wishlist button on a product page (see above url) I get only a blank page with the word: notLogged  That isn't in the language file. The page does not go to LOGIN&#95;REQUIRED&#95;FOR&#95;WISHLISTS=&quot;You must be logged in to use the wishlists.&quot; as the code would seem to indicate it should. When logged in the wishlist is shown correctly.")*

Hi there,

Actually, the "add to wishlist" button should not be displayed if you are not logged.
Did you edited anything that forces the display?

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 9 months ago -  12 years 9 months ago [\#143515](#143515) by [riskin](/forum/user/31047-riskin "View riskin's Profile")  Replied by *[riskin](/forum/user/31047-riskin "View riskin's Profile")* on topic *[Not logged in wishlist message wrong](/forum/41-wishlist/865753-not-logged-in-wishlist-message-wrong#143515 "-- url of the page with the problem -- :   www.ushistorytouring.com/tour-registration/2014-summer-tour  -- HikaShop version -- : HikaShop Essential: 2.2.3 -- Joomla version -- :3.2.2 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  When not logged in, clicking on the Add to Wishlist button on a product page (see above url) I get only a blank page with the word: notLogged  That isn't in the language file. The page does not go to LOGIN&#95;REQUIRED&#95;FOR&#95;WISHLISTS=&quot;You must be logged in to use the wishlists.&quot; as the code would seem to indicate it should. When logged in the wishlist is shown correctly.")*

The only changes to the code I have made are minor - language overrides and a break for spacing. I have the most recent download since I just purchased the software.

I have now set in Configuration for the wishlist button to not show to guests. That's fine for my purposes, however, you should know that if someone sets the button to show for guests, the glitch I described above occurs.

Last edit: 12 years 9 months ago by [riskin](/forum/user/31047-riskin "View riskin's Profile").

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 9 months ago [\#144611](#144611) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Not logged in wishlist message wrong](/forum/41-wishlist/865753-not-logged-in-wishlist-message-wrong#144611 "-- url of the page with the problem -- :   www.ushistorytouring.com/tour-registration/2014-summer-tour  -- HikaShop version -- : HikaShop Essential: 2.2.3 -- Joomla version -- :3.2.2 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  When not logged in, clicking on the Add to Wishlist button on a product page (see above url) I get only a blank page with the word: notLogged  That isn't in the language file. The page does not go to LOGIN&#95;REQUIRED&#95;FOR&#95;WISHLISTS=&quot;You must be logged in to use the wishlists.&quot; as the code would seem to indicate it should. When logged in the wishlist is shown correctly.")*

I finally reproduced this issue, my bad for not catching it early.
We'll work on it and come back when it's fixed.

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 9 months ago [\#144621](#144621) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Not logged in wishlist message wrong](/forum/41-wishlist/865753-not-logged-in-wishlist-message-wrong#144621 "-- url of the page with the problem -- :   www.ushistorytouring.com/tour-registration/2014-summer-tour  -- HikaShop version -- : HikaShop Essential: 2.2.3 -- Joomla version -- :3.2.2 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  When not logged in, clicking on the Add to Wishlist button on a product page (see above url) I get only a blank page with the word: notLogged  That isn't in the language file. The page does not go to LOGIN&#95;REQUIRED&#95;FOR&#95;WISHLISTS=&quot;You must be logged in to use the wishlists.&quot; as the code would seem to indicate it should. When logged in the wishlist is shown correctly.")*

We solved this issue.
It was actually working only with the ajax mode enable. So you can either use this mode or change the code in componenents/com_hikashop/controllers/product.php:
Code:

echo 'notLogged'; exit;

By: Code:

if($tmpl!='component'){ if(!empty($_SERVER['HTTP_REFERER'])){ if(strpos($_SERVER['HTTP_REFERER'],HIKASHOP_LIVE)===false &amp;&amp; preg_match('#^https?://.*#',$_SERVER['HTTP_REFERER'])) return false; $app-&gt;redirect( str_replace('&amp;popup=1','',$_SERVER['HTTP_REFERER'])); } }else{ echo 'notLogged'; exit; }

It should work!

The following user(s) said Thank You: [riskin](/forum/user/31047-riskin "View riskin's Profile")

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 9 months ago [\#144677](#144677) by [riskin](/forum/user/31047-riskin "View riskin's Profile")  Replied by *[riskin](/forum/user/31047-riskin "View riskin's Profile")* on topic *[Not logged in wishlist message wrong](/forum/41-wishlist/865753-not-logged-in-wishlist-message-wrong#144677 "-- url of the page with the problem -- :   www.ushistorytouring.com/tour-registration/2014-summer-tour  -- HikaShop version -- : HikaShop Essential: 2.2.3 -- Joomla version -- :3.2.2 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  When not logged in, clicking on the Add to Wishlist button on a product page (see above url) I get only a blank page with the word: notLogged  That isn't in the language file. The page does not go to LOGIN&#95;REQUIRED&#95;FOR&#95;WISHLISTS=&quot;You must be logged in to use the wishlists.&quot; as the code would seem to indicate it should. When logged in the wishlist is shown correctly.")*

Thank you for pursuing this. Since it is up to the client, I don't know yet which way we will go, but it is nice to see we now have the option.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg2NTc1My1ub3QtbG9nZ2VkLWluLXdpc2hsaXN0LW1lc3NhZ2Utd3Jvbmc/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.069 seconds

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