Support » Plugin: WP Job Manager » Issues importing jobs since upgrading WPJM

  • Resolved lssw

    (@lssw)


    Since I upgraded WJPM, I’ve been having fatal errors with WPJM when I attempt to use WP All Import to import jobs. Is this a known issue? Is there a way I can revert the WPJM upgrade?

    Here is an example of the error:

    PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Job_Manager_Post_Types::maybe_add_default_meta_data(), 1 passed in /var/www/html/wp-content/plugins/wp-job-manager/includes/3rd-party/wp-all-import.php on line 17 and exactly 2 expected in /var/www/html/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-post-types.php:1011
    Stack trace:
    #0 /var/www/html/wp-content/plugins/wp-job-manager/includes/3rd-party/wp-all-import.php(17): WP_Job_Manager_Post_Types-\u003emaybe_add_default_meta_data(29834)
    #1 /var/www/html/wp-includes/class-wp-hook.php(288): wpjm_pmxi_saved_post(29834)
    #2 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook-\u003eapply_filters(”, Array)
    #3 /var/www/html/wp-includes/plugin.php(465): WP_Hook-\u003edo_action(Array)
    #4 /var/www/html/wp-content/plugins/wp-all-import-pro/models/import/record.php(3878): do_action(‘pmxi_saved_post’, 29834, Object(SimpleXMLElement), true)
    #5 /var/www/html/wp-content/plugins/wp-all-import-pro/models/import/record.php(364): PMXI_Import_Record-\u003eprocess( in /var/www/html/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-post-types.php on line 1011

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, I have the same kind of error when I tried to upgrade PHP 7.1 to 7.3

    I get this error:

    Backend fatal error: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Job_Manager_Post_Types::maybe_add_default_meta_data(), 1 passed in /home/WEBSITE/domains/WEBSITE.nl/public_html/wp-content/plugins/wp-job-manager/includes/3rd-party/wp-all-import.php on line 17 and exactly 2 expected in /home/WEBSITE/domains/WEBSITE.nl/public_html/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-post-types.php:1011\nStack trace:\n#0 /home/WEBSITE/domains/WEBSITE.nl/public_html/wp-content/plugins/wp-job-manager/includes/3rd-party/wp-all-import.php(17): WP_Job_Manager_Post_Types->maybe_add_default_meta_data(2913)\n#1 /home/WEBSITE/domains/WEBSITE.nl/public_html/wp-includes/class-wp-hook.php(288): wpjm_pmxi_saved_post(2913)\n#2 /home/WEBSITE/domains/WEBSITE.nl/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)\n#3 /home/WEBSITE/domains/WEBSITE.nl/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)\n#4 /home/WEBSITE/d in /home/WEBSITE/domains/WEBSITE.nl/public_html/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-post-types.php on line 1011\n

    Having the same issue:

    ArgumentCountError: Uncaught exception ‘ArgumentCountError’ with message ‘Too few arguments to function WP_Job_Manager_Post_Types::maybe_add_default_meta_data(), 1 passed in /nas/content/live/moving2canada/wp-content/plugins/wp-job-manager/includes/3rd-party/wp-all-import.php on line 17 and exactly 2 expected’ in /nas/content/live/moving2canada/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-post-types.php:1011
    in WP_Job_Manager_Post_Types::maybe_add_default_meta_data called at /nas/content/live/moving2canada/wp-content/plugins/wp-job-manager/includes/3rd-party/wp-all-import.php (17)
    in wpjm_pmxi_saved_post called at ? (?)
    in call_user_func_array called at /nas/content/live/moving2canada/wp-includes/class-wp-hook.php (288)
    in WP_Hook::apply_filters called at /nas/content/live/moving2canada/wp-includes/class-wp-hook.php (310)
    in WP_Hook::do_action called at /nas/content/live/moving2canada/wp-includes/plugin.php (465)
    in do_action called at /nas/content/live/moving2canada/wp-content/plugins/wp-all-import-pro/models/import/record.php (3870)
    in PMXI_Import_Record::process called at /nas/content/live/moving2canada/wp-content/plugins/wp-all-import-pro/models/import/record.php (364)
    in PMXI_Import_Record::execute called at /nas/content/live/moving2canada/wp-content/plugins/wp-all-import-pro/src/Scheduling/Import.php (54)
    in Wpai\Scheduling\Import::process called at /nas/content/live/moving2canada/wp-content/plugins/wp-all-import-pro/actions/wp_loaded_99.php (153)
    in pmxi_wp_loaded_99 called at ? (?)
    in call_user_func_array called at /nas/content/live/moving2canada/wp-includes/class-wp-hook.php (286)
    in WP_Hook::apply_filters called at /nas/content/live/moving2canada/wp-includes/class-wp-hook.php (310)
    in WP_Hook::do_action called at /nas/content/live/moving2canada/wp-includes/plugin.php (465)
    in do_action called at /nas/content/live/moving2canada/wp-settings.php (546)
    in require_once called at /nas/content/live/moving2canada/wp-config.php (74)
    in require_once called at /nas/content/live/moving2canada/wp-load.php (37)
    in require_once called at /nas/content/live/moving2canada/wp-cron.php (39)

    I reverted to the previous version of WPJM and it fixed the issue for me, but I’m hoping that this issue is fixed in the next version of the plugin because I can’t upgrade it until it is fixed.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi!

    Can you all try updating to 1.33.1 and let me know if that resolves it?

    Hi Richard,

    Unfortunately, that did not help. It did not create the same type of error (in fact my server did not log any errors), but the imports would not complete.

    I had to revert back again to keep the site running.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hmm, 1.33.2 should have fixed it. If you still have issues with 1.33.2, please contact WP All Import and let them know. Let me know what they say!

    Plugin Contributor Richard Archambault

    (@richardmtl)

    I’m marking this thread as Resolved as it’s been more than a month since the last reply. If you still need help, please do reply again and mark the thread as Unresolved!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Issues importing jobs since upgrading WPJM’ is closed to new replies.