- Posts: 8743
COMMUNITY FORUM
Invalid URL with K2 User module
- Suba
- Topic Author
- Visitor
12 years 2 months ago #100924
by Suba
Invalid URL with K2 User module was created by Suba
Hi, I have set up a K2 User module and also added a few links to it. It all works fine, except for the "My Account" link, which is a standard built-in link takes me to a 404 page.
You can try it here, go to Min Konto in the menu, then Min Konto submenu (Min Konto is just Norwegian for My Account).
itf-honefoss.no/scream
You can try it here, go to Min Konto in the menu, then Min Konto submenu (Min Konto is just Norwegian for My Account).
itf-honefoss.no/scream
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
12 years 2 months ago #100925
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Invalid URL with K2 User module
Hi. The "My Account" should only be visible to registred users.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Suba
- Topic Author
- Visitor
12 years 2 months ago #100926
by Suba
Replied by Suba on topic Re: Invalid URL with K2 User module
Ofc, I forgot that. Try this login so you can see for yourself:
l/p: Dani/12345
l/p: Dani/12345
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
12 years 2 months ago #100927
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Invalid URL with K2 User module
Try to do the following:
1. Update K2 and Joomla! to their latest stable versions.
2. Compare the K2 User module layout with the one you are using. Make sure that you have not removed/modified code.
1. Update K2 and Joomla! to their latest stable versions.
2. Compare the K2 User module layout with the one you are using. Make sure that you have not removed/modified code.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Suba
- Topic Author
- Visitor
12 years 2 months ago #100928
by Suba
Replied by Suba on topic Re: Invalid URL with K2 User module
I have already Joomla 2.5.6 and K2 2.5.7. If you click the "Profil" link at the top, you'll see that one works fine. I can see whats wrong in the URL, the link takes me to www.itf-honefoss.no/scream/scream/profil/profile?layout=edit, that is 2 times /scream/. Remove one of them manually in browser's address field, and it's fine.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
12 years 2 months ago #100929
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Invalid URL with K2 User module
Hi. Try to open the module layout and look for the following (around line 42):
[code<a href="<?php echo JRoute::_((K2_JVERSION=='16') ? 'index.php?option=com_users&view=profile&layout=edit' : 'index.php?option=com_user&view=user&task=edit'); ?>"><?php echo JText::_('K2_MY_ACCOUNT'); ?></a>
[/code]
This code should exist in your file. If you have made a template override you should place this code inside your override.
[code<a href="<?php echo JRoute::_((K2_JVERSION=='16') ? 'index.php?option=com_users&view=profile&layout=edit' : 'index.php?option=com_user&view=user&task=edit'); ?>"><?php echo JText::_('K2_MY_ACCOUNT'); ?></a>
[/code]
This code should exist in your file. If you have made a template override you should place this code inside your override.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Suba
- Topic Author
- Visitor
12 years 2 months ago #100930
by Suba
Replied by Suba on topic Re: Invalid URL with K2 User module
Thank you.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
12 years 2 months ago #100931
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Invalid URL with K2 User module
You are welcome.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.