• Resolved candell

    (@candell)


    Hi

    We are creating post types in WP Job Manager automatically, however for each job we initially receive an error on first try, then on second try it works. Here’s the error on first try

    Fatal error:  Uncaught Error: Class 'WP_Job_Manager_Usage_Tracking' not found in /home/clientdirectory/public_html/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-post-types.php:1306
    Stack trace:
    #0 /home/clientdirectory/public_html/wp-includes/class-wp-hook.php(292): WP_Job_Manager_Post_Types->track_job_submission('publish', 'new', Object(WP_Post))
    #1 /home/clientdirectory/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #2 /home/clientdirectory/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home/clientdirectory/public_html/wp-includes/post.php(5014): do_action('transition_post...', 'publish', 'new', Object(WP_Post))
    #4 /home/clientdirectory/public_html/wp-includes/post.php(4284): wp_transition_post_status('publish', 'new', Object(WP_Post))
    #5 /home/clientdirectory/public_html/wp-content/plugins/ourCPTsynchronizerplugin/new/postSynchronizer/SimplePostSynchronizer.php(283): wp_insert_post(Array)
    #6 /home/clientdirectory/public_html/wp-content/plugins/ourCPTsynchronizerplugin/new/postSynch in /home/clientdirectory/public_html/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-post-types.php on line 1306

    Can you shed any light as to what is happening?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    Hi @candell !

    I’m not sure what you mean by “creating post types in WP Job Manager automatically”. Do you have some custom script that is adding job posts to WPJM?

    Thread Starter candell

    (@candell)

    Hi @bindlegirl

    Thanks for the reply, we are doing exactly that yes. We have a plugin that populates a custom post type (and associated meta and taxonomies) within WordPress from a third party job CRM.

    Our process is

    • Find new jobs added to job CRM via CRM API
    • Grab the job data
    • Create a new post in WordPress and populate all required data

    We have integrated with WPJM many times with great success, however on this project our cron jobs to synchronise the data errors. They do have many add ons installed, more than any other project we have worked with. Might one of the addons cause this issue?

    Thanks

    Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    @candell Huh, that’s really hard to know with no access to the code and site. We can’t help much with debugging custom code.

    That being said, what you describe (code not working in the first run but successful in the second one) and the error you posted, make me think this is a priority issue. “Something” in your custom code is trying to access WPJM class too early and would need to have its priority changed.

    But this is just a wild guess.

    Might one of the addons cause this issue?

    That’s always a possibility ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Uncaught Error: Class ‘WP_Job_Manager_Usage_Tracking’ not found’ is closed to new replies.