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

eZ debug

Timing: Jan 18 2025 18:31:34
Script start
Timing: Jan 18 2025 18:31:34
Module start 'content'
Timing: Jan 18 2025 18:31:35
Module end 'content'
Timing: Jan 18 2025 18:31:35
Script end

Main resources:

Total runtime1.0081 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 587.8359180.8203
Module start 'content' 0.00790.7934 768.6563611.2422
Module end 'content' 0.80130.2067 1,379.8984345.0625
Script end 1.0080  1,724.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.4611210.0002
Check MTime0.00210.2056210.0001
Mysql Total
Database connection0.00220.213510.0022
Mysqli_queries0.918791.13442120.0043
Looping result0.00240.23392100.0000
Template Total0.977997.020.4890
Template load0.00200.200320.0010
Template processing0.975996.804920.4879
Template load and register function0.00020.017110.0002
states
state_id_array0.00060.056010.0006
state_identifier_array0.00100.102820.0005
Override
Cache load0.00200.2008440.0000
Sytem overhead
Fetch class attribute can translate value0.00200.198130.0007
Fetch class attribute name0.00140.1388100.0001
XML
Image XML parsing0.00100.100030.0003
class_abstraction
Instantiating content class attribute0.00000.0030130.0000
General
dbfile0.00300.3015280.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs