Page 1 of 1

wp-includes/js/l10n.js

PostPosted: September 26th, 2011, 2:59 am
by drbyte
Hi Cris

I know those 2 files belongs to WP...Is S2m utilizing them too? Asking because they were not in the header before

wp-includes/js/l10n.js
wp-includes/js/jquery/jquery.js

Sam

Note sure but they are gone :?: Interesting

Thanks

Re: wp-includes/js/l10n.js

PostPosted: October 1st, 2011, 9:02 pm
by Jason Caldwell
Hi Sam. Yes, the l10n.js file and the jquery.js file are both dependencies.

l10n.js is VERY small, just a couple lines, which includes support for internationalization, and the jquery.js file is the jQuery framework, used by WordPress itself, and many other plugins. So loading jQuery happens automatically, as WordPress is instructed to do so, through the wp_enqueue_script() function. See: http://codex.wordpress.org/Function_Ref ... eue_script

Re: wp-includes/js/l10n.js

PostPosted: October 3rd, 2011, 11:27 pm
by drbyte
Thank you.

I am seeing a small problem with the password strength indicator in the registration page. It does not seems to work. It works fine when I try to modify my info but not on the registration page.

I have those loaded:

Code: Select all
/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css


Code: Select all
/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals


Code: Select all
<script type='text/javascript'>
/* <![CDATA[ */
var pwsL10n = {
   empty: "Strength indicator",
   short: "Very weak",
   bad: "Weak",
   good: "Medium",
   strong: "Strong",
   mismatch: "Mismatch"
};
try{convertEntities(pwsL10n);}catch(e){};
/* ]]> */
</script>


I do have W3 Total Cache installed but not having any registration problems with new members. The registration goes fine..it's just password strength indicator somehow is disabled.

Sam

Re: wp-includes/js/l10n.js

PostPosted: October 7th, 2011, 7:29 pm
by Jason Caldwell
Thanks for the follow-up.

Hmm, I tested this again just now in s2Member v111003 and it seems to be working. If this problem continues for you, can you please open your registration page in Firefox and go up to Web Developer -> Error Console. Please post a copy of any script errors that you have on your registration page. Also, are there any other plugins running that might be affecting your registration form in some way? ( i.e. a possible conflict? )

SNAG-0020.png
SNAG-0020.png (12.38 KiB) Viewed 380 times



Anyone else having this problem?

Re: wp-includes/js/l10n.js

PostPosted: October 8th, 2011, 2:24 am
by drbyte
Hi Jason

Here are the errors:

server does not support RFC 5746, see CVE-2009-3555

Warning: Unknown property 'font-color'. Declaration dropped.
Source File: /wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css=1&qcABC=1&ver=111003-111003-1154855617
Line: 1

Warning: Expected 'important' but found 'ie'. Expected ';' or '}' to terminate declaration but found 'ie'. Declaration dropped.
Source File: /wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css=1&qcABC=1&ver=111003-111003-1154855617
Line: 1

Warning: Unknown property 'box-sizing'. Declaration dropped.
Source File: /wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css=1&qcABC=1&ver=111003-111003-1154855617
Line: 1

It's not working on the registration page but working on when modifying the user profile.

I have these plugins

All in One SEO Pack
Fast Secure Contact Form
Google XML Sitemaps
s2Member/Pro
W3 Total Cache
WP-PageNavi

Thank you

Re: wp-includes/js/l10n.js

PostPosted: October 8th, 2011, 2:59 pm
by Jason Caldwell
Thanks for the follow-up Sam.
OK, all of those are harmless warnings related to cross-browser considerations. Very common. Hmm, your other plugins look fine too. Can you please email us a link to the registration form so we can see this in action. Either post it here, that's fine, or send it via this contact form:
http://www.s2member.com/contact/

Re: wp-includes/js/l10n.js

PostPosted: October 10th, 2011, 11:26 am
by drbyte
Hi Jason

It's all OK now. It was simply a jquery conflict! I had <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> on the footer.

I added a custom footer to the registration page to avoid the conflict. Lazy Sam :D

Thank you

Re: wp-includes/js/l10n.js

PostPosted: October 12th, 2011, 12:09 pm
by Jason Caldwell
Ah, thank you VERY much for reporting back on this Sam.
~ Much appreciated.