[FEU] remember me not woking, mcrypt not detected

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
kazimierz
New Member
New Member
Posts: 8
Joined: Thu Nov 12, 2009 11:54 am

[FEU] remember me not woking, mcrypt not detected

Post by kazimierz »

Hi!
I have got a problem with FrontEndUsers "remember me" - under "use cookies to remember login details" in built-in authentication settings I see:

Code: Select all

Note:  This uses the mcrypt functions for encryption purposes, and they could not be detected on your install.
When there is mcrypt enabled!
phpinfo() says: '--with-mcrypt'

Server: Apache 2.2.16, PHP 5.2.12, MySQL 5.0.91, mcrypt 2.5.8
CMS: 1.8.2, FEU 1.12 (it was in earlier versions too - from 1.9), CGExtensions 1.19.5
phpinfo available here: http://horda.org.pl/phpinfo.php (with mcrypt test on the beginning)

Both "Use cookies" settings are on. Changing this setting makes _siteprefs / FrontEndUsers_mapi_pref_cookiename EMPTY, when I add there some text the "remember me" box on login form shows up but still did not work. I am logged in for "session timeout" time but the cookie is created. Changing "use cookies" makes it EMPTY again.

What may I do to turn on "remember me"?
May be it is sth with CGExtensions?
And - any other info needed?
Last edited by kazimierz on Thu Feb 10, 2011 4:54 pm, edited 3 times in total.
namloc
Forum Members
Forum Members
Posts: 10
Joined: Sun May 13, 2007 7:05 pm

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detected

Post by namloc »

I have the same problem , phpinfo sya I have mcrypt 2.5.8 installed but its not detected by Feu
namloc
Forum Members
Forum Members
Posts: 10
Joined: Sun May 13, 2007 7:05 pm

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detected

Post by namloc »

OK I have found that there is a record in cms_sitepref called cookiename , when it is NULL , as it appears to be in install then the Remember me checkbox will not appear on the login form
there does not appear to be a setting box for it , so when I set the value of cookiename to something the remember me check box appear , however the cookie expires very quickly , so next task is to find the cookie expiry value
kazimierz
New Member
New Member
Posts: 8
Joined: Thu Nov 12, 2009 11:54 am

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detected

Post by kazimierz »

I checked trying to set cookiename and you are still logged out after session timeout (in seconds). So that does not work...
ESBertrand
Forum Members
Forum Members
Posts: 21
Joined: Tue Feb 02, 2010 5:02 am

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detected

Post by ESBertrand »

