Title: Javascript error for the widget in the backend
Last modified: August 21, 2016

---

# Javascript error for the widget in the backend

 *  Resolved [RVOLA](https://wordpress.org/support/users/rvola/)
 * (@rvola)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-for-the-widget-in-the-backend/)
 * Hello,
 * I noticed a bug in version 4.2.11 to display the widget on the backend.
    Indeed,
   users whose level is lower than ‘**manage_options**‘ can not use the dropdown
   to view.
 * A Javascript error: Uncaught TypeError:
    `Can not call method 'submit' of null`
 * The problem lies in the file :
 * > google-analytics-dashboard-for-wp/admin/dashboard_widgets.php
 * line **132**.
    `<form id="ga-dash" method="POST">` is included in a `if (current_user_can('
   manage_options '))`
 * just down
    `<form id="ga-dash" method="POST">` a line **152** and other users
   can switcher views
 * [https://wordpress.org/plugins/google-analytics-dashboard-for-wp/](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/)

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

 *  [Alin Marcu](https://wordpress.org/support/users/deconf/)
 * (@deconf)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-for-the-widget-in-the-backend/#post-4691619)
 * Thanks, you’re right.
 *     ```
       ?>
        <form id="ga-dash" method="POST">
       <?php
       ```
   
 * Will go on line 112, to be sure that we also cover the switch profile functionality.
 *  [ChadAustin](https://wordpress.org/support/users/chadaustin/)
 * (@chadaustin)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-for-the-widget-in-the-backend/#post-4691830)
 * Kudos to a plugin author who is responsible. Excellent.

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

The topic ‘Javascript error for the widget in the backend’ is closed to new replies.

 * ![](https://ps.w.org/google-analytics-dashboard-for-wp/assets/icon.svg?rev=2243225)
 * [ExactMetrics - Google Analytics Dashboard for WordPress (Website Stats Plugin)](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [ChadAustin](https://wordpress.org/support/users/chadaustin/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-for-the-widget-in-the-backend/#post-4691830)
 * Status: resolved