Forums / Extensions / reCAPTCHA (ez3) for user class: PersistentDataDirty

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

eZ debug

Timing: Jan 18 2025 14:56:43
Script start
Timing: Jan 18 2025 14:56:43
Module start 'content'
Timing: Jan 18 2025 14:56:44
Module end 'content'
Timing: Jan 18 2025 14:56:44
Script end

Main resources:

Total runtime1.3944 sec
Peak memory usage4,096.0000 KB
Database Queries189

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0110 588.9922180.8125
Module start 'content' 0.01101.1582 769.8047518.3281
Module end 'content' 1.16920.2250 1,288.1328337.0547
Script end 1.3943  1,625.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.3401210.0002
Check MTime0.00170.1212210.0001
Mysql Total
Database connection0.00140.101010.0014
Mysqli_queries1.302893.43311890.0069
Looping result0.00250.17731870.0000
Template Total1.339496.120.6697
Template load0.00260.185720.0013
Template processing1.336895.868620.6684
Template load and register function0.00010.007310.0001
states
state_id_array0.00190.133110.0019
state_identifier_array0.00300.218520.0015
Override
Cache load0.00240.1693970.0000
Sytem overhead
Fetch class attribute can translate value0.00110.077420.0005
Fetch class attribute name0.00130.093730.0004
XML
Image XML parsing0.00230.161720.0011
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00790.5644290.0003
String conversion0.00000.000430.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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