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.

Problem with Billing Method icons + PaypalPro

Home Forums Community Forum Problem with Billing Method icons + PaypalPro

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

Topic Author Topic
Posted: Friday May 11th, 2012 at 3:04 pm #13217
Ben Head
Username: BenH

Hi Guys,

I’m working on someone’s s2member plugin, I’ve integrated PayPalPro successfully but the Billing Method icons appear to be obscured like so:

Any advice would be highly appreciated!

  • This topic was modified 4 years, 8 months ago by  Ben Head.
  • This topic was modified 4 years, 8 months ago by  Ben Head.

List Of Topic Replies

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Saturday May 12th, 2012 at 2:47 pm #13308
Eduan
Username: Eduan
Moderator

Hello Ben,
this seems to be a problem with your theme’s JavaScript, or CSS settings, it appears somehow it’s making images be cut, or something.

I suggest you install a tool like Firebug, and examine the pro-form, make sure there’s nothing strange.

Hope this helps. :)

Posted: Monday Dec 10th, 2012 at 10:14 pm #34195
Daisy Peel
Username: daisypeel

My icons are not showing at all, and in addition, I get this error:

The stylesheet https://mysite.com/wp-content/plugins/s2member/s2member-o.php was not loaded because its MIME type, “text/html”, is not “text/css”.

this is when viewed in Firebug. When viewed in Chrome, it says that there is a GET 500 server error associated with the s2member-o.php file. And the paypal pro images don’t render if I turn the SSL requirement off, just to see if it was an SSL issue.

More information – this error was brought to my attention when a customer reported that the payment page (using s2member_force_ssl and a paypal pro shortcode), which has been working for months, was no longer working. The only thing that has changed is that I updated S2member this past week… :(

MORE – Of course it seems to be a theme issue, as activating the default theme returns the Paypal Pro form to ‘normal’ – however, this theme conflict was not present prior to the upgrade of s2Member. Is there some information you can perhaps give me so that I can let the theme developers know and troubleshoot on their end as well as yours?

  • This reply was modified 4 years ago by  Daisy Peel.
  • This reply was modified 4 years ago by  Daisy Peel.
Posted: Tuesday Dec 11th, 2012 at 10:01 am #34259
Eduan
Username: Eduan
Moderator

Thanks for the report Daisy!

I will notify Jason immediately. :)

All right, I notified him.

Posted: Tuesday Dec 11th, 2012 at 8:12 pm #34313
Staff Member

Thanks for the heads up on this thread.

Regarding what you said here…

The stylesheet https://mysite.com/wp-content/plugins/s2member/s2member-o.php was not loaded because its MIME type, “text/html”, is not “text/css”.

MORE – Of course it seems to be a theme issue, as activating the default theme returns the Paypal Pro form to ‘normal’ – however, this theme conflict was not present prior to the upgrade of s2Member. Is there some information you can perhaps give me so that I can let the theme developers know and troubleshoot on their end as well as yours?

This indicates to me that s2Member’s dynamic CSS, which is loaded via the /s2member-o.php file, is causing a fatal error in PHP, resulting in an incorrect MIME type, and the loss of any valid CSS being produced by this file, as it normally would be.

Since disabling the theme you’re using corrects the issue, I suspect a conflict between s2Member and your theme of choice. We’ll be happy to help you identify the conflict. Please check your PHP error logs where the file /s2member-o.php is mentioned. If you can post the PHP error that is occurring, that will give us some insight, and should lead to a resolution for you.

Posted: Tuesday Feb 12th, 2013 at 3:03 pm #41582
Yosuke Hasumi
Username: yosuke

I’ve got a very similar problem with one of my sites. In chrome inspect I’m seeing an error

Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://mysite.com/wp-content/plugins/s2member/s2member-o.php". 
Resource interpreted as Script but transferred with MIME type text/html: "http://mysite.com/wp-content/plugins/s2member/s2member-o.php". 

In my php access log I’ve got:

xx.xx.xx.xx - - [12/Feb/2013:11:22:43 -0800] "GET /wp-content/plugins/s2member/s2member-o.php HTTP/1.1" 200 351 "http://mysite.com/mypage/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/xx.xx.xx.xx Safari/537.17" 

And nothing in my error log (I’ve got logging set to E_ALL)

Eitherway, the main reason that I’m chasing this down is because for some reason when i use:

echo c_ws_plugin__s2member_pro_paypal_form::sc_paypal_form($attr);

I can’t get s2member to recognize my level 1 users as being logged in, and it asks for them to register. Of course this behaviour doesn’t happen when I’m logged in as admin. Also the MIME type errors are no longer there.

I don’t mean to pirate someone else’s thread but I figured any additional info would be helpful. I’ll post any findings here as well

Posted: Tuesday Feb 12th, 2013 at 3:15 pm #41583
Yosuke Hasumi
Username: yosuke

Well also one obvious thing I see now is that my stylesheet and javascript files aren’t being included properly when I’m logged in as anything but and admin. While logged in as an Admin i see:

<link rel='stylesheet' id='ws-plugin--s2member-css'  href='http://mysite.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css=1&#038;qcABC=1&#038;ver=130207-130207-3720587274' type='text/css' media='all' />
<script type='text/javascript' src='http://mysite.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=8c48310414fb134502986c1fcff2870c&#038;qcABC=1&#038;ver=130207-130207-3720587274'></script>

But as anything else:

<link rel='stylesheet' id='ws-plugin--s2member-css'  href='http://mysite.com/wp-content/plugins/s2member/s2member-o.php' type='text/css' media='all' />
<script type='text/javascript' src='http://mysite.com/wp-content/plugins/s2member/s2member-o.php'></script>

Any ideas why my script wouldn’t be loading correctly?

Posted: Tuesday Feb 12th, 2013 at 4:09 pm #41585
Yosuke Hasumi
Username: yosuke

I’ve realized that since this seems to be a Role/Authorization issue i should start looking at some of the plugins installed on my site. After systematically disabling/enabling my plugins i found the culprit – WordPress Better Security.

It looks like this plugin has caused issues with others:
http://www.s2member.com/forums/topic/better-worpress-security/
http://www.s2member.com/forums/topic/better-wp-security-plugin-conflict/
http://www.s2member.com/forums/topic/s2member-and-better-wp-security-conflict/

Notably that it ends up messing up head styles and scripts. Now it looks like everything is back online. hope this helps

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.