I have been talking to MemberMouse about this and here is their response:
What it looks like is happening in the video you sent, is that the JavaScript protocol is being stripped out in the href attribute of anchor tags by default.
For example, when a SmartTag that generates a JavaScript function is used within an href attribute such as:
<a href="[MM_Form_Button type='submit' paymentMethod='default']">Submit Order</a>
When functioning correctly, it results in the following HTML:
<a href="mmjs.checkout(true);">Submit Order</a>
However, if WordPress, or another plugin such as jetpack, is stripping out the JavaScript protocol this will result in an invalid link and something that looks like this:
<a href="https://yourdomain.com/your-page/mmjs.checkout(true);">Submit Order</a>
which will indeed bring up that 404 error.
Current Best Solution
MemberMouse disables the WordPress security filter using a WordPress-recommended filter but if another plugin or theme enables it, then it reintroduces the issue. Your first option is to discontinue the use of the theme or plugin that’s causing the problem which you can determine by running MemberMouse in safe mode.
Alternatively, you can enable the JavaScript protocol manually by making a change to WordPress core file wp-includes/functions.php. In this file locate the wp_allowed_protocols() function and replace this line of code:
$protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal' );
With this:
$protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal', 'javascript' );
—
Does that give you something to go on to fix it?
-
This reply was modified 7 years, 11 months ago by chrisram.
-
This reply was modified 7 years, 11 months ago by chrisram.
-
This reply was modified 7 years, 11 months ago by chrisram.