textfile LoginHandler

textfile LoginHandler

Monday 19 January 2009 10:28:56 am - 4 replies

Modified on Monday 19 January 2009 10:29:37 am by Sonia Sanchez

Author Message

André R.

Monday 19 January 2009 12:10:03 pm

If this is locally or developer server / setup: Enable error output for php in it's php.ini file.
Then you'll probably get some more useful debug output.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Carlos Revillo

Monday 19 January 2009 12:51:08 pm

Hi. I've just tried to reproduce your situation, because in a few days we'll need to work with text files for login :)

I've done what Andre said and got this error.

Fatal error: Using $this when not in object context in /var/www/ez1/kernel/classes/datatypes/ezuser/eztextfileuser.php on line 252

After you fix this, you'lll get same error at line 291.

What have worked for me is to change line 252 from

$existUser = $this->fetchByName( $login );

to

$existUser = ezUser::fetchByName( $login );

and line 291 from

$user = $this->create( $userID );

to

$user = eZUser::create( $userID );

I'm working with the trunk version of this file, so, is this maybe a bug?

Hope it helps.

Kristof Coomans

Monday 19 January 2009 11:13:43 pm

http://issues.ez.no/14270

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Sonia Sanchez

Tuesday 20 January 2009 12:50:18 am

Thank you! The bug is solved and all goes ok! ;)

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.