PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

110915 Not loading CSS on PayPal Pro Form

s2Member Plugin. A Membership plugin for WordPress®.

110915 Not loading CSS on PayPal Pro Form

Postby lruckman » September 18th, 2011, 12:00 pm

I've created a checkout form using the shortcode generated by S2 but the css is not loading.

The css appears to be being referenced like so:

Code: Select all
<link rel='stylesheet' id='ws-plugin--s2member-css'  href='http://blog.divasolutions.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css=1&#038;qcABC=1&#038;ver=110915-110915-1011436612' type='text/css' media='all' />


but I am not seeing anything even when I access this page directly. The same issue appears to be affecting the javascript as included like so:

Code: Select all
<script type='text/javascript' src='http://blog.divasolutions.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=1101b0fba526d1693e978649eed7526d&#038;qcABC=1&#038;ver=110915-110915-1011436612'></script>


You can see the affected page here: http://blog.divasolutions.com/subscribe-starter/ which shows that css is not being applied.

I see there was a similar issue that was fixed in 110913. Help!
User avatar
lruckman
Registered User
Registered User
 
Posts: 14
Joined: September 18, 2011

Re: 110915 Not loading CSS on PayPal Pro Form

Postby Bruce C » September 18th, 2011, 7:51 pm

I can't get this to happen anymore. Try deleting and reinstalling, or make sure there are no updates available. Did you update your PRO module as well as the free version when you did you update?

If that doesn't work, try changing your theme, and see if that helps. If you have a caching plugin, it may help to clear the cache.

Hope that helps!
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: 110915 Not loading CSS on PayPal Pro Form

Postby lruckman » September 18th, 2011, 8:32 pm

I've re-installed both and made sure they are the latest versions, disabled all plugins, tried different themes but still no luck both the css and js for the page are empty. At one point I tried inserting random echos (that's the extent of my php knowledge) in the source to see if the class/function responsible ever gets called but I never see anything returned.

The only thing I do see is when I activate the s2 plugin I get the following message.


s2Member has been reactivated, with the latest version.
You now have version 110915. Your existing configuration remains.
Have fun, read the Changelog, and make some money! :-)

The plugin generated 258 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
User avatar
lruckman
Registered User
Registered User
 
Posts: 14
Joined: September 18, 2011

Re: 110915 Not loading CSS on PayPal Pro Form

Postby lruckman » September 18th, 2011, 8:49 pm

Calling the s2member.php file directly after removing the direct call check is showing me the error

Fatal error: Call to undefined function get_bloginfo() in C:\Inetpub\vhosts\divasolutions.com\subdomains\blog\httpdocs\wp-content\plugins\s2member\s2member.php on line 113


I'll keep going
User avatar
lruckman
Registered User
Registered User
 
Posts: 14
Joined: September 18, 2011

Re: 110915 Not loading CSS on PayPal Pro Form

Postby lruckman » September 19th, 2011, 9:01 am

I've honestly tried everything I can think of and I am just about to give up.

As a last ditch effort I enabled debugging but don't really know whats normal (an excerpt below)

[19-Sep-2011 13:56:57] PHP Notice: Undefined index: s2member_pro_paypal_checkout in C:\Inetpub\vhosts\divasolutions.com\subdomains\blog\httpdocs\wp-content\plugins\s2member-pro\includes\classes\gateways\paypal\paypal-form-in.inc.php on line 763
[19-Sep-2011 13:56:57] PHP Notice: Undefined index: s2member_pro_paypal_checkout in C:\Inetpub\vhosts\divasolutions.com\subdomains\blog\httpdocs\wp-content\plugins\s2member-pro\includes\classes\gateways\paypal\paypal-form-in.inc.php on line 764
[19-Sep-2011 13:56:57] PHP Notice: Undefined index: s2member_pro_paypal_checkout in C:\Inetpub\vhosts\divasolutions.com\subdomains\blog\httpdocs\wp-content\plugins\s2member-pro\includes\classes\gateways\paypal\paypal-form-in.inc.php on line 766
[19-Sep-2011 13:56:57] PHP Notice: Undefined variable: captcha in C:\Inetpub\vhosts\divasolutions.com\subdomains\blog\httpdocs\wp-content\plugins\s2member-pro\includes\classes\gateways\paypal\paypal-form-in.inc.php on line 770
[19-Sep-2011 13:56:57] PHP Notice: Undefined variable: opt_in in C:\Inetpub\vhosts\divasolutions.com\subdomains\blog\httpdocs\wp-content\plugins\s2member-pro\includes\classes\gateways\paypal\paypal-form-in.inc.php on line 774
[19-Sep-2011 13:57:03] PHP Notice: Undefined variable: no_cache_already_sent in C:\Inetpub\vhosts\divasolutions.com\subdomains\blog\httpdocs\wp-content\plugins\s2member\includes\classes\no-cache.inc.php on line 157
[19-Sep-2011 13:57:03] PHP Notice: Undefined variable: cache_needs_updating in C:\Inetpub\vhosts\divasolutions.com\subdomains\blog\httpdocs\wp-content\plugins\s2member\includes\classes\cache.inc.php on line 97
[19-Sep-2011 13:57:03] PHP Notice: Undefined index: SERVER_ADDR in C:\Inetpub\vhosts\divasolutions.com\subdomains\blog\httpdocs\wp-content\plugins\s2member\includes\classes\systematics.inc.php on line 54
[19-Sep-2011 13:57:32] PHP Notice: Undefined variable: no_cache_already_sent in C:\Inetpub\vhosts\divasolutions.com\subdomains\blog\httpdocs\wp-content\plugins\s2member\includes\classes\no-cache.inc.php on line 157
[19-Sep-2011 13:57:32] PHP Notice: Undefined variable: cache_needs_updating in C:\Inetpub\vhosts\divasolutions.com\subdomains\blog\httpdocs\wp-content\plugins\s2member\includes\classes\cache.inc.php on line 97

