Title: Function add_menu_page was called incorrectly.
Last modified: June 1, 2022

---

# Function add_menu_page was called incorrectly.

 *  Resolved [maja2019](https://wordpress.org/support/users/maja2019/)
 * (@maja2019)
 * [4 years ago](https://wordpress.org/support/topic/function-add_menu_page-was-called-incorrectly/)
 * Having WordPress 6.0
    All plugins up-to-date, cache and cookies cleared, problem
   still persists.
 * The whole error is:
 *     ```
       Notice: Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.) in /home/customer/www/actgreener.co/public_html/wp-includes/functions.php on line 5831
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/actgreener.co/public_html/wp-includes/functions.php:5831) in /home/customer/www/actgreener.co/public_html/wp-admin/includes/misc.php on line 1380
       ```
   
 * The website seems to be working ok on the front side. However, at the back I 
   get this Notice with Warning and I’m unable to use Elementor properly (there 
   is no save button to save the changes, but a button to get the pro version).
 * Screenshots showing misc.php line 1380 and funcions.php line 5831:
    [https://www.dropbox.com/s/70k8iwlvcbqfkun/functions_php_screenshot.png?dl=0](https://www.dropbox.com/s/70k8iwlvcbqfkun/functions_php_screenshot.png?dl=0)
   [https://www.dropbox.com/s/f754j9pwbroav3g/misc_php_screenshot.png?dl=0](https://www.dropbox.com/s/f754j9pwbroav3g/misc_php_screenshot.png?dl=0)
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunction-add_menu_page-was-called-incorrectly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [mrtom414](https://wordpress.org/support/users/mrtom414/)
 * (@mrtom414)
 * [4 years ago](https://wordpress.org/support/topic/function-add_menu_page-was-called-incorrectly/#post-15699556)
 * functions.php is code that has been added by the theme. It would probably be 
   best to ask the theme developer. The message cannot modify the header after it
   has been sent is usually generated by an error or function trying to produce 
   some unexpected error. The misc.php is part of wordpress and probably isn’t the
   issue. The support page for the theme can be found here [oceanwp](https://wordpress.org/support/theme/oceanwp/).
   You might also want to ask in the [Elementor forum](https://wordpress.org/support/plugin/elementor/).
   If you have made any changes to functions.php file you should revisit the change.
   It the most likely cause of the problem.
 *  Thread Starter [maja2019](https://wordpress.org/support/users/maja2019/)
 * (@maja2019)
 * [4 years ago](https://wordpress.org/support/topic/function-add_menu_page-was-called-incorrectly/#post-15701818)
 * Thank you so much! I’ll investigate further as you recommended. Once I resolve
   the issue I post here how I did that and then mark as resolved.
 *  Thread Starter [maja2019](https://wordpress.org/support/users/maja2019/)
 * (@maja2019)
 * [4 years ago](https://wordpress.org/support/topic/function-add_menu_page-was-called-incorrectly/#post-15722225)
 * The problem was was fixed by disabling the “Analytify – Google Analytics Dashboard”
   plugin.

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

The topic ‘Function add_menu_page was called incorrectly.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [maja2019](https://wordpress.org/support/users/maja2019/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/function-add_menu_page-was-called-incorrectly/#post-15722225)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
