Forums / General / What OK button doing in success.tpl - seems bug

What OK button doing in success.tpl - seems bug

Author Message

John Smith

Wednesday 19 August 2009 9:44:25 am

Hi guys,

Can you confirm what "OK" button is doing in the /design/standard/templates/user/success.tpl

<div class="buttonblock">
<form action={"/user/register"|ezurl} method="post">
    <input class="button" type="submit" value="{'OK'|i18n( 'design/standard/user' )}" />
</form>
</div>

Is it me or anybody else figured it out.

I registered to the website from the public website. All seems fine until I hit "OK" button at very last step. Clicking the OK button is redirecting the user to the registration screen again but with a blank entry in the database (ezuser table) totally messing up the database.

André R.

Wednesday 19 August 2009 11:39:22 am

That is true, and its been fixed some months ago in: http://issues.ez.no/12833

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

John Smith

Wednesday 19 August 2009 12:59:43 pm

Hi Andre,

Thanks for the confirmation.

Is there any way by which I can delete the empty entries and sort the ezuser table. I am bit hesitant to do that because I do not know how other tables are linking to ezuser table.

Is there any easy way, because the site is already live and running for few months having some registered users.

It is important to fix the table and related tables now as it might create problem while upgrading in future.

John Smith

Thursday 20 August 2009 6:59:46 am

Anyone please???

André R.

Thursday 20 August 2009 10:02:43 am

Have you tried the internal_drafts_cleanup cronjob?
Is part of [CronjobSettings]Scripts[], so should be perfomed with:

php runcronjobs.php -s <siteaccess_name>

old_drafts_cleanup is not part of that setting, add it and test that as well.

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

John Smith

Friday 21 August 2009 1:05:56 am

Hi Andre,

I ran both scripts. On command line it says

"Cleaned up 0 internal drafts" (from internal_draft_cleanup.php)

"Cleaned up 0 drafts" (from old_draft_cleanup.php)

But it has cleared all the empty entries from the ezuser table.

Cheers, Hopefully now it should be ok to upgrade the software in future????

André R.

Friday 21 August 2009 1:11:09 am

Yes. But do add an update here if you find anything more on this, and we'll look more into it.. ;)

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

John Smith

Friday 21 August 2009 1:23:55 am

Cheers,

I will definately update you, if I find anything...

The site (4.0.6) which I am developing is at very initial stage, but next week sometime people will start registrating to the website and in future it needs upgrading.... Is it ok to move forward as now ezuser table has been fixed or do you advice to rebuild the whole system so to avoid any future complication while upgrading. You are looking around 2000 users registrating in next two months time....

André R.

Friday 21 August 2009 1:36:47 am

This is no problem actually, empty entries in the ezuser table isn't uncommon so it doesn't get you into issues.
You should think about upgrading to 4.1 soon though, as user/register in have additional session validation that will reduce the ezuser table issue. Maybe wait for 4.1.4 though, it should be out in a about few weeks and includes fix for #15269*

* http://issues.ez.no/15269

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