? Success

User tests: Successful: Unsuccessful:

avatar radiant-tech
radiant-tech
21 Feb 2014

$plugin in JFormRuleCaptcha::getInstance() is a SimpleXMLElement and needs to be cast as string to avoid Error.

Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33284

avatar radiant-tech radiant-tech - open - 21 Feb 2014
avatar nicksavov nicksavov - change - 21 Aug 2014
Labels Removed: ?
avatar brianteeman brianteeman - change - 21 Aug 2014
Status New Pending
avatar brianteeman brianteeman - change - 2 Sep 2014
Category Libraries
avatar roland-d
roland-d - comment - 3 May 2015

@test: Works as expected, after submitting the form I get the error, after applying patch the error no longer shows and form is sent successfully.

I followed the following test instruction:

  1. Install a new captcha in joomla (other than recaptcha). I downloaded this captcha: http://extensions.joomla.org/extensions/extension/access-a-security/site-security/jgraphic-captcha-protection It has the name jgraphiccaptchaprotection
  2. Enable multiple captcha plugins in Joomla plugin manager (recaptcha and jgraphiccaptchaprotection)
  3. Open the file components\com_contact\models\forms\contact.xml
  4. Go to the end of the file and find the captcha field. Add a new attribute in captcha form field as:

    plugin="jgraphiccaptchaprotection"

  5. The field now looks like:

    <field
            name="captcha"
            type="captcha"
            plugin="jgraphiccaptchaprotection"
            label="COM_CONTACT_CAPTCHA_LABEL"
            description="COM_CONTACT_CAPTCHA_DESC"
            validate="captcha"
            namespace="contact"
    />
  6. With sample data installed, go to this URL index.php?option=com_contact&view=contact&id=1&Itemid=229

  7. When form page is loaded, the captcha "jgraphiccaptchaprotection" appears properly.
  8. When the form is submitted, it throws the "Serialization of 'SimpleXMLElement' is not allowed" exception.
  9. Apply the patch
  10. Try sending the form again, this will now succeed.
avatar roland-d roland-d - test_item - 3 May 2015 - Tested successfully
avatar roland-d roland-d - change - 3 May 2015
Milestone Added:
avatar zero-24
zero-24 - comment - 3 May 2015

@test successful. Thanks for the fix @radiant-tech and the test instructions @roland-d

I'm going to mark this RTC

avatar zero-24 zero-24 - change - 3 May 2015
Status Pending Ready to Commit
avatar zero-24 zero-24 - change - 3 May 2015
Milestone Removed:
Labels Added: ?
avatar zero-24 zero-24 - change - 3 May 2015
Title
type cast $plugin to string
[#33284] type cast $plugin to string
avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2015
Title
type cast $plugin to string
[#33284] type cast $plugin to string
avatar roland-d roland-d - close - 3 May 2015
avatar roland-d roland-d - change - 3 May 2015
Milestone Removed:
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-05-03 21:23:28
Closed_By roland-d
avatar roland-d roland-d - close - 3 May 2015
avatar roland-d roland-d - alter_testresult - 3 May 2015 - zero-24: Tested successfully
avatar johanjanssens johanjanssens - reference | abc4cda - 19 Jun 15

Add a Comment

Login with GitHub to post a comment