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.

second url for testing purpose before migrate

Home Forums Community Forum second url for testing purpose before migrate

This topic contains 7 replies, has 3 voices. Last updated by  Bruce 3 years, 11 months ago.

Topic Author Topic
Posted: Tuesday Jan 15th, 2013 at 5:39 am #37566
Nicolas
Username: nicolassacre

Hello,

We have a S2Members Pro licence for our website abc.com

Now we want to move our website to another server.

We have cloned our website on another website with a test domain url. We have updated wordpress to new domain and paths. S2Members Pro doesn’t work on our test domain (we cannot login to our account). The rest of our WordPress website works.

I have read this topic http://www.s2member.com/forums/topic/migrate-my-wordpress-site-to-another-server/ but I doesn’t find any field in My Profile on s2Member.com to put my test domain.

So what can I do ?

List Of Topic Replies

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Tuesday Jan 15th, 2013 at 12:55 pm #37595
Staff Member

Thanks for reporting this important issue.

Please log into your account at s2Member.com and update your “Primary Domain” from this page.
http://www.s2member.com/profile/

The s2Member software itself does not contain any routines that would prohibit you from testing your site in a staging server or from any other kind of development server. If s2Member is not functioning properly in your development environment, it is not because of your Primary Domain listed at s2Member.com.

Please let us know if problems persist :-)

Posted: Wednesday Jan 16th, 2013 at 10:41 am #37741
Nicolas
Username: nicolassacre

Following my test, it is the file s2-hacks.php in mu-plugin/ that block the access to wp-admin.

I found this link: http://www.s2member.com/forums/topic/remove-css-and-optimize-js/ but i don’t seem to be working for me.

In fact, I have my operational website on server A (provider A). I would like to install same site on server B (provider B) for testing. Website A (provider A) and wp-admin are working good, website B is ok (missing some menu) but wp-admin (provider B) isn’t working…If I remove s2-hacks, wp-admin is reacheable.

What’s the solution?

My s2members version is v120703.

Posted: Thursday Jan 17th, 2013 at 1:28 pm #37906
Staff Member

Thanks for your reply :-)

Please post the exact code that you have in your s2-hacks.php file. We really can’t go very far in debugging custom code that you’ve implemented, but if you would like to post it here, maybe we’ll spot something.

See also: s2Member® » Support Policy » Within Scope

Posted: Friday Jan 18th, 2013 at 3:37 am #38011
Nicolas
Username: nicolassacre

This is my s2-hacks.php.

<!--[if !IE]>
<style>
div.s2member-pro-paypal-form-description-div
   {
      font-size: 140% !important;
      font-family: "HelveticaNeue", "Helvetica Neue", Arial, sans-serif !important;
   }
.s2member-pro-paypal-form
	{
		line-height: 0.5em !important;
	}
.s2member-pro-paypal-form p
	{
		margin : 0 0 10px 0;
	}
.s2member-pro-paypal-form-response-div	
	{
		line-height: 1.5em !important;
	}	
.ws-plugin--s2member-pro-login-widget-form
	{
		margin: 0 0 0 0;
	}
.ws-plugin--s2member-pro-login-widget-form br
	{
		display: none;
	}	
</style>
<![endif]-->


<?php

add_action ("ws_plugin__s2member_after_loaded", "remove_s2_pro_css");
function remove_s2_pro_css ()
    {
        remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_css_js::css");
    }	
	
?>
Posted: Sunday Jan 20th, 2013 at 12:55 am #38394
Staff Member

Thanks for your reply :-)

You will need to rename that file to s2-o.php please. Please see:
Pre Sale FAQs » How can I prevent s2Member® Pro from loading it’s default CSS?

Also, I think the reason you’re having problems with this file, is that you’re attempting to print CSS from this file, without it being attached to any hook/filter. So what’s happening is that your CSS is printing to the screen of every page on the site, above everything else, including the <html> tag :-)

Posted: Monday Jan 21st, 2013 at 4:01 am #38571
Nicolas
Username: nicolassacre

Thank you for your reply.

I tested already the rename of s2-hacks before posting my first post and this solution doesn’t work. The add of “” doesn’t work too.

Any other idea?

Posted: Wednesday Jan 23rd, 2013 at 2:00 am #39120
Bruce
Username: Bruce
Staff Member

Thanks for your reply.

As Jason mentioned, it looks like the problem here is that you have CSS styles at the beginning of the file, which is being put into the page before anything else loads, causing problems:

Also, I think the reason you’re having problems with this file, is that you’re attempting to print CSS from this file, without it being attached to any hook/filter. So what’s happening is that your CSS is printing to the screen of every page on the site, above everything else, including the tag :-)

Please try moving this CSS from your s2-o.php file, and into your theme’s style.css file instead, or use the wp_enqueue_style hook to include this CSS.

See: WordPress.org » Function Reference » wp_enqueue_style

Please let us know if problems persist after doing this. :-)

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

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.