• Resolved GarySproul

    (@garysproul)


    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:

    https://pastebin.com/cMu9fMKb

    Thank you very much for looking at this.

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 12 replies - 1 through 12 (of 12 total)
  • 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

    (@garysproul)

    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:

    https://www.hauntedgamecafe.com/news/extra-life-charity-24-hour-game-marathon/

    Thanks,
    Gary

    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

    (@garysproul)

    Thank you very much. That worked.

    Gary

    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.

    @ msabirm

    you might want to look for any PHP or js error.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    @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

    (@garysproul)

    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

    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.

    @ msabirm

    is it possible to post those error here? it might help solve the issue

    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)

    (@netweblogic)

    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.