• Resolved leogc

    (@leogc)


    Hi there i got a Fatal Error in another Plug ind which shows references to WP Job Manager:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Job_Manager_Post_Types::maybe_add_default_meta_data(), 1 passed in …/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in …/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-post-types.php:1060 Stack trace: #0 …/wp-includes/class-wp-hook.php(286): WP_Job_Manager_Post_Types->maybe_add_default_meta_data(‘wp_insert_post’) #1 …/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 …/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 …/wp-content/plugins/essential-real-estate/public/partials/property/class-er in …/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-post-types.php on line 1060

    I’m not a developer and have no idea what this Error exacly means, somthing with the Hooks etc.? But has anyone any idea? Thanks for a short feedback. This Errors shows up ONLY in one Page with the function of submitting the entered form details as soon the user clicks on “Submit”

Viewing 5 replies - 1 through 5 (of 5 total)
  • This is a bug in the Essential Real Estate plugin. It is incorrectly calling the hook wp_insert_post here:
    essential-real-estate/public/partials/property/class-ere-property.php on line 233: do_action('wp_insert_post', 'wp_insert_post');

    This action expects 3 parameters. The first one should be the post ID, not another string wp_insert_post.

    As a temporary fix you can remove that line in thee file (it does nothing as the call to wp_insert_post() does the action directly), but when the developers do an update it will be overridden. Might be worth reaching out to them.

    Thread Starter leogc

    (@leogc)

    Thank you for the quick reply! Ok i was thinking that the Error is in the Real Estate Plug In itself. Just a last questin, if i delete the line will the “submit” still working or not?

    It will fix it failing at that specific point, but not sure if there are other issues. Right now that line really shouldn’t be doing anything.

    Jake

    Thread Starter leogc

    (@leogc)

    Thanks will try and let them know 🙂

    Thread Starter leogc

    (@leogc)

    I coming back to this case as i found something out 😉

    Maybe not so good, don’t know, but it is WP Job Manager which causes the issues, as soon i deactivated the Plug in and used all the other plug ins, all of them worked very well… Maybe you need to investigate a bit deeper? I tried a couple of things with active and deactive plug ins, but WP Job Manager is alway active as soon i get trouble 🙁 If it is deactive no error files created…

    Greetings

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fata Error – Colliding with other Plug In – Any Ideas?’ is closed to new replies.