Forums / General / blank accounts ?

blank accounts ?

Author Message

Andre Felipe Machado

Monday 21 February 2005 8:49:12 am

Hello,
I am receiving some admin emails notifying about BLANK ACCOUNTS.
It seems that it happens randomly.
Some users get normal accounts and others not.
Actually, there are blank accounts at the admin users management, too.
Why is this happening?
How could I correct this?
Ezpublish 3.5.0 is the version.
Regards.
Andre Felipe

---
A Debian user never dies. Issues a last command:
shutdown -h now

http://www.techforce.com.br

Andre Felipe Machado

Thursday 03 March 2005 6:23:45 am

Hello,
Do you have any hint about this?
I still continue to see new blank user accounts in Ezpublish.
This will lead users away, because they lost their work in registering.
Regards.
Andre Felipe

---
A Debian user never dies. Issues a last command:
shutdown -h now

http://www.techforce.com.br

Ɓukasz Serwatka

Thursday 03 March 2005 11:02:56 pm

Hi Andre

Do you know how to reproduce this? What are your user settings, roles, polices?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Brendan Pike

Thursday 03 March 2005 11:27:49 pm

Hi Lukasz

I've got this consistently happening on a current site I'm developing. No details of the new user is stored at all, no email is sent to the new user, the admin still receives a "new user" notification email. A user object is created in eZp but all details are blank. I believe all my settings in these areas you mnetion are still default. Feel free to email me directly if need be, I will clarify anything you may need.

Brendan

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Andrea Palladino

Thursday 03 March 2005 11:45:26 pm

Hi Lukasz,

I have the some problem, with a production site based on 3.5.0.
More, when runcronjobs run, one blank user is created as draft.

Note that the registering user do not recive no mail, because the account e.mail is not stored (I recive the welcome email as root, with the 'To' blank).

Bye

Brendan Pike

Friday 04 March 2005 12:01:07 am

I can help solve your the mystery of a user draft been created with each ronjob, I have experienced this when somewhere in the content there is a link to "/user/register". If so the link checker visits the link and creates a blank. I've reported this long ago. The blank user is still a bug though I believe.

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Kristian Hole

Friday 04 March 2005 10:02:17 am

I found a bug in notification (which probably is not related thou :S). In some cases users get blank notificaion emails. Unfortunately the fix was to late for 3.5.1. Here are the patch for it:

Index: kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigesthandler.php
===================================================================
--- kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigesthandler.php      (revision 10863)
+++ kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigesthandler.php      (revision 10864)
@@ -182,7 +182,7 @@
     function &fetchUsersForDigest( $timestamp )
     {
         return eZPersistentObject::fetchObjectList( eZNotificationCollectionItem::definition(),
+                                                    null, array( 'send_date' => array( '', array( 1, $timestamp ) ) ),
-                                                    array(), array( 'send_date' => array( '', array( 1, $timestamp ) ) ),
                                                     array( 'address' => 'asc' ),null,
                                                     false,false,array( array( 'operation' => 'distinct address' ) ) );

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Eirik Alfstad Johansen

Sunday 06 March 2005 7:25:16 am

I'm experiencing the exact same problem as described in this thread, and I too am running 3.5.0. However, I'm unable to figure out why some emails are blank and some are not.

I've reported the bug here:

http://www.ez.no/bugs/view/6311

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Kristian Hole

Monday 07 March 2005 12:35:27 am

Can you describe in steps what you need to do to reproduce this?

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Eirik Alfstad Johansen

Monday 07 March 2005 12:57:52 am

Hi Kristian,

1. Ordering a product, I get to the shop/basket view which requires logging in by a guest user. Here I click the Register button.
2. I then fill out the required data and hit the "Register" button.

I've filled out the user form with the exact same data twice with a couple of days separation. The first time, all went well. However, when I deleted the account and tried again a few days later, all fields came up blank. Then, when I tried again just now, it works again. Needless to say, I'm pulling my hair out. :)

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Brendan Pike

Monday 07 March 2005 4:31:29 am

I installed a default fresh 3.5.0 install to test this on my enviroment. Site registration then worked fine. I returned to the site I was developing and restest user registration there. It worked fine this time? Very confusing as it failed consistently several times in a row last I tried. I'll delete and redo a few more signups tomorrow as this worries me a lot. An existing client running 3.5.0 had a recent experience where one of their established users lost all account information from the database except the object id? I had to re-instate a previous back. :(

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Kristian Hole

Tuesday 08 March 2005 6:41:25 am

Unfortunately i don't have time to check this up right now, but i'll notify the bug-team about this.

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Eirik Alfstad Johansen

