• Resolved npcobserver

    (@npcobserver)


    I’ve been using the plugin to replace the preset comments title (One thought on/X thoughts on . . .) to simply “Comments & Pingbacks” (see screenshot and relevant code from the theme below). But I’ve recently discovered that the plugin is no longer working, even though I didn’t touch it since I set it up a while back. I activated the plugin (and only it) in troubleshooting mode and it still didn’t work. I’d appreciate any help with the issue!

            <?php
                printf( // WPCS: XSS OK.
                    esc_html( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'colinear' ) ),
                    number_format_i18n( get_comments_number() ),
                    '<span>' . get_the_title() . '</span>'
                );
            ?>
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Lee Willis

    (@leewillis77)

    As a test, I dropped the PHP code you provided into my theme (https://www.dropbox.com/s/oqf9jsprlhjt24i/Screenshot%202024-03-12%20at%2016.32.16.png?dl=0), and set up replacements as per the screenshot you sent (https://capture.dropbox.com/XWkaJmrtJxDdu5Bm) and everything was replaced as expected:

    https://capture.dropbox.com/6We8IJ03MP3aYv7B

    My guess is that either your theme isn’t using exactly those strings any more, or potentially you have some custom code that’s interfering as it doesn’t seem to be an issue with the Say What? plugin itself.

    Thread Starter npcobserver

    (@npcobserver)

    Thanks for your quick reply! It looks like somehow the plugin just doesn’t work on my site anymore. I’ve tried replacing both the same string and different strings (simple ones like “Previous”) and doing so in different themes, all in troubleshooting mode, so all other plugins were disabled. Nothing has worked. If you have any suggestions for anything else I can do to figure out the issue, I’d love to hear it. I’ll also try WordPress support to see if they can find the problem. In any event I appreciate your help and your work!

    Plugin Author Lee Willis

    (@leewillis77)

    The most likely cause is that you have some code somewhere attached to the translation filters that is acting incorrectly and overriding the replacements inadvertently.

    robindesign

    (@robindesign)

    I have been using the free version of this plugin for many years because I only needed simple changes which I could do in Settings. It has worked great until 2 days ago when I updated to version 2.2.1. Using this most recent version, none of my text changes work anymore, such as replacing ‘Out of stock’ with ‘Sold Out’. I restored this plugin to its prior version 2.1.9 and now everything is working again. Do I need to stay on version 2.1.9 in order for text changes to continue working?

    Thread Starter npcobserver

    (@npcobserver)

    @robindesign: I restored the plugin to v. 2.1.9 after seeing your reply and it’s now working again!

    Plugin Author Lee Willis

    (@leewillis77)

    @npcobserver / @robindesign

    It’s certainly sounding like there’s an issue, but we’re still (frustratingly) unable to reproduce what you’re seeing. We’d love to work with you to investigate further though. As we’ll like need to go through some specifics with you, please can you reach out on our contact form (https://plugins.leewillis.co.uk/support/) with the following information:

    • What PHP version you have installed
    • Any errors / warnings in your logs when the non-working version of say-what is installed?
    Plugin Author Lee Willis

    (@leewillis77)

    Just as a follow up to this. We’ve just pushed v2.2.2 which fixes an issue where the list of configured replacements might not be loaded properly (affecting sites with an active object cache). Please can you let us know if that resolves the issues you were seeing?

    Thread Starter npcobserver

    (@npcobserver)

    @leewillis77: Yes, the new version does seem to function properly. Thank you!

    Plugin Author Lee Willis

    (@leewillis77)

    @npcobserver – great thanks for confirming!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Plugin no longer works’ is closed to new replies.