Title: Add image doesn&#8217;t work &#8211; errors in console.
Last modified: January 19, 2017

---

# Add image doesn’t work – errors in console.

 *  Resolved [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/add-image-doesnt-work-errors-in-console/)
 * Hi,
    On one of my cleints website there is this error in the console. Once you
   click on add image modal pops up with empty inside.
 * Uncaught TypeError: Cannot read property ‘currentStyle’ of undefined
    at Object.
   getElementSize (wysija-editor.js?ver=2.7.6:3) at wysija-editor.js?ver=2.7.6:3
 * Permissions are ok in the wysija dir.

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

 *  [Wysija](https://wordpress.org/support/users/wysija/)
 * (@wysija)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/add-image-doesnt-work-errors-in-console/#post-8690102)
 * Seems like a conflict with your theme or another plugin: [http://docs.mailpoet.com/article/20-newsletter-editor-problems](http://docs.mailpoet.com/article/20-newsletter-editor-problems)
 *  Thread Starter [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/add-image-doesnt-work-errors-in-console/#post-8697317)
 * Not really. Checked with all plugins turned off.
    No other errors in the console,
   only the one with undefined object for your js file.
 *  Thread Starter [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/add-image-doesnt-work-errors-in-console/#post-8697323)
 * I’ve removed plugin and reinstalled it as well with no effect.
 *  Thread Starter [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/add-image-doesnt-work-errors-in-console/#post-8697362)
 * OK got it.
    It was caused by removing help tabs in functions.php
 *     ```
       add_action('admin_head', 'mytheme_remove_help_tabs');
       function mytheme_remove_help_tabs() {
           $screen = get_current_screen();
           $screen->remove_help_tabs();
       ```
   
 * It would be nice to mention you have debug function hidden down there in the 
   options 🙂

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

The topic ‘Add image doesn’t work – errors in console.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wysija-newsletters_ffddcc.svg)
 * [MailPoet Newsletters (Previous)](https://wordpress.org/plugins/wysija-newsletters/)
 * [Support Threads](https://wordpress.org/support/plugin/wysija-newsletters/)
 * [Active Topics](https://wordpress.org/support/plugin/wysija-newsletters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wysija-newsletters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wysija-newsletters/reviews/)

## Tags

 * [Console error](https://wordpress.org/support/topic-tag/console-error/)
 * [images](https://wordpress.org/support/topic-tag/images/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/add-image-doesnt-work-errors-in-console/#post-8697362)
 * Status: resolved