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.

Home Forums Bruce

Bruce

Staff Member

My Latest Replies (From Various Topics)

Viewing 25 replies - 2,526 through 2,550 (of 2,703 total)
Author Replies
Author Replies
Posted: Saturday Dec 1st, 2012 at 9:41 pm #33174
Bruce
Username: Bruce
Staff Member

Hi Phil,

Thank-you very much for your patience

In the short term, I would suggest just creating a standard s2Member PayPal button to handle transactions, and wait to figure out what’s wrong with your account before you go live with PayPal Pro.

It sounds like your PayPal account has been mixed up somehow. Once you have some data in your logs please send us the data within them (with sensitive data xxx’d out) so that we can help you further.

Based on your previous replies PayPal is not receiving data for credit cards, which is causing the issue. We will take a look at the issue and see what might be causing this.

Try running the Server Check Tool and ensure that there’s nothing wrong with your server configuration that might be causing this. Also, do you have any plugins that could be blocking queries? If you could screenshot your plugins list within your WordPress Dashboard that would do fine.

Posted: Saturday Dec 1st, 2012 at 9:33 pm #33171
Bruce
Username: Bruce
Staff Member

Hi Frank,

Generally dynamic content is only created when a user is logged in (for example, Sidebar Info, and Messages, etc.) so disabling caching for logged-in users makes sense because it leaves the least amount of room for error.

However, if you did have a lot of static content that did not change based on users and did not have other dynamic content within these pages you could structure your site to separate this content from dynamic content and cache pages in the static divider.

Some themes do support features such as this, and if your theme were to grab data through an iFrame, or through AJAX you could cache all pages except those that are providing dynamic content through PHP.

Posted: Saturday Dec 1st, 2012 at 9:15 pm #33168
Bruce
Username: Bruce
Staff Member

Hi Frank,

I would just add that page I want to exclude to the No-Cache URI Patterns Box in Quick Cache, correct?

http://www.examplesite.com/members/account-info -> put in /members/account-info in the No-Cache URI Patterns box?

Yes that’s correct. You would most likely want to just put /members/ into the URL Patterns, however, because anything under /members/ shouldn’t be cached.

Also, what if I use s2 conditional short codes throughout some of the logged-in content? Will caching mess that up as well? For example, I use s2 conditional short codes to display certain messages to certain levels of members, while hiding that message from other levels of members.

This also would need to have caching disabled as well, because caching creates a non-dynamic copy of the page to show users, so ALL users would see the same thing.

Posted: Saturday Dec 1st, 2012 at 9:11 pm #33167
Bruce
Username: Bruce
Staff Member

Thanks for the info

Sounds to me like you have something wrong with your .htaccess file. Try resetting the file to WordPress’s defaults. Just edit the file via FTP with your favorite text editor, and replace the data within # BEGIN WordPress and # END WordPress with:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Make sure that if you have any other code within your .htaccess file it goes above this code. If you still have this issue, try deleting these other rules.

You may also want to check this out:

http://www.squidoo.com/wordpress-not-found-error-fix


If this does not solve your issue I’m afraid you may have to reinstall WordPress. s2Member does not have control over what is currently happening with your Permalinks.

You will not need to delete all of the files off of your FTP server, but a DROP of your SQL database and deletion of your wp-config.php file will be needed. This will reset all options that you have set up, and you will need to recreate all of your pages. If you already have several pages set up, it would probably be a good idea to save the data within each page so that you do not have to retype it all.

Posted: Saturday Dec 1st, 2012 at 8:19 pm #33163
Bruce
Username: Bruce
Staff Member

Hi Frank,

If you have dynamically-created content in pages, such as that sidebar, caching is not possible in those instances because that sidebar would not show up, or may even show up differently than it should.

Perhaps you could create a different template without the sidebar for posts and pages and not cache pages that would have this dynamic content.

Posted: Saturday Dec 1st, 2012 at 8:14 pm #33162
Bruce
Username: Bruce
Staff Member

Hi Saskia,

If your theme is already providing snippets, s2Member should not affect the snippets that are shown unless you have Alternative View Protection enabled within Dashboard -› s2Member® -› Restriction Options -› Alternative View Protection.

With Alternative View Protection OFF, s2Member will only block access to the direct path of the pages/posts/categories blocked, and not queries on other pages.

Posted: Saturday Dec 1st, 2012 at 8:11 pm #33161
Bruce
Username: Bruce
Staff Member

Hi,

I just took another look back through your posts and it appears that the problem lies in the fact that you have changed the permalinks on your blog. s2Member is not what’s sending the 404, but your site itself.

Try creating a new page (without changing your permalinks again) that requires s2Member level 1, log out, and try to access the new page. This should cause you to be redirected to the Membership Options Page, or at least redirect to the Membership Options Page’s old permalink, which will result still in 404.

