Protection Error when clicking on a Paypal button?!

Marco Famà

Active member
Dear all

sorry, maybe this is not really a bug but I don't know where else to post it.
In fact, I've implemented a DONATE payPal button in my xenForo instance, using this code:

Code:
<!-- MF ad_message_body -->
<xen:hook name="ad_message_body" />
<!-- MF Se è il secondo post, visualizzo Donazione -->
<xen:if is="!{$message.conversation_id} AND !{$ajaxInsert}">
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 1 AND !{$message.conversation_id}">
<div style="display: block !important; float: right !important; vertical-align: middle; width: 100px; padding-left:10px;">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEoIIHMDCCBywCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBWubUmu0cur4hhbo99MSrC8JoyfJ1z35GBdYWVDNMKdaYdkfO6TSusqDxFhKJ0goKTpVMle/Q97tS50CC+cOjDjWL3NCYp3eMS+hJqleDGChEOOheYo2uUpcUPomuTMFWRB/Dfwbfll0wIQRz5tqFlknFdWULX4tqSOLEhvQhUMDELMAkGBSsOAwIaBQAwgbwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQINbFzScBxBWKAgZirZPOeW8nymcQNz1z9iLrX44XisbEOaIBf6tDDIOArgl0J5HQUfxYd5Ep6T/VMcH1WRhllLS6NEM2HlMGGWQ0AUfSCFk2JtDwXGMrg5jgD0UZscUFN47NNwJTqLsCNdEx20PHyAFToQmH2W2Zr+VGXLeLRv8fNl1TO7YZwma6XsVfz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AWuXvX6Oro4qJ1tYVIT5DgWpE692Ag422H7yRIr/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTEzMDYxNzEyNTU1NFowIwYJKoZIhvcNAQkEMRYEFHgFubZcZVLe16y3KRYelb7sFhgQMA0GCSqGSIb3DQEBAQUABIGAsj4R+2x8BVwN9wtiC4tvptupt8AeEoV0lVIBR9wKWFeSSonbvZRKNkBOWv2fmJteF9LPFA9ywZ8x/YjGODOh2SIfJMSxFpIwOI1ztEz947ciY1mG38zSATaj/tQ/UA7WZ2OizR5N4Qk0FKwvz2orZcVMrRU4BGhHH1OLsSR8zMU=-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/it_IT/IT/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - Il metodo rapido, affidabile e innovativo per pagare e farsi pagare.">
<img alt="" border="0" src="https://www.paypalobjects.com/it_IT/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
</xen:if>
</xen:if>

The point is that, if I click on the button, I get redirected to
http://timelapseitalia.com/forum/inline-mod/post/switch
and get a generic Protection Error.

Can anyone please tell me what this is?

Thanks a lot
Marco
 
You've put the form inside another form (one that XF makes/uses).

You'll need to move it or do it differently. If you need any further help, I'd recommend posting in the customization forums.
 
You've put the form inside another form (one that XF makes/uses).

You'll need to move it or do it differently. If you need any further help, I'd recommend posting in the customization forums.

thanks a real lot for the quick response Mike!!
Will look for a workaround then :)

take care
 
You've put the form inside another form (one that XF makes/uses).

You'll need to move it or do it differently. If you need any further help, I'd recommend posting in the customization forums.

hey Mike

changing it to:

Code:
<a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=marcofamaonline%40gmail%2ecom&lc=IT&item_name=Time%20Lapse%20Italia&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted">
<input type="image" src="https://www.paypalobjects.com/it_IT/IT/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - Il metodo rapido, affidabile e innovativo per pagare e farsi pagare.">
</a>


doesn't help anyway, and still the redirect to
http://timelapseitalia.com/forum/inline-mod/post/switch
appears :(

Can you guess now what it is?

Thanks

PS: I'm not able to migrate this thread into Customizations...
 
hey Mike

changing it to:

Code:
<a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=marcofamaonline%40gmail%2ecom&lc=IT&item_name=Time%20Lapse%20Italia&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted">
<input type="image" src="https://www.paypalobjects.com/it_IT/IT/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - Il metodo rapido, affidabile e innovativo per pagare e farsi pagare.">
</a>


doesn't help anyway, and still the redirect to
http://timelapseitalia.com/forum/inline-mod/post/switch
appears :(

Can you guess now what it is?

Thanks

PS: I'm not able to migrate this thread into Customizations...

You didn't need to change the code, you needed to move it out of the <form> element.
 
Okay, I see that the point is that I still don't understand why I get that error, although this is just a normal link associated with an image!

Can you guess a possible solution to my problem?
 
Back
Top Bottom