Jump to:

10977 Posts in 2720 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » recaptcha shows only on static page

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 432 Views
  • gh
    Avatar
    Community Member
    10 Posts

    recaptcha shows only on static page Link to this post

    Hello

    I am using the recatcha module together with the spamprotector module in SilverStripe 2.4.5.
    The recaptcha field ends up in the in the html code, but the browser (Safari and Firefox alike) does not display it.
    The strangest thing is, when I save the page to the disk and load it into the browser from there, the browser displays the field.

    Does anyone have an explanation for this behaviour and an idea how to fix that?

    Best Regards,

    gh

  • gh
    Avatar
    Community Member
    10 Posts

    Re: recaptcha shows only on static page Link to this post

    I can explain the strange behavior:
    I saved the page with the suffix .htm to the disk. When I load it from the disk, the suffix overrides the xhtml declaration.
    So the recaptcha is not displayed because it doesn't validate.
    I will fiddle with a validator and see if I can come up with a fix.

    Best regards,

    gh

  • gh
    Avatar
    Community Member
    10 Posts

    Re: recaptcha shows only on static page Link to this post

    The validator reveals various errors, but when they are fixed the recaptcha field still does not show in Safari or Firefox.
    I have tried the HTML 4.01 doctype in Page.ss, but then the entire page does not show, just an error message.

    I don't know anything else to try. For me, the recaptcha module just does not work.
    And without that, SilverStripe just does not work for me.

    Any hints are appreciated.
    Best regards,

    gh

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: recaptcha shows only on static page Link to this post

    What is the error message? try validating your HTML and see if any issues crop up.

  • gh
    Avatar
    Community Member
    10 Posts

    Re: recaptcha shows only on static page Link to this post

    The DOCTYPE is:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    The error message is:

    This page contains the following errors:
    error on line 31 at column 8: Opening and ending tag mismatch: base line 0 and head
    Below is a rendering of the page up to the first error.

    The cause appears to be this line:

    <base href="http://mysite/"><!--[if lte IE 6]></base><![endif]-->

    which is inserted by this control:

    <% base_tag %>

    The <base>-tag is closed only if the browser version is less than IE6, which means it's no closed for most browsers, right?

    With the xhtml DOCTYPE this control returns:

    <base href="http://mysite/" />

    which of course validates well.

    Thanks for your help,

    gh

    432 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.