latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Kris Erlewine

Sorry, I've not written a description yet. I'll get to it soon!


My Latest Replies (From Various Topics)

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Saturday Feb 16th, 2013 at 10:14 pm #42013

That’s not the case. The Paypal Options > Automatic EOT > Membership EOT Behavior is set to demote, not delete.

Posted: Tuesday Jun 12th, 2012 at 10:42 am #16255

I may have figured this out. This user already had an account I set up for my legacy email customers and is still getting billed through Amazon. I supplied them with usernames and passwords. But this user appears to have used the Paypal button rather than just login with the supplied credentials. As such, she already had an account. Still, I received my money through Paypal and probably owe them a refund. Does the fact that she has no Paid Subscriber ID indicate that she won’t be dinged by Paypal next month? Or should I have her disconnect her recurring payment through her Paypal account?

Posted: Tuesday Jun 5th, 2012 at 11:49 pm #15632

I tried the change you suggested. It returned this error:

Warning: include_once(/wordpress/wp-load.php) [function.include-once]: failed to open stream: No such file or directory in /home/nocojo5/public_html/employerbase/Employer_list.php on line 2

Warning: include_once() [function.include]: Failed opening ‘/wordpress/wp-load.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php:/home/nocojo5/php’) in /home/nocojo5/public_html/employerbase/Employer_list.php on line 2

Fatal error: Call to undefined function current_user_can() in /home/nocojo5/public_html/employerbase/Employer_list.php on line 3

I changed it back to ../wordpress and get “permission denied”.

Unfortunately, my main PHP file has lots of includes (so I assume draws from many other files). Here is just the first few lines of code:

<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");

include("include/dbcommon.php");
add_nocache_headers();

include('include/xtempl.php');
include("include/Employer_variables.php");
include('classes/runnerpage.php');
include('classes/listpage.php');
include("classes/searchpanel.php");
include("classes/searchcontrol.php");
include("classes/searchclause.php");
include("classes/panelsearchcontrol.php");

I have already changed my domain and plan to finish the migration on Friday. I will re-visit this after all of the URLs are set in stone.

Posted: Tuesday Jun 5th, 2012 at 9:01 am #15496

I still don’t understand.

I have generated a PayPal Button for Level #1 Access. It’s a monthly recurring subscription at $15.00. I have PayPal set up with the Auto-Return URL: http://mysite.com/wordpress/?s2member_paypal_return=1 as stipulated under PayPal Options > PayPal PDT Auto-Return Integration. I am using the success=”” attribute in the shortcode and it looks like this:

[s2Member-PayPal-Button level="1" ccaps="" desc="Boconoco - Monthly Subscription" ps="Boconoco" lc="" cc="USD" dg="0" ns="1" custom="mysite.com" ta="0" tp="0" tt="D" ra="15.00" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" success="/thanks/" /]

But I also sell job postings to employers who are not members on a one-off basis. They need a Buy Now button for the purchase. The button I had been using I generated on the PayPal site. This would be fine, but I can only have one Auto-Return URL on the PayPal site and it has to be http://mysite.com/wordpress/?s2member_paypal_return=1.

To make this work, do I need to generate another PayPal button through S2MPro? If so, should it be a PayPal Capability (Buy Now) Button or a PayPal Specific Post/Page (Buy Now) Button?

If it is important here, I do not have a PayPal Pro account because I prefer not to have the $30/mo expense. I am using a PayPal Business account.

Posted: Tuesday Jun 5th, 2012 at 8:25 am #15487

I just went back and checked everything. Here is what I did:

I inserted the following code into the top of the main php page of my database app found at mysite.com/employerbase/Employer_list.php

<?php
    include_once "../wordpress/wp-load.php";
    if (current_user_can("access_s2member_level1"))
    {
    // User is allowed to view, so display something here.
    }
    else
    exit("Permission denied!");
    ?>

I logged into WP at mysite.com/wordpress/wp-login.php as Admin.

I checked under Settings > General and found:

Wordpress Address (URL) – http://mysite.com/wordpress
Site Address (URL) – http://mysite.com/wordpress

I checked the page called Employer Base and it has the address:

http://mysite.com/wordpress/employer-base

I checked the iframe which is generated by the Advanced iFrame plugin. It looks like this:

[advanced_iframe securitykey=”da39a3ee5e6b4b0d3255bfef95601890afd80709″ src=”http://mysite.com/employerbase/Employer_list.php&#8221; width=”100%” height=”1000px”]

I clicked View Page from the WP backend while logged in as Admin. The page displays normally except where the iFrame is located. Where the iFrame is located it reads:

Permission Denied!

Permissions for the file mysite.com/wordpress/wp-load.php are set at 755.

Do you have any other thoughts on what I should change to make this work?

Viewing 5 replies - 1 through 5 (of 5 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.