Let us know how that goes.

Posted: Saturday Dec 1st, 2012 at 7:59 pm #33159
Bruce
Username: Bruce
Staff Member

No problem.

Let us know if you have any further issues with this, or anything else.

Posted: Saturday Dec 1st, 2012 at 7:55 pm #33157
Bruce
Username: Bruce
Staff Member

Hi Frank,

You’ll want to play around with the features a bit, but I would recommend turning caching on for Logged In Users (assuming you don’t have something like a sidebar that shows user data) and turning on Client-Side caching. You will then want to make sure you have stopped caching on your Login Welcome Page, Membership Options Page, and any other page that you are running dynamically-created content.

Posted: Saturday Dec 1st, 2012 at 7:50 pm #33155
Bruce
Username: Bruce
Staff Member

Hi Lauren,

This means that your hosting provider is not allowing your site to loopback, which is causing s2Member not to work correctly. You should contact your hosting provider and have them enable loopbacks, and if you cannot get them to enable this feature, you will have to switch hosting providers to have s2Member function correctly. This could cause more problems in the future, so you should attempt to have this fixed before you go live.

We recommend any of these hosts:
http://wordpress.org/hosting/

Also recommend:
HostGator
MediaTemple (gs)
Rackspace Cloud Hosting
FireHost

Posted: Saturday Dec 1st, 2012 at 7:32 pm #33152
Bruce
Username: Bruce
Staff Member

Hi Lauren,

After doing a bit of digging, I believe that the problem may be that your server’s hosting environment is not allowing loopbacks. Someone else had this issue in this thread:

http://www.s2member.com/forums/topic/paypal-success-return-url-not-working/

Can you try uploading a Must Use plugin with the following data in it (you can do this by putting a .php file within your /wp-content/mu-plugins/ directory on your server, create the directory if you don’t already have it)?:

http://&#8217; . $_SERVER[‘HTTP_HOST’]));
exit;
}
[/hilite]

You should then navigate to http://www.recoverysuperstar.com/?s2_diagnostics and see if it gives you errors.

Posted: Saturday Dec 1st, 2012 at 7:06 pm #33148
Bruce
Username: Bruce
Staff Member

Hi Frank,

I was reading somewhere that WP Super Cache is automatically set not to cache any protected member content. Is that true?

I believe you might have heard that about Quick Cache, which is created by WebSharks, Inc. (the creators of s2Member®) and generally works the best with s2Member.

I would recommend switching to Quick Cache to work with s2Member.

Posted: Saturday Dec 1st, 2012 at 6:42 pm #33143
Bruce
Username: Bruce
Staff Member

Hi Lauren,

That’s very interesting. You said that PayPal is sending your users back to the signup page. Are you sure that you have the correct URL set up within your PayPal account? Find info on this in Dashboard -› s2Member® -› PayPal® Options -› PayPal® PDT Integration.

Posted: Saturday Dec 1st, 2012 at 6:18 pm #33139
Bruce
Username: Bruce
Staff Member

Hi Lauren,

The problem lies within your success=”” attribute you have in your first post. Just change success="http://www.xyz.com/thank-you/ " to success="/thank-you/".

That should solve your issue.

  • This reply was modified 4 years, 1 month ago by  Bruce.
Posted: Saturday Dec 1st, 2012 at 5:51 pm #33135
Bruce
Username: Bruce
Staff Member

Hi Lauren,

Nothing is jumping out at me as to what might be the cause of this, your Server Check looks fine.

Could you send me a link to the page with the ShortCode on it so I might take a look and see if the the page is passing the success attribute?

Thanks.

Posted: Saturday Dec 1st, 2012 at 5:05 pm #33132
Bruce
Username: Bruce
Staff Member

Is there any tutorial available how I could do this by myself?

You may want to check out the video tutorial here:

http://www.s2member.com/videos/BD496E5F2CCAB12A/

Jason goes over setting up the Amazon S3 Cloudfront with JW Player, but you can adopt these changes to work with just downloads pretty easily.

Posted: Saturday Dec 1st, 2012 at 4:43 pm #33131
Bruce
Username: Bruce
Staff Member

Hi Lauren,

Based on your logs, it appears that your shortcode’s success="" attribute is not being passed to PayPal.

Is it possible that a caching plugin on your site is causing this?

If that’s not the case, please try running this Server Check Tool by uploading it to your main WordPress directory within your website, and navigating to the file within your browser. Post results in a reply.

Posted: Saturday Dec 1st, 2012 at 4:35 pm #33130
Bruce
Username: Bruce
Staff Member

Hi there,