User avatar
lruckman
Registered User
Registered User
 
Posts: 14
Joined: September 18, 2011

Re: 110915 Not loading CSS on PayPal Pro Form

Postby Cristián Lávaque » September 19th, 2011, 8:54 pm

The get_bloginfo function is from WordPress, not s2Member, so the problem with it could mean a problem with your installation. https://codex.wordpress.org/Function_Re ... t_bloginfo

https://codex.wordpress.org/Updating_Wo ... ual_Update
http://codex.wordpress.org/Upgrading_WordPress_Extended

viewtopic.php?f=36&t=247

You may also want to test disabling other plugins in case there is a conflict with one that's causing the trouble.

I hope that helps.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: 110915 Not loading CSS on PayPal Pro Form

Postby lruckman » September 19th, 2011, 9:32 pm

All that has been done, disabled all plugins, tried different themes and even re-installed wordpress (3.2.1) and the s2 plugins countless times. I just don't know.
User avatar
lruckman
Registered User
Registered User
 
Posts: 14
Joined: September 18, 2011

Re: 110915 Not loading CSS on PayPal Pro Form

Postby lruckman » September 19th, 2011, 11:19 pm

Well the plugin now activates/deactivates without issues but still the .js and .css files are not being generated for the PayPal Pro Form.
User avatar
lruckman
Registered User
Registered User
 
Posts: 14
Joined: September 18, 2011

Re: 110915 Not loading CSS on PayPal Pro Form

Postby Cristián Lávaque » September 20th, 2011, 4:46 pm

Got it. I'll email Jason about this.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: 110915 Not loading CSS on PayPal Pro Form

Postby Jason Caldwell » September 20th, 2011, 5:22 pm

Thanks for reporting this important issue.

Hmm. That's interesting. Even with the update this is not working?
Is there anything else special about your WordPress installation?

For now, you can fix this by reverting s2Member back to it's original behavior.

Please create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Code: Select all
<?php
add_action 
("ws_plugin__s2member_after_loaded", "s2_hacks");
function s2_hacks ()
    {
        $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["s2o_url"] = site_url ("/");
    }
?>
In the mean time, if you can please submit a Dashboard login we'll have a closer look for you and find out what's going on by running diagnostics. Please submit the information privately with this form: http://www.s2member.com/contact/
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: 110915 Not loading CSS on PayPal Pro Form

Postby lruckman » September 21st, 2011, 9:52 am

I'll have the info for you tonight when I get home. The only thing out of the ordinary that I can think of is WordPress is installed on a windows machine. More tonight, thanks!
User avatar
lruckman
Registered User
Registered User
 
Posts: 14
Joined: September 18, 2011

Re: 110915 Not loading CSS on PayPal Pro Form

Postby lruckman » September 21st, 2011, 3:42 pm

Ok the hack works!
http://blog.divasolutions.com/subscribe-starter/

@Jason I sent the information via the page you posted.
User avatar
lruckman
Registered User
Registered User
 
Posts: 14
Joined: September 18, 2011

Re: 110915 Not loading CSS on PayPal Pro Form

Postby Jason Caldwell » September 27th, 2011, 6:33 pm

Thank you for allowing us to test this in your environment. The issue has been identified, and will be resolved in the next release of s2Member. Thank you. Once you get s2Member 110928+, you will be able to remove the s2-hacks.php file if you prefer. Coming later this evening.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: 110915 Not loading CSS on PayPal Pro Form

Postby sgtcory » September 28th, 2011, 12:11 pm

Jason,

Great news - thanks. I also have one dev install on a Windows machine with the same issue.
Webmaster Services - http://rentedweb.com
User avatar
sgtcory
Experienced User
Experienced User
 
Posts: 24
Joined: May 28, 2011

Re: 110915 Not loading CSS on PayPal Pro Form

Postby Jason Caldwell » October 1st, 2011, 9:54 pm

Confirmed. Bug fixed in development copy. Coming soon in public release.
* (s2Member) **Bug fix**. Bug first introduced in s2Member v110912. s2Member's new optimized method of loading its CSS/JS was causing some problems on a few Windows® server environments. In some cases, s2Member was unable to properly identify itself through the `/s2member-o.php` file, given limitations of the core WordPress® function `plugin_basename()`. A symptom of this bug was for s2Member to fail at loading its CSS/JS libraries. Fixed in this release.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 4 guests

cron