• Resolved gihantimantha

    (@gihantimantha)


    Actually there is no called method in line 329..what is the problem there..?

    Warning: Missing argument 2 for get_post_meta(), called in /home/content/34/6198134/html/magga/wordpress/wp-content/plugins/events-manager/classes/em-event.php on line 329 and defined in /home/content/34/6198134/html/magga/wordpress/wp-includes/post.php on line 1465

    http://ww.wp.xz.cn/extend/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Have you tried to temporarily:

    – deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    – switching to the default theme to rule out any theme-specific problems

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    could it be that you have an older version of WP? recent versions allow argument 2 to be optional

    Thread Starter gihantimantha

    (@gihantimantha)

    Got it agelonwl and Marcus… Thanks for your responces.Here is the solution. I make the 2nd parameter as null as it is a string according to the API. Now it works fine.

    http://codex.ww.wp.xz.cn/Function_Reference/get_post_meta

    Thanks for the solution, but since I am not a coder (this deep anyway) how do I apply this to fix my issue? Can you give me the exact code and where to put it?

    @therealbodysculpter,

    you have to edit this php file /wp-includes/post.php then search and edit this function get_post()

    e.g. it should be something like

    function get_post( $post = null, $output = OBJECT, $filter = 'raw' ) {

    or

    function get_post_meta($post_id, $key = '', $single = false) {

    Note: this might not be recommended and you might want to upgrade your wp

    @agelonwl – Suggesting that users make changes to core files is NOT good advice.

    yes, that is not recommended as per my note above; you need to upgrade your wordpress if you are using old wp version as per Marcus suggestion.

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

The topic ‘How to fix get_post_meta() error…..’ is closed to new replies.