Title: JS errors
Last modified: May 14, 2020

---

# JS errors

 *  Resolved [argosmedia](https://wordpress.org/support/users/argosmedia/)
 * (@argosmedia)
 * [6 years ago](https://wordpress.org/support/topic/js-errors-19/)
 * It only shows “Loading …” and it hangs. The console shows these errors:
 *     ```
       Uncaught TypeError: Cannot read property 'indexOf' of null
           at mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
           at mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
           at Object../src/js/libs/glfx.js (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at o (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at Object../src/js/tools/bulge_pinch.js (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at o (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at r (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
           at Array.forEach (<anonymous>)
           at e.value (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
       mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1 Uncaught TypeError: Cannot read property 'canvas' of undefined
           at Object.constrain (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at Object.update (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at Object.toWorld (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at e.value (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at t.value (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at t.value (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at HTMLDocument.<anonymous> (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
       constrain @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       update @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       toWorld @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       value @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       value @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       value @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       (anonymous) @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1 Uncaught TypeError: Cannot read property 'data_function' of undefined
           at e.value (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at e.value (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at HTMLDocument.<anonymous> (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
       value @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       value @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       (anonymous) @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1 Uncaught TypeError: Cannot read property 'data' of null
           at t.value (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at t.value (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at HTMLDocument.<anonymous> (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
       value @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       value @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       (anonymous) @ mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1
       213mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1 Uncaught TypeError: Cannot read property 'data_function' of undefined
           at e.value (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at e.value (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
           at HTMLDocument.<anonymous> (mini-paint.min.js?ver=06bb93f784803d4b29d8707b0e7a02e2305269404aa431f3:1)
       ```
   
    -  This topic was modified 6 years ago by [argosmedia](https://wordpress.org/support/users/argosmedia/).

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

 *  Plugin Author [Dev](https://wordpress.org/support/users/devadattas/)
 * (@devadattas)
 * [6 years ago](https://wordpress.org/support/topic/js-errors-19/#post-12834876)
 * [@argosmedia](https://wordpress.org/support/users/argosmedia/) Are you using 
   the latest version of WP Paint. Also, WP Paint only works for images hosted on
   the same domain as WordPress. Can you check the images are hosted on the same
   domain?
 *  Thread Starter [argosmedia](https://wordpress.org/support/users/argosmedia/)
 * (@argosmedia)
 * [6 years ago](https://wordpress.org/support/topic/js-errors-19/#post-12834928)
 * Yes, latest version (0.4.4), and all locally hosted. Does the plugin contact 
   your server somehow maybe? I have a geoblocking feature on my server that may
   block the plugin.
 *  Plugin Author [Dev](https://wordpress.org/support/users/devadattas/)
 * (@devadattas)
 * [6 years ago](https://wordpress.org/support/topic/js-errors-19/#post-12834983)
 * [@argosmedia](https://wordpress.org/support/users/argosmedia/) The plugin is 
   completely hosted on the WordPress local environment. It doesn’t contact any 
   third-party service. Are you trying on the Latest Google Chrome Browser?
 *  Thread Starter [argosmedia](https://wordpress.org/support/users/argosmedia/)
 * (@argosmedia)
 * [6 years ago](https://wordpress.org/support/topic/js-errors-19/#post-12835029)
 * Ah! That got me thinking. I use Brave (a secure chromium based browser). When
   I disable Brave’s built-in protection, the plugin works fine. I’ll look into 
   it what protection feature exactly causes the conflict.
 * Thanks for the quick support!!
 *  Plugin Author [Dev](https://wordpress.org/support/users/devadattas/)
 * (@devadattas)
 * [6 years ago](https://wordpress.org/support/topic/js-errors-19/#post-12835171)
 * I am guessing Brave browser could be blocking HTML5 Canvas operations etc. Glad
   that the issue is resolved. If you liked our plugin and support please do leave
   us a 5-star feedback rating at [https://wordpress.org/support/plugin/wp-paint/](https://wordpress.org/support/plugin/wp-paint/)
   that will be very motivating.
 *  Thread Starter [argosmedia](https://wordpress.org/support/users/argosmedia/)
 * (@argosmedia)
 * [6 years ago](https://wordpress.org/support/topic/js-errors-19/#post-12836124)
 * FYI: There is an option within the Brave Shields feature called “Fingerprinting
   attempts blocked” which blocks the plugin. Choosing another option (“Cross-site
   fingerprinting blocked”, or “All fingerprinting attempts allowed”) clears the
   path to the plugin.
    -  This reply was modified 6 years ago by [argosmedia](https://wordpress.org/support/users/argosmedia/).
 *  Plugin Author [Dev](https://wordpress.org/support/users/devadattas/)
 * (@devadattas)
 * [6 years ago](https://wordpress.org/support/topic/js-errors-19/#post-12836194)
 * [@argosmedia](https://wordpress.org/support/users/argosmedia/) Thanks for the
   detailed info. This would be a helpful reference for other users as well.

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

The topic ‘JS errors’ is closed to new replies.

 * ![](https://ps.w.org/wp-paint/assets/icon-256x256.png?rev=2134827)
 * [WP Paint - WordPress Image Editor](https://wordpress.org/plugins/wp-paint/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-paint/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-paint/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-paint/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-paint/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-paint/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Dev](https://wordpress.org/support/users/devadattas/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/js-errors-19/#post-12836194)
 * Status: resolved