Title: [Plugin: Events Manager] Missing Argument Error Message
Last modified: August 20, 2016

---

# [Plugin: Events Manager] Missing Argument Error Message

 *  Resolved [GarySproul](https://wordpress.org/support/users/garysproul/)
 * (@garysproul)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/)
 * I just upgraded to Version 4.17 and I’m getting an error message on the top line
   of my blog posts.
 * Warning: Missing argument 2 for em_content_wp_title() in /home1/hauntedg/public_html/
   news/wp-content/plugins/events-manager/em-events.php on line 156
 * Warning: Missing argument 3 for em_content_wp_title() in /home1/hauntedg/public_html/
   news/wp-content/plugins/events-manager/em-events.php on line 156
 * I’ve looked at that line in that file and it states:
 * [http://pastebin.com/cMu9fMKb](http://pastebin.com/cMu9fMKb)
 * Thank you very much for looking at this.
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

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

 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2305776)
 * just updated to 4.17 and looks ok with me. Can you try to change to default theme(
   twentyeleven) or if possible deactivate temporarily other plugins so that we 
   could see if its causing conflict. Also are you on buddypress or multisite mode?
 *  Thread Starter [GarySproul](https://wordpress.org/support/users/garysproul/)
 * (@garysproul)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2305782)
 * When I preview the site using the twentyeleven theme, the error still occurs.
 * I’ve tried deactivating some of the plugins, but I have quite a few and deactivating
   many of them causes them to forget all their settings.
 * I’m not currently on buddypress or multisite mode.
 * Here’s a link that shows the error:
 * [http://www.hauntedgamecafe.com/news/extra-life-charity-24-hour-game-marathon/](http://www.hauntedgamecafe.com/news/extra-life-charity-24-hour-game-marathon/)
 * Thanks,
    Gary
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2305790)
 * could you try adding default value on that line (line 156) here’s the code `function
   em_content_wp_title($title = '', $sep = '', $seplocation = ''){` and see what
   happens
 *  Thread Starter [GarySproul](https://wordpress.org/support/users/garysproul/)
 * (@garysproul)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2305842)
 * Thank you very much. That worked.
 * Gary
 *  [msabirm](https://wordpress.org/support/users/msabirm/)
 * (@msabirm)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2306002)
 * I had the same problem, then I tried disabling all plugins, then activate them
   one by one, and I discovered that the problem was the plugin PollDaddy Polls &
   Ratings. When it is turned off completely normal, but when I activated the error
   message appears.
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2306003)
 * @ msabirm
 * you might want to look for any PHP or js error.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2306004)
 * [@msabirm](https://wordpress.org/support/users/msabirm/)
 * are you on the latest version of EM?
 * also, does the error actually reference events manager in the error path, e.g.“
   in /home1/hauntedg/public_html/news/wp-content/<b>plugins/events-manager/</b>
   em-events.php on line 156”
 *  Thread Starter [GarySproul](https://wordpress.org/support/users/garysproul/)
 * (@garysproul)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2306005)
 * I just updated to EM Version 4.212
    I also deactivated Poll Daddy and the error
   has not reoccurred.
 * (I should have updated by itself, then checked for the error. Bad Tester, No 
   cookie for you.)
 * Gary
 *  [msabirm](https://wordpress.org/support/users/msabirm/)
 * (@msabirm)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2306006)
 * Hello, sorry if I answer only now.
    @ agelonwl I tried to look but I could not
   understand anything. The solution that you recommended in your post above to 
   GarySproul works, but you should give it every time you upgrade.
 * @ Marcus
    Yes I am using the latest version, the 4.212.
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2306008)
 * @ msabirm
 * is it possible to post those error here? it might help solve the issue
 *  [msabirm](https://wordpress.org/support/users/msabirm/)
 * (@msabirm)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2306009)
 * I have the same error described in the first post by GarySproul
 * > Warning: Missing argument 2 for em_content_wp_title() in /membri/sito/wp-content/
   > plugins/events-manager/em-events.php on line 156
   >  Warning: Missing argument
   > 3 for em_content_wp_title() in /membri/sito/wp-content/plugins/events-manager/
   > em-events.php on line 156
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2306010)
 * I’ll add these to avoid the error, but the offending plugin/theme should be adding
   these extra parameters to their apply_filters(‘wp_title’… because this filter
   should expect up to 3 arguments.
 * another solution is to disable error reporting so things like this (which won’t
   prevent the plugin from working normally) don’t ruin you screen view and just
   gets logged in files.

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

The topic ‘[Plugin: Events Manager] Missing Argument Error Message’ is closed to
new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 12 replies
 * 4 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-missing-argument-error-message/#post-2306010)
 * Status: resolved