You will need to simply press the “Save All Changes” button at the bottom of your Dashboard -› s2Member® -› General Options page within your WordPress Dashboard. This will update your page’s URL and should fix your issue.

Posted: Saturday Dec 1st, 2012 at 4:32 pm #33129
Bruce
Username: Bruce
Staff Member

Hi there,

I noticed that you do have a paid account at s2Member, and you are not currently locked out. If you cannot access your account you can reset your password here:

http://www.s2member.com/wp-login.php?action=lostpassword

If you are locked out of your own site, you will need to wait out the ban on your IP and change your settings under Dashboard -› s2Member® -› Restriction Options -› Unique IP Access Restrictions. The default ban period is 1 hour.

If you have changed the ban period to a time period which you are not willing to wait out, I found this article which can help you create a new admin account outside of the WordPress Dashboard so that you can change your settings, and unlock your account:

http://www.dnawebagency.com/how-to-add-an-admin-user-to-the-wordpress-database

Posted: Saturday Dec 1st, 2012 at 4:17 pm #33125
Bruce
Username: Bruce
Staff Member

Hi Tom,

It sounds like you might have a trial set up in your Shortcode.

A setup such as this might look something like this in the WordPress Dashboard:

If you’re having issues, could you copy the shortcode that you’re using, and post a reply with it?

Thanks

Posted: Saturday Dec 1st, 2012 at 4:12 pm #33123
Bruce
Username: Bruce
Staff Member

Hi Buck,

No, users are not notified of changes to their EOT dates manually. You will need to grab their email address within the Dashboard while you are performing the change and notify them of the change manually.

Posted: Saturday Dec 1st, 2012 at 4:09 pm #33122
Bruce
Username: Bruce
Staff Member

Hi Charlene,

s2Member currently does not support the feature to “recycle” the content that is dripped. Because you are hoping to “recycle” your custom capabilities, you will need a bit of custom code to set this up. If you are uncomfortable working with PHP on your site, we recommend hiring a Freelance coder from http://jobs.wordpress.net, or http://elance.com/.

To handle this functionality your developer need to create usermeta values (or data that is stored in your database for each user) to decide what workout your user is on. To do this, you’ll want to create a PHP function that uses a timestamp to run a few processes and update this usermeta value to the correct workout, which you can use on a WordPress page.

I need to know how to only have each workout appear 24 hours.

It is a only one course. There is not a free registration period.

The member goes back to workout 18 to recycle.

To have a workout appear 24 hours every 24 hours, you will want to save the timestamp (as mentioned above) along with the workout number that your user is on to not display a new workout until 24 hours after the user has seen the workout for the first time.

OR

You can just have the workout show up for 24 hours, without making sure that the user has been it just by using the PHP conditionals outlined in Knowledge Base » Introduction to Content Dripping in s2Member®.


Because you only want these features to be shown to users that are Premium (or level 1) Members on your site, you may want to use the S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS PHP constant instead of the one in the Knowledge Base article.
Posted: Saturday Dec 1st, 2012 at 3:30 pm #33117
Bruce
Username: Bruce
Staff Member

Hi Quentin,

Thanks for all the information

Just scanning over this, I see the greatest probability for this incompatibility within this code:

function db_query_events_by_user($user_id) {
	global $wpdb;
	$result = $wpdb->get_var($wpdb->prepare('SELECT count(id)
		 FROM ' . $wpdb->prefix . AEC_EVENT_TABLE . '
		 WHERE user_id = %d;', $user_id));
	return $this->return_result($result);
}

I will, however, take a look at the plugin and find out what the incompatibility and either contact the plugin’s creator, or fix the incompatibility within the hack to prevent this from happening in the future.

Thank-you!

Posted: Sunday Nov 25th, 2012 at 1:22 am #32517
Bruce
Username: Bruce
Staff Member

Hi Theodore,

It sounds you need to set up access restriction with s2Member for pages, and use conditionals for showing specific things on your Login Welcome Page.

You can find into on how to do these things within your Dashboard under Dashboard -› s2Member® -› Restriction Options and Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals.

Let me know if you need any further clarification.

Posted: Saturday Nov 24th, 2012 at 8:04 pm #32505
Bruce
Username: Bruce
Staff Member

Ah, I’m sorry.

I got an error while I was posting one of my last replies. Try just adding:

$my_ccaps= 'wm' . date('Ym') . ',element,forum';
	echo do_shortcode('[s2Member-Pro-PayPal-Form modify="1" level="1" ccaps="'. $my_ccaps . '" desc="Element Creation Tutorial - GOLD" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="scrapbookcampus.com" ta="0" tp="0" tt="D" ra="15" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]');

My suspicion is that this error is being caused by the fact that you have the PHP tags in your code. Try taking them out.

Viewing 25 replies - 2,526 through 2,550 (of 2,703 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.