Joomla! Discussion Forums



It is currently Fri Nov 27, 2009 10:21 am (All times are UTC )

 




Post new topic Reply to topic  [ 7 posts ] 
Author Message
Posted: Thu Nov 05, 2009 10:59 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jun 05, 2009 8:44 am
Posts: 6
I'm having a problem with the following code:

Code:
if ($array['password'] != $array['password2']) {
   $this->setError( JText::_( 'PASSWORD DO NOT MATCH' ) );
   return false;
}


It's line 391 of user.php (\libraries\joomla\user\) in Joomla 1.5.14.

It renders a 500 page saying 'PASSWORD DO NOT MATCH' instead of a red error bar in the website.

It should be a message to the new user when registering. What's wrong here?


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 11:31 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Online

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
Hi, did you disable the Joomla User Plugin?

Please check if this file exists: libraries/joomla/database/table/user.php.


Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Thu Nov 05, 2009 11:58 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jun 05, 2009 8:44 am
Posts: 6
It is not disabled, no.

If I remove the file it still works and gives the same error.

I do use the usermeta plugin, because I needed extra fields. But nothing was changed on the password fields.

If I disable the usermeta plugin it I also get the same error.


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 12:12 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Online

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
So what did you change? What fields did you add? Where did you add it?

This error is only coming up when all other checks are passed or disabled.

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Thu Nov 05, 2009 12:31 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jun 05, 2009 8:44 am
Posts: 6
In usermeta.php (\plugins\system\usermeta\) I've added some IF conditionals to check whether a field is empty or not. If it is empty 'setError'.

In default.php (com_user \register override in the template) I've added the extra formitems.

That's it actually. The validation using javascript works, but I wan't it to validate serverside also when it occurs that a user-agent has javascript disabled.

So everything validates serverside, I can even use a conditional on password to check whether it's empty or not. But if I put a different password in the 'verify password' inputbox it renders the 500 error page.


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 1:12 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jun 05, 2009 8:44 am
Posts: 6
I've set up a clean 1.5.15 install and installed just the login module.

When I disable javascript in the browser the user validation goes serverside and works until I enter a wrong 'verify password'. Then it gives the 500 error 'PASSWORD DO NOT MATCH'.

So it is Joomla! core related, I suppose.

I have reported this as a bug.


Top
  E-mail  
 
Posted: Fri Nov 20, 2009 2:16 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Sep 22, 2009 6:13 pm
Posts: 1
Hi there, anyone figured out what's the problem?

I had a email verify on the com_user on the beez template and I saw that there's no reference to Jtable...


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

Quick reply

 



Who is online

Users browsing this forum: uglykidjoe, vlester and 40 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group