The 501 error is being created by your code specifically, not my custom php:
<?php $_g = stripslashes_deep ($_GET); ?>
<?php if (isset ($_g["_s2member_seeking"]["post"])) { $redirect_id = esc_html($_g["_s2member_seeking"]["post"]); } ?>
<?php if (isset ($_g["_s2member_seeking"]["page"])) { $redirect_id = esc_html($_g["_s2member_seeking"]["page"]); } ?>
<?php if (!$redirect_link = get_permalink( $redirect_id )) { $redirect_link = "http://www.envisiondemo.com/acumen/membership-area/"; } ?>
I do not have any errors in my code. The site otherwise works fine.
Your code is:
1. stripping slashes from $_GET array — the url string — this is this line that is creating the 501 error
2. evaluating if there is an ID value for _s2member_seeking a post, and saving that ID to $redirect_id
3. evaluating if there is an ID value for _s2member_seeking a page, and saving that ID to $redirect_id
4. If there is not permalink for $redirect_id, assign the redirect link to the membership-area page
Then use the $redirect_link variable in my login form code. This all makes sense.
I disabled the visual editor and have been able to execute other php code through the admin so I know that’s not the issue.
Ultimately, I had to pull all of the content of the page into a template because it didn’t seem that you could use stripslashes_deep ($_GET); through the admin. I tried just placing the code to get the $redirect_link variable into the template and then using the variable in the login code in the editor, but for some reason they won’t communicate.
So just FYI, your code does not work as intended.
I solved my problem, but I find it rather irritating that you don’t support what seems to be basic functionality of a PAID plugin. Thanks for your help thus far.