Keyword

Can't Register

  • Dominic Reid
  • Dominic Reid's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 11 months ago - 11 years 11 months ago #105154 by Dominic Reid
Can't Register was created by Dominic Reid
Users could register before, now they can't.

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.

More
11 years 11 months ago #105155 by Goh Yew Hoe
Replied by Goh Yew Hoe on topic Re: Can't Register
I have this problem as well. After I click on the register button, I get a 404 error "Component not found". Seems to be a K2 2.6.1 problem?

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

  • Dominic Reid
  • Dominic Reid's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 11 months ago #105156 by Dominic Reid
Replied by Dominic Reid on topic Re: Can't Register
Hi Stephen,

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
  • Dominic Reid's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 11 months ago #105157 by Dominic Reid
Replied by Dominic Reid on topic Re: Can't Register
Hi Stephen,

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
  • Dominic Reid's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 11 months ago - 11 years 11 months ago #105158 by Dominic Reid
Replied by Dominic Reid on topic Re: Can't Register
In the k2 parameters under advanced, I disabled Enable K2 User Profile and the registration form worked again.

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
  • Dominic Reid's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 11 months ago #105159 by Dominic Reid
Replied by Dominic Reid on topic Re: Can't Register
So I'm tearing my hair out here - I can get the login form to work if I disable K2 extended features, which would be OK for now except that confirmation emails don't seem to be being sent to users and people are not added to any K2 user group.

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
  • Dominic Reid's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 11 months ago - 11 years 11 months ago #105160 by Dominic Reid
Replied by Dominic Reid on topic Re: Can't Register
I seem to have lots of josetta_ext plugins that aren't enabled and haven't got xml files attached, could these be anything to do with this issue?

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.

More
11 years 11 months ago #105161 by Goh Yew Hoe
Replied by Goh Yew Hoe on topic Re: Can't Register
Sorry for the late reply. I did some digging and found the culprit, along with another bug. This has to do with the code changes that were made in K2 2.6.x in order to work with Joomla 3.0. Since the template we are using does K2 template overwrite, our registration pages and possibly other pages are using older K2 code and requires an update for those template overwrite.

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.

More
11 years 11 months ago #105162 by Goh Yew Hoe
Replied by Goh Yew Hoe on topic Re: Can't Register
Hmmm actually the usage of <?php echo JURI::root(true); ?>/index.php might not be entirely wrong.

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
  • Dominic Reid's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 11 months ago #105163 by Dominic Reid
Replied by Dominic Reid on topic Re: Can't Register
Any luck yet?

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


Powered by Kunena Forum