- Posts: 36
COMMUNITY FORUM
Can't Register
- Dominic Reid
-
Topic Author
- Offline
- Junior Member
Firebug brought up this error:
TypeError: window.onDomReady is not a function
Debug brought up this:
Error loading component: com_user, 1
Call stack
# Function Location
1 JSite->dispatch() JROOT/index.php:42
2 JSite->getParams() JROOT/includes/application.php:158
3 JComponentHelper::getParams() JROOT/includes/application.php:358
4 JComponentHelper::getComponent() JROOT/libraries/joomla/application/component/helper.php:92
5 JComponentHelper::_load() JROOT/libraries/joomla/application/component/helper.php:43
6 JError::raiseWarning() JROOT/libraries/joomla/application/component/helper.php:415
7 JError::raise() JROOT/libraries/joomla/error/error.php:276
Error loading component: com_user, 1
Call stack
# Function Location
1 JSite->dispatch() JROOT/index.php:42
2 JComponentHelper::renderComponent() JROOT/includes/application.php:197
3 JComponentHelper::isEnabled() JROOT/libraries/joomla/application/component/helper.php:335
4 JComponentHelper::getComponent() JROOT/libraries/joomla/application/component/helper.php:74
5 JComponentHelper::_load() JROOT/libraries/joomla/application/component/helper.php:43
6 JError::raiseWarning() JROOT/libraries/joomla/application/component/helper.php:415
7 JError::raise() JROOT/libraries/joomla/error/error.php:276
Component not found
Call stack
# Function Location
1 JSite->dispatch() JROOT/index.php:42
2 JComponentHelper::renderComponent() JROOT/includes/application.php:197
3 JError::raiseError() JROOT/libraries/joomla/application/component/helper.php:337
4 JError::raise() JROOT/libraries/joomla/error/error.php:251
Any help welcome :)
Please Log in or Create an account to join the conversation.
- Goh Yew Hoe
-
- Offline
- Junior Member
- Posts: 39
Please Log in or Create an account to join the conversation.
- Dominic Reid
-
Topic Author
- Offline
- Junior Member
- Posts: 36
Let's find out if we have something else in common other than using K2 2.6.1 Stephen,
I'm using a Gavick template but I checked to see if it happens with a default template and it does.
I was using Joomla 2.6 but upgraded to 2.7 which didn't cure the issue.
I had 404sef installed but uninstalled it which didn't cure it.
I am using cloudflare and tried disabling that which didn't cure it.
I tried disabling mod_rewrite and SEO friendly URL's, no change.
I'm running out of possibilities so it's starting to look a little like K2 trouble, but I'm surprised nobody else is having any trouble.
You?
Please Log in or Create an account to join the conversation.
- Dominic Reid
-
Topic Author
- Offline
- Junior Member
- Posts: 36
I just tested k2 2.6.1 on another website running on a different website and registration worked fine, so it's not a K2 issue specifically it's something to do with a conflict with something else
I have other Gavick modules running, Google adwords, I'm on an amazon cloud server, I have Ari image slider which uses jquery, I'm going to start switching everything off to see if it starts working...
If you could tell me about your set-up I can see if we're running similar stuff
Please Log in or Create an account to join the conversation.
- Dominic Reid
-
Topic Author
- Offline
- Junior Member
- Posts: 36
However this means that users don't get added to K2 automatically, which is a pain.
Please Log in or Create an account to join the conversation.
- Dominic Reid
-
Topic Author
- Offline
- Junior Member
- Posts: 36
If I try to get to the 'my account' page this doesn't work either.
Lefteris, any ideas?
Please Log in or Create an account to join the conversation.
- Dominic Reid
-
Topic Author
- Offline
- Junior Member
- Posts: 36
I'm also getting a 'calendar setup' error coming up now that I didn't have before when I activate K2 user profile!!!!!!!! - which I solved by disabling date of birth in the Joomla user profile, I'm getting quite baffled by this.
Please Log in or Create an account to join the conversation.
- Goh Yew Hoe
-
- Offline
- Junior Member
- Posts: 39
Just compare this file \components\com_k2\templates\register.php from K2 2.5.7 and K2 2.6.x and you will see that all the Joomla 1.6 checks have been removed and replaced with new codes. Updating my template overwrite with K2's new code fixed my registration problem.
But at the same time, I found a new bug when the form's captcha fails and the registration form breaks out of the K2 template and redirects to homepage showing a Joomla registration form instead.
This line of code from K2 2.6.x was the culprit of the new bug.
<form action="<?php echo JURI::root(true); ?>/index.php" enctype="multipart/form-data" method="post" id="josForm" name="josForm" class="form-validate">
I dunno why JURI root was used cause that result in the registration form's url being domain.com/index.php which is obviously wrong.
The old code from K2 2.5.7 is the correct one
<form action="<?php echo JRoute::_('index.php'); ?>" enctype="multipart/form-data" method="post" id="josForm" name="josForm" class="form-validate">
Please Log in or Create an account to join the conversation.
- Goh Yew Hoe
-
- Offline
- Junior Member
- Posts: 39
Using that code as it is results in my url getting redirected to domain.com/index.php but if I change the code to # then it simply appends # to the current url.
Please Log in or Create an account to join the conversation.
- Dominic Reid
-
Topic Author
- Offline
- Junior Member
- Posts: 36
Please Log in or Create an account to join the conversation.
- Goh Yew Hoe
-
- Offline
- Junior Member
- Posts: 39
Please Log in or Create an account to join the conversation.
- Dominic Reid
-
Topic Author
- Offline
- Junior Member
- Posts: 36
yes but it didn't work for me and in fact the code fix you provided was already in register.php which wasn't working.
Dom
Please Log in or Create an account to join the conversation.
- Dominic Reid
-
Topic Author
- Offline
- Junior Member
- Posts: 36
Please Log in or Create an account to join the conversation.
- Dominic Reid
-
Topic Author
- Offline
- Junior Member
- Posts: 36
Thanks in advance.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Paul de Valmency
-
- Offline
- New Member
- Posts: 7
Lefteris Kavadas wrote: You should update your templates according to the bundled files.
Hi Lefteris,
I'm not a huge techie person, so this comment really doesn't help me at all.
Can you explain what you mean and what I have to do to fix this issue please?
Many thanks,
Paul.
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
getk2.org/documentation/tutorials/item/77-k2-template-override-package-comparison
If your template uses overrides and was originally created with an eariler version of the k2 overrides they have been updated and must be changed to work properly.
Please Log in or Create an account to join the conversation.
- Paul de Valmency
-
- Offline
- New Member
- Posts: 7
Just one clarification if I may: I've used the YouTrader template and have not made any alterations to it myself, so is it simply a matter of replacing my current YouTrader template with the new one?
Cheers,
Paul.
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Please Log in or Create an account to join the conversation.
- rajeshatbuzz
-
- Offline
- Junior Member
- Posts: 21
Any help?
When i set - Enable K2 User Profile - No then my registration form working perfectly.
it seems, i will from - getk2.org/documentation/tutorials/item/77-k2-template-override-package-comparison. However i could not understand -
These packages are available so professional (and not only) template developers can use to compare any changes in the K2 files so they can adapt their own custom K2 overrides. Use free programs like FileMerge (included in Mac OS X), WinMerge (Windows), KDiff3 (all platforms) or DiffMerge (all platforms) to pinpoint the changes from version to version.
Please Log in or Create an account to join the conversation.