daunk Posted December 4, 2017 Posted December 4, 2017 I've recently upgraded to latest Invision from 3.4.x. I always used to have a PayPal button inserted in a post (first on a thread) for users to purchase an item from the site, but since the upgrade the button doesn't work. On clicking to buy it simply loads an invision error page as below. I asked support but they said it was not something they could help with. Seems strange as it's an invision error that is generated. But just hoping someone else might know what is going on, as it has me stumped. "Sorry, there is a problem We could not locate the item you are trying to view. Error code: 2S136/C" <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="hosted_button_id" value="4V4NT7WFATG2G"> <table> <tr><td><input type="hidden" name="on0" value="Select Colour of Certificate Wallet">Select Colour of Certificate Wallet</td></tr><tr><td><select name="os0"> <option value="Black">Black £13.95 GBP</option> <option value="Green">Green £13.95 GBP</option> </select> </td></tr> </table> <input type="hidden" name="currency_code" value="GBP"> <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"> </form>
Ramsesx Posted December 4, 2017 Posted December 4, 2017 Just guessing, try to remove or change the target value.
Nathan Explosion Posted December 4, 2017 Posted December 4, 2017 The problem is the <form></form> element of this - if you look at the submitted content again, via source, you will see the form element has been stripped out of the code.....so when the submit is run, it will try to submit the form that the content is now within....and that is an IPS <form> element now (you can't have a form within a form, so the added form element is stripped out) I covered options for this previously: Another option would be to put the code on a html page of it's own, and then embed it in a post via an iframe instead?
daunk Posted December 5, 2017 Author Posted December 5, 2017 Thanks @Nathan Explosion - I hadn't seen the other topic (and couldn't find it in a search) seems like the exact same issue. I think I will have to try and create html pages and then embed via iframe. But it's a pain as there are several of these to do. Thanks very much for your help. I'm not sure why invision allowed this conflict to arise in 4.x when there were no issues previously with putting in forms.
sMEK Posted January 14, 2018 Posted January 14, 2018 On 2017-12-04 at 5:06 PM, Nathan Explosion said: The problem is the <form></form> element of this - if you look at the submitted content again, via source, you will see the form element has been stripped out of the code.....so when the submit is run, it will try to submit the form that the content is now within....and that is an IPS <form> element now (you can't have a form within a form, so the added form element is stripped out) I covered options for this previously: Another option would be to put the code on a html page of it's own, and then embed it in a post via an iframe instead? How to embed iframe in a post? ive been trying but seems to not work :s i enabled so that my group can post HTML.-
Recommended Posts
Archived
This topic is now archived and is closed to further replies.