• Resolved maja2019

    (@maja2019)


    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/f754j9pwbroav3g/misc_php_screenshot.png?dl=0

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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. You might also want to ask in the Elementor forum. 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

    (@maja2019)

    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

    (@maja2019)

    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.