We have the same problem, since our upgrade to 1.8.2 (we were on 1.6.7 before, I believe).  We also have mcrypt enabled (v2.5.7).  I checked the siteprefs table (didn't see a "cms_sitepref") and did find a "FrontEndUsers_mapi_pref_cookiename" setting, which was set to 0 (not "null").  I changed it to a word but still do not see the Remember me? checkbox.  Does anything have to be restarted?

This is really bothering users on our site, so any help would be appreciated.

Erik
jagro
New Member
New Member
Posts: 8
Joined: Fri Oct 01, 2010 11:38 pm

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detected

Post by jagro »

Same problem here. Fresh installation of CMSMS 1.7.1, and mcrypt 2.6.8.
Valid functioning of mcrypt tested:
print "\n";
echo "HALLO";
#phpinfo();

$key = "this is a secret key";
$input = "Let us meet at 9 o'clock at the secret place.";

$encrypted_data = mcrypt_ecb (MCRYPT_3DES, $key, $input, MCRYPT_ENCRYPT);

print "K: $key\n";
print "I: $input\n";
print "ED: $encrypted_data\n";

print "\n";

Results in:

HALLOK: this is a secret key
I: Let us meet at 9 o'clock at the secret place.
ED: \ºþê™Ï’áž(v¹FýaõFËU³æçSäÇÚÖzßù5Qì<±_™-:Í

However, FEU still shows that mcrypt has not been installed.
Changing "FrontEndUsers_mapi_pref_cookiename" in cms_siteprefs did not work.
Testing the template shows that the variable {if isset($input_rememberme)} does not pass correctly. It is set, but nog recognized as such....
Wonder what I could do to make this work....
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detected

Post by manuel »

Experiencing the same issue here...

Reply from my webhost: We found that php-mcrypt is already installed in your server.

PHP = PHP Version 5.2.13
mcrypt = enabled - Version 2.5.7

cmsms    1.9
CGExtensions    1.21.5
FrontEndUsers    1.12.6
CustomContent    1.7.3

FEU Builtin Authentication message:
Note: This uses the mcrypt functions for encryption purposes, and they could not be detected on your install. Please contact your server administrator.

The cookie that is being set: (this is the cookie that gets removed when the browser is closed)
cookie name: feu_sessionid

ps: i can't seem to disable the feu_sessionid cookie by changing the "Use cookies to keep logins alive" to "No"
ps2: I notice this cookie is only created for the "www.mydomain.com" and not for "mydomain.com"

The cookie that's supposed to "remember login details" isn't being created when setting the "Use cookies to remember login details" to "Yes" (despite of the mcrypt not detected message) and no checkbox appears to allow visitors to activate this.

In MySQL: FrontEndUsers_mapi_pref_cookiename:
sitepref_value: (this is empty)
create_date: null
modified_date: null

After changing the sitepref_value to "notnull", the "Remember me on this pc" checkbox is indeed visible.
A cookie named "notnull" was created.
After restarting the browser the cookie is still present but the user is no longer logged in to the website.
When trying to re-log in the message "This user is already logged in" is shown (i do have the option "Allow users to login more than once:" disabled)

Could it be that just the function to check for a cookie is not working properly? maybe a different name should be set (instead of "notnull"?)

FrontEndUsers_mapi_pref_cookie_keepalive
sitepref_value: 0

changed sitepref_value to 1
Nothing changed...

Greetings,
Manuel
Do you like your open source cms? Buy from the CMSMS partners || Donate
kazimierz
New Member
New Member
Posts: 8
Joined: Thu Nov 12, 2009 11:54 am

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detected

Post by kazimierz »

Btw: I've tested it on clean, brand new cms installation with feu+needed modules installed. Nothing changes...
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detected

Post by manuel »

Dear All,

Could someone who has the "Use cookies to remember login details" setup working post what the default sitepref_value for FrontEndUsers_mapi_pref_cookiename is? (you can find this in your MySQL database using PHPMyAdmin or similar tools)

Greetings,
Manuel
Do you like your open source cms? Buy from the CMSMS partners || Donate
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detected

Post by manuel »

in the mean time i've upgraded to cmsms 1.9.1 and reinstalled the feu module.
The error message is still there but after performing the steps described below everything is working perfectly (even though the "mycrypt not detected" error message is still showing)

- Use cookies to keep logins alive: Yes
- Use cookies to remember login details: Yes
- The name of the cookie: memberlogin (I overlooked this before and after properly filling this field out in stead of trying to change it in the mysql db, everything is working perfectly so the disappearing cookies could be caused by just simply not filling this out imho  ;D ) The default value was "0"

Greetings,
Manuel
Do you like your open source cms? Buy from the CMSMS partners || Donate
jagro
New Member
New Member
Posts: 8
Joined: Fri Oct 01, 2010 11:38 pm

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detect

Post by jagro »

Thanks for the info manuel.
I changed the value in the siteprefs as well, although the option is not shown in any of the admin pages - I cannot find it anyways.
The value is not that important, it can be any word.

However.... even though the cookie is actually created and present after a restart of the browser, it is not recognized by the website, so I still have to login again.
In my case the cookie is also registered for domain.nl instead of www.domain.nl
But, the Host-value that is stored in the cookie is set to www.domain.nl.

Any ideas?
kazimierz
New Member
New Member
Posts: 8
Joined: Thu Nov 12, 2009 11:54 am

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detect

Post by kazimierz »

In my case the cookiename field is not available. In clean cmsms instalation it is and it works so I think I only have to reainstall (and clear database) FEU.
Problem is that export does not work either...
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detect

Post by manuel »

@jagro:
If you have upgraded to the latest cmsms version and re-installed the latest CGExtensions - FrontEndUsers - CustomContent modules, I don't know what else you could do...
You should be able to see it by navigating to Users & Groups » Frontend User Management » Builtin Authentication » "The name of the cookie"

@kazimierz:
Did you try upgrading the cms & modules before exporting? (backup files and db first ;) )
If all else fails, i guess you could exctract the user information from the mysql database... I'm not sure however if all the feu data is located in the same table...

Greetings,
Manuel
kazimierz
New Member
New Member
Posts: 8
Joined: Thu Nov 12, 2009 11:54 am

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detect

Post by kazimierz »

Okay, I have not checked for this "cookiename" property for some time - it is available now! (and it works)
But it was gone when I wrote my first post in this topic - for at least few releases.

exporting still shows:
DEBUG: FATAL, could not find property definition for returnto
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

Re: [FEU, CGExt.?] remember me not woking, mcrypt not detect

Post by manuel »

The question is in Dutch but the reply is in english... I guess you'll have to manually correct some stuff in the MySQL db...
http://forum.cmsmadesimple.org/viewtopi ... 9&p=217421

Greetings,
Manuel
Post Reply

Return to “Modules/Add-Ons”