Page 1 of 1

110915 Not loading CSS on PayPal Pro Form

PostPosted: September 18th, 2011, 12:00 pm
by lruckman
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!

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 18th, 2011, 7:51 pm
by Bruce C
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!

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 18th, 2011, 8:32 pm
by lruckman
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.

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 18th, 2011, 8:49 pm
by lruckman
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

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 19th, 2011, 9:01 am
by lruckman
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


Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 19th, 2011, 8:54 pm
by Cristián Lávaque
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.

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 19th, 2011, 9:32 pm
by lruckman
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.

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 19th, 2011, 11:19 pm
by lruckman
Well the plugin now activates/deactivates without issues but still the .js and .css files are not being generated for the PayPal Pro Form.

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 20th, 2011, 4:46 pm
by Cristián Lávaque
Got it. I'll email Jason about this.

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 20th, 2011, 5:22 pm
by Jason Caldwell
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/

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 21st, 2011, 9:52 am
by lruckman
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!

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 21st, 2011, 3:42 pm
by lruckman
Ok the hack works!
http://blog.divasolutions.com/subscribe-starter/

@Jason I sent the information via the page you posted.

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 27th, 2011, 6:33 pm
by Jason Caldwell
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.

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: September 28th, 2011, 12:11 pm
by sgtcory
Jason,

Great news - thanks. I also have one dev install on a Windows machine with the same issue.

Re: 110915 Not loading CSS on PayPal Pro Form

PostPosted: October 1st, 2011, 9:54 pm
by Jason Caldwell
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.