WordPress.org

Forums

s2Member Framework (Member Roles, Capabilities, Membership, PayPal Members)
PayPal Buttons not rendering - stray paragraph (4 posts)

  1. seamtv
    Member
    Posted 1 year ago #

    I just noticed recently that my Paypal buttons are missing, despite working fine for over a year.
    Looking at the code, I can see a stray "</p>" generated right after the paypal button image resource and just before the closing "</form>" tag. Unfortunately, this is rendered by the s2member short code itself, so I have no way of removing it. I suspect this is why my paypal buttons are not rendering properly in the browser.

    Here's an example of what I see in the browser code (just a snippet of the form):

    \<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick" />
    <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIK6QYJKoZIhvcNAQcEoIIK2jCCCtYCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYB8uiC601PR0EVBvHR92tHd5wpIyjLW4J1nH79BCKe3Ueb/5aeD6FPAx/b8iiHjOXZiua/yWAYSKDSTC+TIFgO20txb+5tVQb11u6QX6xCaXIS6yHnzP0T54c1TrW873aD+WgEf6bP8l+1nJnMMvZG/DeAxMS++dAuShfkGmXZCijELMAkGBSsOAwIaBQAwggRlBgkqhkiG9w0BBwEwFAYIKoZIhvcNAwcECAXVE+MAhBw+gIIEQJLwgcpCxqCwlNDYqUvKlnEF4MOlpZAGcHsCSeX6T+nYSIRxOj0UoBQLQiuvk0miMq0d99nRRYhabWi9wrQyWgOBxDeq+QcyKPsTNDnOeDPbGFXFmqY1V3BvBfZVoB2P9a0JF5FLv2P+whCEUj3EXuT+0qGkfJARweDfsGko9hwLiiXHf9KpYesa18Se5khnN2lC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GA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTQwMTIwMjA1NzUzWjAjBgkqhkiG9w0BCQQxFgQUuHRt96p6r1UrN35dqqpxqRpO7h4wDQYJKoZIhvcNAQEBBQAEgYB/4TIfJh5EdMNWgEd2lWnvdn44S7edIPMa3JnGroWQrVDZGxLI95kZcxBBpqw08M40v7AP8LrC3lBc3wdtDnXKggnN1uZKqEEeaRrfWCGVTR2ehj9QnhR+P3mETCT+B4MdTAnnNZoyQp8n6AZj1qmg1OLue53NEv7H7kTsDRMtsw==-----END PKCS7-----
    ” />
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online." /></p>
    </form>\

    http://wordpress.org/plugins/s2member/

  2. WebSharks
    Member
    Plugin Author

    Posted 1 year ago #

    Hi :-) We see this now and again. It's actually not s2Member doing this. This behavior could be attributed to your theme (or to another plugin) which might be corrupting the output of WordPress shortcodes.

    Some themes provide special content filters that work together with WordPress shortcodes in non-standard ways. For instance, it's been noted that the inFocus theme requires you to wrap all shortcodes with [raw][/raw] tags in the WordPress editor for them to work properly.

    I would suggest checking with your theme developer about this. Another approach that can sometimes work is to start disabling other plugins until this problem goes away (or even switch to a default theme temporarily) until you can narrow it down to something more specific.

  3. seamtv
    Member
    Posted 1 year ago #

    I've been finding a lot of people with the same problem and there is a building momentum behind the idea that this is not caused by the theme but by WordPress itself. People have tried all sorts of hacks to turn off WordPress' built-in wptexturize function, change the wpautop function, etc, but this is beyond my level of understanding. Here's an article with someone's fix.
    I tried installing RAW HTML Pro but this doesn't allow short codes in between the [raw] tags.
    To be honest, this is pretty annoying, and there seem to by a myriad of approaches.

  4. WebSharks
    Member
    Plugin Author

    Posted 1 year ago #

    wpautop, wptexturize, and other default content filters in the WordPress core will not affect the output of a WordPress shortcode, so turning these off is not likely to help unless your theme is indirectly applying them on it's own.

    A default WordPress installation will render all shortcode output as raw HTML by default. When we see site owners with corrupted HTML output that was originally produced by an s2Member shortcode it is indication to us that a theme (or another plugin) is doing something beyond-the-norm and inadvertently corrupting raw HTML output by a shortcode.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic