• Resolved ruyn13

    (@ruyn13)


    OK. So I was really excited about the update as now it would be able to use diacritics and other UTF-8 characters, which was good news for a site that is 20% UTF-8.

    Alas. I created my first test word with diacritics, all text on the page where it is contained disappeared. It only displayed the page title and header.

    As a test, next I used a simple English word. The pages containing that word displayed all text except for that word. So if the sentence was “The hairy dog jumped the fence” and the test word was “jump,” it only displayed “The hairy dog the fence.”

    What’s going on?

    https://www.ads-software.com/plugins/explanatory-dictionary/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter ruyn13

    (@ruyn13)

    OK. So I figured out it has to do with the class assigned to the words in the dictionary itself. class="explanatory-dictionary-highlight tooltip" is in the code, but if you delete “tooltip” from the code, everything works fine. Why is this in there to begin with?

    When I change it in /explanatory-dictionary/public/classes/default.php, everything works again. Please look into this!

    Thread Starter ruyn13

    (@ruyn13)

    It still doesn’t solve this issue with diacritics.
    Creating an entry for “hōp???āl” for instance, always makes all of the text disappear on the page that contains that word… This is a serious problem!

    Plugin Contributor rjvandoesburg

    (@rjvandoesburg)

    Hello Ruyun13,

    I’m having troubles trying to reproduce your problem.

    I’ve tried creating a page with the word you described “hōp???āl”, see the following screenshot: https://puu.sh/bysa8/9bb2da2db4.png

    Could you provide me with more details like
    – What version of WP are you using?
    – Can you try turning on WP_DEBUG and see if an error is thrown?
    – Can you post a screenshot of the term on the admin page and where it should be shown on the front?

    As for the second thing about the class class="explanatory-dictionary-highlight tooltip" this is so the tooltip can be placed and the first class is for styling reasons.
    Can you link to a page with a definition where the page is cut off so I can run some diagnostics and see if the script is what is causing the problems?

    Hello,

    I just upgraded and I’m experiencing the same issue. I’ll leave the plug-in active so you can look at it live. Here are screenshots of an example page and the source code too in case that’s helpful:

    Page with missing words pointed out: https://take.ms/Y1Ghp
    Source code with one of the repeated missing words highlighted: https://take.ms/WmB4E

    I’ve tried adjusting the settings of the plug-in to see if some other configuration would fix it, but I can’t get it to work.

    Here’s the URL of the page that the screenshots are from:

    https://www.yiddishwarmth.com/shop/may-all-your-teeth-fall-out-except-one-to-give-you-a-toothache-greeting-card

    Thank you for your help!
    Chloe

    Plugin Contributor rjvandoesburg

    (@rjvandoesburg)

    Hello yiddishwarmth and ruyn13,

    It seems that the class did cause the error, I’ve just uploaded version 4.1.2 that should stop the words from disappearing.

    Please let me know if the changes have fixed your problem.

    Plugin Contributor rjvandoesburg

    (@rjvandoesburg)

    Ps. yiddishwarmth I think the tooltip isn’t showing up for you because you have a Javascript error in plugins.min.js:7

    Now this error may cause other scripts stopping from executing so I’m not sure if this is the actual problem or not.

    Thread Starter ruyn13

    (@ruyn13)

    Ok. That definitely fixed any problems with normal English words. Thanks!

    I’m still having issues with all diacritic words, though.
    Here are the screenshots. I’m using WP 4.0. WP_DEBUG is not showing any errors.
    Here’s the word in the admin screen.
    Here’s the page before I activate the word.
    And here it is after I activate it.

    Weird, right?

    Plugin Contributor rjvandoesburg

    (@rjvandoesburg)

    Unfortunately it is.

    I will try to reproduce the problem myself until then you will have to wait or try to downgrade.

    Thanks for the screenshots, it makes the problem clear

    Thread Starter ruyn13

    (@ruyn13)

    Now here’s something interesting:
    If the term’s title is in normal English and the synonym is in diacritics, it works fine (for hōp???āl, I changed the title to “fuzzy” and made hōp???āl a synonym).

    Now I’m really confused… I hope that makes some sense to you and points you in the right direction.

    Thread Starter ruyn13

    (@ruyn13)

    Oh, and is there any way to get it to leave the settings on words as they already exist? For instance, hōp???āl in my page is always italics as are other words with diacritics, but Canaan isn’t. I don’t want all tooltips to be italics, just the ones that already were in the text.

    Thread Starter ruyn13

    (@ruyn13)

    Oh, and this happened:
    screenshot

    Hōp???āl is rendering as h??pì?é?ê???l in the tooltip. Maybe this has something to do with the problem?

    Plugin Contributor rjvandoesburg

    (@rjvandoesburg)

    Hello Ruyn,

    I have yet to find out why the content isn’t being show on your side, sorry for that.

    I’ve just uploaded version 4.1.4.

    As for the weird symbols in the tooltip, that should be fixed as well (I think because I couldn’t reproduce the problem)

    I’ve added a new option on the 3rd tab, if you select it you can style the words as you please and they won’t be overridden by the settings of the plugin.

    Perhaps you could send me a list of your plugins (if it’s not too long) because maybe another plugin is causing troubles with my plugin in showing content.

    Thread Starter ruyn13

    (@ruyn13)

    Whatever you did in that last update worked! Everything functions now!

    Thread Starter ruyn13

    (@ruyn13)

    Well, almost everything. If I set the “Limit number of tooltips shown” to 1, it still shows the same tool tip on the page for all synonyms as well (resulting in multiple instances instead of just 1). I suppose this isn’t a big problem as I probably won’t use them very often.

    Also, with the styling update, is there any way to get the words to be colored but not styled otherwise or is it an all or nothing situation?

    Plugin Contributor rjvandoesburg

    (@rjvandoesburg)

    Hello Ruyn,

    I’m happy to hear that it finally works for you ??

    As for your comment, I’ll look into that

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Causes all text on the page to disappear’ is closed to new replies.