Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: StefanSultanov on November 11, 2012, 23:00:48

Title: User management problem [SOLVED]
Post by: StefanSultanov on November 11, 2012, 23:00:48
Today patched up my Nautilus to stable version.
Now I have user management problem.

I can't edit users.
Attempting to promote user to publisher access level.
When I enter user's page, all of the fields (previously contained data) are empty.
I try to assign the user to different group and it tells me, that there are fields left blank.
I tried to fill all the fields except password - same message appears.

I thought it was a database issue and made a brand new user registration - same result.
Any ideas?
My site is online and I can provide access.
Title: Re: User management problem
Post by: StefanSultanov on November 12, 2012, 18:37:27
Today I tried to clean cache and hashes.
Afterwards I attempted to create a user straight from control panel.
Created OK, but same blank fields appear.
Please check the attachment

Title: Re: User management problem
Post by: StefanSultanov on November 12, 2012, 19:49:43
Just let me know if I should attempt clean install or something?
Title: Re: User management problem
Post by: azmi2 on November 13, 2012, 09:34:13
COULD WE GIVE LINK TO ANY MODULE WITH MENU.I MEAN I WANT TO CREATE A MENU ITEM WITH LOGIN MODULE.HOW WE CAN DO?


THANKS
Title: Re: User management problem
Post by: webgift on November 13, 2012, 11:51:29
@azmi2 You don't need to do that.
- Elxis 4.x: http://www.sample.com/user/login/
- Elxis 200x.x: http://www.sample.com/login.html

@StefanSultanov A relative issue hasn't been reported yet from an other user. Unfortunately i can't imagine what it's going on there. So why don't you try a clean installation. It's strange that you face such an issue only at the user info page.
Title: Re: User management problem
Post by: hakangur on November 13, 2012, 11:57:30
@azmi2
You don't need to do that.
- Elxis 4.x: http://www.sample.com/user/login/
- Elxis 200x.x: http://www.sample.com/login.html
The links above are dead (404 error).
Title: Re: User management problem
Post by: webgift on November 13, 2012, 12:03:27
@Hakan Gür Replace the sample.com domain by your website, Hakan ;)
Title: Re: User management problem
Post by: StefanSultanov on November 13, 2012, 17:07:01
@webgift
I have no trouble viewing the users from frontend. I read the details and everything.
The only problem is the edit user page in backend, which I had attached previously.
Basically I placed the patch files in the root folder and replaced the .htaccess file accordingly.

I checked the com_user folder and the only changed files are auth methods.
I will go with clean install and write back
Title: Re: User management problem
Post by: hakangur on November 14, 2012, 10:24:44
@Hakan Gür Replace the sample.com domain by your website, Hakan ;)
;D
Title: Re: User management problem
Post by: StefanSultanov on November 18, 2012, 17:25:04
@webgift
Clean install didn't do any good!!!
As I thought about it, the only difference between my elxis installation and others is my Bulgarian translation files.

I had the date field malfunctioning in the users management page and I found that my translation files cause it to stop working.
I corrected it, and the calendar works.

However user management page DOES NOT seem to read the database.
Sure I can omit this issue and work from PHPMyAdmin, but this is not right and I can't let another administrators in.

Bulgarian alphabet is Cyrillic, is it possible an accident entry of Cyrillic character to render some parts of Nautilus out of order?
It happened with the calendar (date) field earlier, so I guess this is the first place to look.

However, when I switched to English, there was no difference.
I'm out of ideas.
Please help!
Title: Re: User management problem
Post by: StefanSultanov on November 18, 2012, 18:18:07
Just now I inspected the source of the page and was surprised!!!
All of the empty fields are containing the correct values!!!
Quote
<div class="elx_form_row">
         <label for="eprlastname" class="elx_form_label" style="width:220px; text-align: left;">Фамилия*</label>
         <input autocomplete="off" name="lastname" id="eprlastname" value="Султанова" title="Фамилия" maxlength="60" class="inputbox" dir="ltr" type="text">
   </div>
However I can not see them!
!?!?!?!?!?!?
When I edit any user, it sees the fields just like me - EMPTY, and naturally displays the "Empty field" message.
I have no clue what is causing this, but I tried to access the page with Chrome instead of Firefox.
Same thing!!!
So it's not cash nor it is a database issue. Something else is happening here and my final guess is JAVA.
I'm updating now and will write back.
Title: Re: User management problem
Post by: StefanSultanov on November 18, 2012, 18:28:04
Running last version of java and no change at all.
Help!
Title: Re: User management problem
Post by: datahell on December 01, 2012, 11:32:28
Just show that...
I will check Elxis later for a possible bug in users management and notify you.
Please wait.
Title: Re: User management problem
Post by: StefanSultanov on December 01, 2012, 16:36:09
Thank you for your reply, datahell!
To add more details to the situation I want to share the following:

