Support » Plugin: Subscribe2 » [Plugin: Subscribe2] W3c validation error

Viewing 7 replies - 1 through 7 (of 7 total)
  • @franco,

    Thanks for the report and fix. Can you tell me the document type for your site. I am using XHTML 1.0 Transitional and this validates fine with action=””. Are you using HTML5?

    Yes, I’m using a twentyeleven child theme in HTML5


    That would explain why you get the error and I don’t.

    In your patch I think we’ll need to use
    $url = get_site_url();
    in your else to account for sub-domain installs and multisite users. Can you check this works for you?

    Using get_site_url() or $_SERVER[‘PHP_SELF’], when i make a subscription from a subpage, after the form submission, I go always on home page.
    I tried also this code:
    $url = get_permalink();
    and it seems to work better.
    can it be ?


    get_permalink() will fails on sites where the_loop() is closed before the sidebar code is called.

    Both get_site_url() and $_SERVER[‘PHP_SELF’] will always return you to the root of your site domain. get_site_url() might be better as it gives the full URL instead of a relative one.

    There may still be a better way though to preserve subpages.

    You are right
    ok for get_site_url()

    or this ?
    get_site_url() . esc_url( $_SERVER[‘REQUEST_URI’] )


    I think get_site_url() might be the route to take because $_SERVER[‘REQUEST_URI’] is not supported on IIS servers. It’s fine on Apache but not IIS. 🙁

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Subscribe2] W3c validation error’ is closed to new replies.