I think I figured out what it was, the text says “log in” but I had “login”.
However, I think my s2member-o file is still crashing my site. It’s subtle, but something’s not right. After uploading the file, there are things in my dashboard that are missing (see below). There are three items that don’t show up on the left and then my comments are all messed up and my Jetpack stats are gone. I’m certain it’s the s2member-o file because after I delete and purge all, all of this stuff returns.
This is the code of my file:
<?php
add_filter('gettext_with_context', function ($translated, $original, $context, $text_domain)
{
if($context === 's2member-front' && $text_domain === 's2member')
{
$my_translated = $original;
if($original === '<strong>Thank you.</strong> Your account has been approved.<br />— Please <a href="%s" rel="nofollow">log in</a>.')
$my_translated = '<strong>Thank you for subscribing! </strong> To access the Magickal Library, <a href="%s" rel="nofollow">login here</a>.<br />You will also receive a receipt and an account confirmation via email.';
else if($original === '<strong>Billing termination confirmed.</strong> Your account has been cancelled.')
$my_translated = 'Your Magickal Library subscription has been cancelled. You will continue to have access for the remainder of your billing period. You will also receive an email confirmation.';
else if($original === 'Nothing to cancel. You have NO recurring fees.')
$my_translated = 'You are not currently subscribed to the Magickal Library.';
else if($original === 'Nothing to cancel. You\'re NOT a paid Member.')
$my_translated = 'You are not currently subscribed to the Magickal Library.';
else if($original === '<strong>Thank you.</strong> Your account has been updated :-)')
$my_translated = '<strong>Thank you for subscribing! Your account has been updated and you can now access the <a href="https://www.schooloflifedesign.com/magickal-library/">Magickal Library</a>.<br />You will also receive a receipt and an account confirmation via email.';
else if($original === 'You`re entitled to UNLIMITED downloads though (so, no worries).')
$my_translated = 'You are entitled to UNLIMITED downloads.';
return $my_translated; // Return my modified translation.
}
}, 10, 4);
Do you know where I went wrong? I copied and pasted your code from above, and it’s basically the same save a couple minor edits: the addition of the accent in “You`re entitled”, changed “login” to “log in” as previously mentioned, and the translation for “Your account has been updated :-)” is slightly different.