After I installed the last version of JAVA, no one answered and I thought, that if I'm the only one to have this problem, it must be the server. Please note, that for the most parts Elxis Aphrodite is working flawlessly on the same server and environment.

I tried clean install again, which went smoothly and without any problems. But no results.
I used the SQL backup from my hosting provider and got locked out from admin panel.
I always write down my passwords and Elxis configuration somewhere safe on my hard drive and I know, I made my Admin account exactly, as it was before the clean install. Even so, I got locked out. (maybe due to mCrypt new key generated - don't know)
Then I tried to search here for instructions how to retrieve my password through PHP MyAdmin and found none.
I did the following:
1. Created new user via user registration form. Created fine without user activation.
2. Changed the account access level via PHP MyAdmin to Administrator.
3. Tried to log in the Backend and failed due to NOT ENOUGH ACCESS RIGHTS. I write this in caps to point it out, because I don't know if this should be like this.
    Even after cleaning cash and all, I still couldn't access.
4. After I slept on it, it came to me that Nautilus actually recognized my password, but didn't read the access level in the database(I changed the "Registered" to "Administrator")
5. Finally I swapped the two users passwords and this way I got to use my Administrator account (ID 1)

Perhaps the above could give some clues and perhaps it's completely irrelevant, but I am still facing the same problem with user management page.
Funny, with the betas it was working fine. Only after installing the stable version I got this issue.

Thank you once again and I'll wait for more info.
God bless you!
Title: Re: User management problem
Post by: datahell on December 01, 2012, 18:43:04
This is something else. If you are absolutely sure you fill-in the correct username/password then you might have a sessions issue or something with the browser. Note that I work on Nautilus every day more than a year now. I had never similar issues on both local and online sites.

Regarding the password.
Passwords generated on other sites will not work in your site. If you perform a mysql import from local site to online server you must also change the ENCRYPT_KEY configuration option to the one in your local site. ENCRYPT_KEY is also used as a password salt, if you change it you wont be able to login any more.

How to reset the password

1. The easy way
Try to login in frontend, if you logged in then the password is correct. Go to the login module or the login page in frontend (user/login/) and click on Password recovery. A new password will be generated and mailed to your email address.

2. The developers way
Open template's index.php, and go to a visible spot.
Code: [Select]
<?php 
$elxis 
eFactory::getElxis();
$encpass $elxis->obj(&#39;Crypt&#39;)->getEncryptedPassword(&#39;12345678&#39;);
echo &#39;pass: <strong>&#39;.$encpass.&#39;</strong><br />&#39;;
?>

Now, refresh the site and copy the value that will display. Go to phpmyadmin and db table elx_users. Find the user you want and edit it. Set as password the one that you have copied. Now you can login using as password 12345678 This password will only work in the current site, as all sites have different value of ENCRYPT_KEY. Different ENCRYPT_KEY generates different encrypted passwords for the same plain text password.

For instance
for ENCRYPT_KEY JqEls8xxLxNOf7nH the encrypted value of 12345678 is: 17b8df5b22433464abf86d886876795048f153da
for ENCRYPT_KEY a1s2d3f4g5 the encrypted value of 12345678 is: d604a6e4ed85f9741247db83876bcbe5a799a6d7

Also this value depends on the encryption method used (mcrypt or xor)

I am going to check if there is something wrong with the users management in backend and I will reply again.


Title: Re: User management problem
Post by: datahell on December 01, 2012, 19:09:17
OK, I just did a check, nothing bad found, everything looks fine. It is a simple edit form.
@StefanSultanov even in your case Elxis does insert the correct values in the form elements, you see them in the page's  source, so it is not the Elxis core that makes the problem. There is nothing to check in the php code for that. So, they are there but something prevents seeing them. What can be that? If it is Elxis fault then CSS or javascript. But I think it it is not as I believe you haven't modified the administration area, except if a file is missing or it is outdated. I think that either you didn't updated Elxis correctly or it is something in your browser.

Debug
To see javascript related errors go with firefox and select Tools -> Web developer -> Errors console. Clean the errors you might see. Hit control+f5 in your browser to refresh the page and see the errors shown in firefox error console.
If nothing found there the next step is to check for php errors. Go to Site -> Logs. And see Elxis errors and warnings logs for related error messages. If logs are disabled enable them from the configuration and re-check.

If you need assistance on understanding the error messages paste them here.
Title: Re: User management problem
Post by: StefanSultanov on December 01, 2012, 19:33:45
Now for the passwords:
I managed to resolve that, the way I described earlier and it worked. I just wanted to share my experience, because I feel it could give you some clues.
I don't use local. With Elxis I always work live. I know it's a bad idea, but that is how much I have trust in your team and the whole Elxis project.
You have proven yourselves through the years to me and that's all of you.

Java Errors: Finally!
Timestamp: 1.12.2012 г. 19:15:04 ч.
Error: TypeError: a is null
Source File: http://www.vestnikar4e.com/includes/js/jquery/jquery-1.8.2.min.js
Line: 2
Quote
/*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function ...
The line is too long to paste it here maximum of 1000 characters allowed.
I can not make anything out of this line, but my next guess is to overwrite the mentioned file with a stable version.
I just did, but I get this:
Quote
Timestamp: 1.12.2012 г. 19:31:32 ч.
Error: TypeError: a is null
Source File: http://www.vestnikar4e.com/includes/js/jquery/jquery-1.8.2.min.js
Line: 2
???

Title: Re: User management problem
Post by: StefanSultanov on December 01, 2012, 19:56:18
Just to add.
There are a lot of suspicious "===" parts all over that line.
I wonder if it has something to do with my past adsense code transformations.
You said somewhere in the forum that adsense is working if you make it one line and it does.
However, (with the betas only) every time I edited the adsense (Advertisements) module on my site I had to paste it clean, because it used to get "////" parts, which prevented it from working.
I can't paste it here because, since updating the filesystem it doesn't change like it used to.
Title: Re: User management problem
Post by: datahell on December 01, 2012, 21:02:22
The === operator means binary equal (or identical), it is fully correct and not a problem.

The expression below will be fulfilled even if a = 0 and b = false
if (a == b) {
  //do
}

The expression below will not be fulfilled if a = 0 and b = false (binary check)
if (a === b) {
  //do
}

"a is null" message is nothing to worry about. It is normal.

I guess you have a js file outdated or you have a browser/firewall issue. Make sure elxis.js and jquery are up-to-date. Also make sure all Elxis libraries are up-to-date.
Title: Re: User management problem
Post by: StefanSultanov on December 01, 2012, 21:35:34
Did the update. No errors this time
only the warning:
Quote
Timestamp: 1.12.2012 г. 21:19:44 ч.
Warning: Unknown property '-moz-box-shadow'.  Declaration dropped.
Source File: http://www.vestnikar4e.com/templates/system/css/standard.css
Line: 155
I updated all files and still no progress.
Finally, after updating the css file itself, I got here:
Quote
TTimestamp: 1.12.2012 г. 21:24:40 ч.
Warning: Unknown property '-moz-box-shadow'.  Declaration dropped.
Source File: http://www.vestnikar4e.com/templates/system/css/standard.css
Line: 155
Title: Re: User management problem
Post by: fivar on December 01, 2012, 22:21:09
I have the same problem with the user manager fields.
All are blank except the group field.
If i refresh the page they show up for a second and then are blank again.
(the site is online, clear installation elxis 4 rev.1364)
Title: Re: User management problem
Post by: StefanSultanov on December 01, 2012, 22:43:54
1358 here.
Good to know I'm not the only one.
Title: Re: User management problem
Post by: datahell on December 01, 2012, 23:19:02
Can you please provide me access to your Elxis administration area?
If yes, send me a personal message with the required access details.
I might also need FTP access if there is something to fix on files.
Title: Bug fix on elxis.js
Post by: datahell on December 02, 2012, 20:48:57
The problem was solved.
It was due to a bug in an auto-complete related feature in elxis.js file .
Download the attached file and replace the existing one: includes/js/elxis.js

@StefanSultanov I applied the patch to your site and now works fine.
@fivar I didn't go to your site. Please apply the patch and the problem will be solved in your site too.

I updated Elxis 4.0 release with this fix.

Sorry for the trouble.

Title: Re: User management problem
Post by: StefanSultanov on December 02, 2012, 20:55:56
 :D ;D :D :D ;D
No trouble at all!!!
Many, many thanks!
Nautilus is one hell of a CMS! The SEO is just outstanding!

Thank you very much!
Title: Re: User management problem [SOLVED]
Post by: fivar on December 02, 2012, 21:01:02
Thank you Datahell
Title: Re: User management problem [SOLVED]
Post by: Amigamerlin on December 02, 2012, 21:28:28
Problem solved for me too !!!
Thanks Datahell.