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.