reCAPTCHA (ez3) for user class: PersistentDataDirty

Author Message

Greg McAvoy-Jensen

Wednesday 09 January 2008 12:03:57 pm

I've installed the wonderful reCAPTCHA (ez3) extension on eZ Publish 3.9.4. The datatype has been added to the user class. It was working fine, but while continuing to test user registration, I've started getting the following error messages:
-------------------------------------------------
Fatal error: Call to a member function on a non-object in /home/gregmj/web/tdd/kernel/user/register.php on line 198
Fatal error: eZ publish did not finish its request
.
.
.
Debug: Jan 09 2008 11:35:52

object(ezcontentclassattribute)(29) {
["PersistentDataDirty"]=>
bool(false)
["Content"]=>
NULL
["DisplayInfo"]=>
NULL
["ID"]=>
string(4) "1137"
["Version"]=>
string(1) "0"
["ContentClassID"]=>
string(1) "4"
["Identifier"]=>
string(9) "recaptcha"
["SerializedNameList"]=>
string(72) "a:2:{s:6:"eng-US";s:9:"reCAPTCHA";s:16:"always-available";s:6:"eng-US";}"
["NameList"]=>
object(ezcontentclassattributenamelist)(3) {
["NameList"]=>
array(2) {
["eng-US"]=>
string(9) "reCAPTCHA"
["always-available"]=>
string(6) "eng-US"
}
["HasDirtyData"]=>
bool(false)
["DefaultLanguage"]=>
NULL
}
["DataTypeString"]=>
string(9) "recaptcha"
["Position"]=>
string(1) "6"
["IsSearchable"]=>
string(1) "0"
["IsRequired"]=>
string(1) "0"
["IsInformationCollector"]=>
string(1) "0"
["Module"]=>
NULL
["CanTranslate"]=>
string(1) "0"
["DataInt1"]=>
string(1) "0"
["DataInt2"]=>
string(1) "0"
["DataInt3"]=>
string(1) "0"
["DataInt4"]=>
string(1) "0"
["DataFloat1"]=>
string(1) "0"
["DataFloat2"]=>
string(1) "0"
["DataFloat3"]=>
string(1) "0"
["DataFloat4"]=>
string(1) "0"
["DataText1"]=>
string(0) ""
["DataText2"]=>
string(0) ""
["DataText3"]=>
string(0) ""
["DataText4"]=>
string(0) ""
["DataText5"]=>
string(0) ""
}

Debug: Jan 09 2008 11:35:52

object(recaptcharesponse)(2) {
["is_valid"]=>
bool(true)
["error"]=>
NULL
}
-------------------------------------------------
If I clear cookies (Firefox 2.0.0.11 or IE7) and add a new user from the public site, the user is created but this message appears. Perhaps data became corrupt because of a repeat submission or deleting a user then adding a new one, I'm not sure. But is this handling of the situation a bug? What's the best way to fix my present system and prevent recurrence? Thank you!

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Greg McAvoy-Jensen

Wednesday 09 January 2008 12:54:44 pm

It appears it's not an reCAPTCHA problem at all: it's an eZ Publish bug:
http://issues.ez.no/IssueView.php?Id=11598

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

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

eZ debug

Timing: Jan 18 2025 11:41:30
Script start
Timing: Jan 18 2025 11:41:30
Module start 'layout'
Timing: Jan 18 2025 11:41:30
Module start 'content'
Timing: Jan 18 2025 11:41:30
Module end 'content'
Timing: Jan 18 2025 11:41:30
Script end

Main resources:

Total runtime0.5487 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.0469152.6406
Module start 'layout' 0.00700.0030 740.687539.4922
Module start 'content' 0.01000.5373 780.1797513.2344
Module end 'content' 0.54730.0014 1,293.414112.1250
Script end 0.5487  1,305.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.6404160.0002
Check MTime0.00150.2747160.0001
Mysql Total
Database connection0.00120.210710.0012
Mysqli_queries0.480787.6027520.0092
Looping result0.00060.1083500.0000
Template Total0.514293.720.2571
Template load0.00220.397620.0011
Template processing0.512093.300120.2560
Template load and register function0.00010.018610.0001
states
state_id_array0.00080.144210.0008
state_identifier_array0.00110.193620.0005
Override
Cache load0.00190.3495970.0000
Sytem overhead
Fetch class attribute can translate value0.00080.144210.0008
Fetch class attribute name0.00110.202630.0004
XML
Image XML parsing0.00050.089610.0005
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00080.1462180.0000
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs