Upfront issue with modifying header

When I enable a Upfront theme, I got this error on the admin dashboard:

Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/zen-menu-logic/zen-menu-logic.php:126) in /wp-includes/pluggable.php on line 1216

This only happens when an Upfront theme(it doesn't matter which Upfront theme) is enabled, swapping to the default WordPress, the error gone.

  • Adam Czajczyk

    Hi Christopher,

    I hope you're well today and thank you for your question!

    I've checked the issue on your site and on my test setup and the error you were getting there was actually a message "masking" a real issue. Switching on WP debugging showed that the real error was "no locations" coming from Zen Menu Logic plugin.

    The plugin does have some restrictions:

    This plugin only works under the following conditions:
    1. the theme has registered at least one menu location
    2. user has created at least one custom menu with one or more
    menu items.
    3. user has selected which menu location the plugin should work on
    in the Settings -> Zen Menu Logic options page

    [https://wordpress.org/plugins/zen-menu-logic/]

    Those seemed to have been met but apparently it also breaks if no menu is assigned to the location on "Appearance -> Menus" page in "Manage Locations" section.

    For now, I have assigned a default Fixer menu there and that seems to solve the problem. I don't see the error anymore and I was able to logout and login to the wp-admin area with no issues now, while Zen Menu Logic and Upfront theme are still enabled.

    I hope that helps :slight_smile:

    Best regards,
    Adam