• Resolved farnely

    (@farnely)


    I’m using plugins that create custom fields and frontend edit forms. Plugins are from the same author. Am running WP 5.6.

    When editing a form containing colorpicker fields, I see the error in the subject line in inspection tools with a reference to /wp-admin/js/color-picker.min.js?ver=5.6:2. I’ve raised the issue with the developer but they say the error content doesn’t point to a problem with their plugin. I’m out of my comfort zone with JS but I’ve gleaned enough to suspect the error could have something to do with internationalization. I’m not using anything that defers loading of JS files. I’ve cleared browser cache with no success. Might the custom field plugin need to add wp-i18n as a dependency?

    Is the plugin author right (in that it’s not their problem) or is there something I can do or check to prove the opposite and get the issue sorted? I’d appreciate any assistance – thank you. (apologies if I’ve raised this in the wrong forum)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    1. Please provide a link to a page on your site where we can see this. Thanks. Note: Your link will be public and we will not later remove it.

    2. Which plugin?

    There is an wp.i18n in Gutenberg development. Most of the time developers will make a const {__} = wp.i18n; so it matches the i18n function in WordPress API. It could be they have a typo and typed a dash instead of a period. Did you try looking under the inspector console to see if it tells you where the error occurred?

    • This reply was modified 5 years, 5 months ago by mrtom414.
    Thread Starter farnely

    (@farnely)

    Thank you both for your responses. After a bit more digging around and trialling various scenarios, I’ve managed to demonstrate to the developer that there is an issue requiring their attention. It’s been escalated. Am closing this since it appears to not be wordpress core related.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught TypeError: wp.i18n is undefined’ is closed to new replies.