This topic has 8 replies, 2 voices, and was last updated 6 years by jackbean.

  • Author
  • #175907
     jackbean
    Participant

    Hello,

    I have been gotting the error message below:

     

    COPY CODE
    PHP Notice:  
    
    WP_Admin_Bar::add_node was called <strong>incorrectly</strong>. The menu ID should not be empty. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.0.) 
    
    in /hermes/bosnaweb17a/b1766/ipg.prohrweborg/<strong>wp-includes/functions.php</strong> on line 4139

    I tried to find the problem in functions.php within the wp-includes folder but was not successful.  Can you offer some advice?

    I’m not sure but I think I started to experience this error after I activated the Jetpack plugin, could that be related? Would a plugin change the functions.php file inside the wp-includes folder?

    Thank you!

    JB

     

     

     

    #175909
     Kieran_SQ
    Moderator

    Hi,

    A plugin would not, or at least should not, change or affect core WordPress files. It is however possible that it is causing a conflict with WordPress. Please disable JetPack, clear your website cache, purge any CDN service and clear your local cache (Ctrl+F5) to see if the issue persists.

    If it does, please try disabling all other plugins that are not bundled with the theme, repeat the above steps and see if the issue persists.

    If it does you may wish to try the following

    – Check WordPress permissions for files and folders are correctly set via FTP (0644 for files and 0755 for folders) https://codex.wordpress.org/Changing_File_Permissions
    – Do a safe backup of both files and database and then navigate to WP Admin > Dashboard > Updates > ‘You have the latest version of WordPress’ and click ‘Reinstall now’ to make sure you have a clean and up to date version of WordPress. This will resolves any issues with corruption.

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #176012
     jackbean
    Participant

    Hi Kieran,

    Thanks for the suggestions.

    I tried to do all the things you suggested but am still encountering the error. What’s frustrating is that I cannot even find the line of code that’s causing the problem.

    Here are the error logs:

    20171008T062200: http://www.prohrweb.org/wp-admin/index.php
    PHP Notice: WP_Admin_Bar::add_node was called incorrectly. The menu ID should not be empty. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /hermes/bosnaweb17a/b1766/ipg.prohrweborg/wp-includes/functions.php on line 4139

    20171008T063625: http://www.prohrweb.org/wp-admin/edit.php
    PHP Notice: WP_Admin_Bar::add_node was called incorrectly. The menu ID should not be empty. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /hermes/bosnaweb17a/b1766/ipg.prohrweborg/wp-includes/functions.php on line 4139

    While I was researching this issue online, I saw that other Kleo user also had this problem (see attached doc), so i think maybe a solution already exist at SeventhQueen 🙂

    Thank you!

    JB

    Attachments:
    You must be logged in to view attached files.
    #176015
     jackbean
    Participant

    Hi Kieran,

    Just want to add one more thought…

    If you think this is a tough issue without an obvious solution, then just let me know I can close the ticket. i don’t want to waste your time if this is a quick fix because I think this is more of a WordPress issue, and not a Kleo theme issue, so I don’t want to take away your time and resources.

    thank you!

    JB

    #176016
     jackbean
    Participant

    Hi Kieran,

    i did a bit more digging and found the actual php function that was called and trigger the error is in the file “wp-includes/class-wp-admin-bar.php” , but unfortunately I cannot identify which Admin Bar menu item is causing the problem.

    Each time I click on a menu item on the Admin Bar, the error log will be generated:

    20171008T062200: http://www.prohrweb.org/wp-admin/index.php
    PHP Notice: WP_Admin_Bar::add_node was called incorrectly. The menu ID should not be empty. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /hermes/bosnaweb17a/b1766/ipg.prohrweborg/wp-includes/functions.php on line 4139

    20171008T063625: http://www.prohrweb.org/wp-admin/edit.php
    PHP Notice: WP_Admin_Bar::add_node was called incorrectly. The menu ID should not be empty. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /hermes/bosnaweb17a/b1766/ipg.prohrweborg/wp-includes/functions.php on line 4139

    Is there a way to test the php codes by “step” into the codes line-by-line, so I can see which step is causing the problem?

    Thanks!

    JB

    #176026
     Kieran_SQ
    Moderator

    Hi,

    If you remove the snippet in functions.php used to display a users name in menu item from your other ticket, clear caches etc, does the issue continue?

    Kieran.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #176056
     jackbean
    Participant

    Hi Kieran,

    thank you for continuing to think about my issues.

    I don’t think the the snippet in functions.php used to display a users name in menu item is the cause.

    But in anycase, I don’t know exactly how, but something changed to my WordPress, and the errors went away. In fact, even my WP dashboard interface changed. Maybe some kind of WP upgrade or refresh? But it seemed to make the error messages to go away 🙂

    Thanks again for all your patient help!

    Jay

    #176057
     Kieran_SQ
    Moderator

    Well I am glad it is sorted Jay 🙂

    As always, feel free to open a new ticket any time with any issues you’re facing.

    If you haven’t already, please consider leaving the theme and/or support received a review on ThemeForest. Every review really does help us.

    Thanks,

    Kieran.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #176185
     jackbean
    Participant

    Hi Kieran,

    Yes I will definitely leave an excellent review for the Kleo theme. It is not the simplest theme for a newbie (such as myself) to start with, but there are many features to allow expansion for the future. I’m very glad that I picked Kleo over other alternatives!

    Thank you again for looking into my issues, I appreciate all the help very much!

    JB

Viewing 9 posts - 1 through 9 (of 9 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?