Tuesday 08 March 2005 6:58:28 am

Thanks, Kristian. Also, please make them aware of how serious this bug is to production sites which makes use of a public user registration process.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Frederik Holljen

Wednesday 09 March 2005 2:04:38 am

Guys,

I've tried to reproduce this bug using 3.5.1 but was unsuccessful. I think what you are experiencing might be related to a problem that was fixed in rev. 10870.
The problem was that when you registered a user while already logged in, the new user would be confused with the user you where currently logged in with.

Could you please try, and see if this indeed is the problem? Upgrading to 3.5.1 should resolve the issue.

Please add any further comments to the bug report.

Frederik

Eirik Alfstad Johansen

Wednesday 09 March 2005 5:22:15 am

Hi Frederik,

Please see my reply in the bug report.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Kirill Subbotin

Tuesday 15 March 2005 2:36:38 am

I've fixed this in all branches: stable/3.4, stable/3.5, unstable/3.6 from rev. 11065

Blank user accounts were created because of losing session variable "RegisterUserID". It happened because session data was rewritten in case of HTTP errors.
So if your site produced HTTP errors (for example as a result of wrong settings or wrong templates) it could cause creating of blank user accounts.

I've added global variable "eZRequestError" that is set to true in case of an error. And now session data is not written in this case and user registration works fine.

So please update and test it!

Kirill Subbotin

Wednesday 16 March 2005 2:38:55 am

By the way here is the patch, its pretty small:

Modified: stable/3.5/kernel/error/view.php
===================================================================
--- stable/3.5/kernel/error/view.php	2005-03-15 09:40:25 UTC (rev 11067)
+++ stable/3.5/kernel/error/view.php	2005-03-15 09:53:12 UTC (rev 11068)
@@ -66,6 +66,9 @@
 
 $embedContent = false;
 
+$GLOBALS["eZRequestError"] = true;
+eZDebug::writeError( "Error ocurred using URI: " . $_SERVER['REQUEST_URI'] , "error/view.php" );
+
 // if ( $errorType == 'kernel' )
 {
     $errorINI =& eZINI::instance( 'error.ini' );

Modified: stable/3.5/lib/ezutils/classes/ezsession.php
===================================================================
--- stable/3.5/lib/ezutils/classes/ezsession.php	2005-03-15 09:40:25 UTC (rev 11067)
+++ stable/3.5/lib/ezutils/classes/ezsession.php	2005-03-15 09:53:12 UTC (rev 11068)
@@ -90,6 +90,12 @@
 function eZSessionWrite( $key, $value )
 {
 //    include_once( 'lib/ezdb/classes/ezdb.php' );
+
+    if ( isset( $GLOBALS["eZRequestError"] ) && $GLOBALS["eZRequestError"] )
+    {
+        return;
+    }
+
     $db =& eZDB::instance();
     $ini =& eZIni::instance();
     $expirationTime = time() + $ini->variable( 'Session', 'SessionTimeout' );

Andre Felipe Machado

Monday 21 March 2005 4:13:56 am

Hello
Is there a safe way to use this correction on 3.5.0?
As the upgrade process is too risky, and the solution is not at 3.5.1, maybe it is better to wait for 3.5.2.
But the problem is grave for the visitors. I am receiving complaints from some.
Many blank accounts are being created at my site.
when 3.5.2 become official, will there be a upgrade path / script from 3.5.0 to 3.5.2?
Will I have to install 3.5.1 just to upgrade to 3.5.2?
Regards.
Andre Felipe

---
A Debian user never dies. Issues a last command:
shutdown -h now

http://www.techforce.com.br

Guillaume COLSON

Thursday 28 April 2005 7:07:47 am

Hello,

I'm encountering the same problem but can't manage to fix it with the corrections given by Kirill Subbotin.
Some accounts created are blank : nothing is stored but an account is created and an email with no information is sent to the admin. All of these "blank accounts" were created under IE6 and the PCs on which the problem appeared always have the problem. But some machine with IE6 doesn't encounter any trouble... It doesn't seem to be OS dependent.
The different versions used are :
eZ 3.4.1
php 4.3.3

I tried to fix by changing the following files :
- kernel/error/view.php
- lib/ezutils/classes/ezsession.php
and I then flush the caches.
Is there anything I forgot or is there other potential problems, linked to my version of eZPublish for example, that I have to check?

Thanks,

Guillaume

Eirik Alfstad Johansen

Thursday 28 April 2005 7:19:44 am

I never got around to implementing the fix suggested by Kirill. I did, however, implement the fix suggested by Fredrik, and it seems to have done the trick. You might want to try that.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/