• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Warning: Missing argument 2 for add_filter(), called in

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Warning: Missing argument 2 for add_filter(), called in

This topic is: not resolved

Tagged: error message missing argument

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 1 month ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 8, 2014 at 6:24 am #113365
    gvanaart
    Member

    I do get the next message when I put my website on another server:
    Warning: Missing argument 2 for add_filter(), called in /public/sites/www.nillessencoaching.nl/wp-content/themes/executive-pro/front-page.php on line 21 and defined in /public/sites/www.nillessencoaching.nl/wp-includes/plugin.php on line 79 executive theme

    On the Developer site I don't get this warning.

    Can you help me on this? ( I can't show you the site as I have to put it live right away, i don't want to show this error message.)

    Kind regards,
    Georgette

    July 8, 2014 at 7:54 am #113389
    Brad Dalton
    Participant

    This is what i find in the front-page.php file for the Executive Pro theme

    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    Looks ok to me.

    Did you install a plugin or add/modify code before this happened?


    Tutorials for StudioPress Themes.

    July 8, 2014 at 8:25 am #113394
    gvanaart
    Member

    No, the strange thing is everything is OK on the developer site. But when I transfer it ( trhough FTP) the warning appears.
    Everything works fine, I have PHP warning on "false" so it should not show up.

    Is it possible the other provider does have a method to overrule this?
    I mean, when I could hide this warning everything would be ok.

    Thanks for your quick reply!

    Kind regards,
    Georgette

    July 8, 2014 at 1:09 pm #113459
    Brad Dalton
    Participant

    Might be a server issue.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble