Support » Plugin: WP Job Manager » Job Search not searching by Location

  • Resolved mstephan


    We’ve been running fine, but this past week migrated to Google Cloud.
    Then several days later we noticed some problems.
    Can’t search by location is the biggest.
    We don’t know if it’s connected, but:

    • when we do a job search for everywhere, it returns results.
    • when we do a job search for a specific location, it gives an error in javascript and returns nothing.

    The error:
    This is the error from WP debug mode:

    [21-Jan-2019 06:22:47 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /var/www/html/wp-content/plugins/wp-job-manager-indeed-integration/includes/class-wp-job-manager-indeed-import.php:116
    Stack trace:

    #0 /var/www/html/wp-content/plugins/wp-job-manager-indeed-integration/includes/import-framework/class-wp-job-manager-importer-integration.php(86): WP_Job_Manager_Indeed_Import->get_jobs_for_request(1, 'backfill')
    #1 /var/www/html/wp-content/plugins/wp-job-manager-indeed-integration/includes/import-framework/class-wp-job-manager-importer-integration.php(34): WP_Job_Manager_Importer_Integration::backfill_jobs(Array)
    #2 /var/www/html/wp-includes/class-wp-hook.php(288): WP_Job_Manager_Importer_Integration::job_manager_get_listings_result(Array)
    #3 /var/www/html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
    #4 /var/www/html/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-ajax.php(258): apply_filters('job_manager_get...', Array, Object(WP_Query))
    #5 /var/www/html/wp-includes/class-wp-hook in /var/www/html/wp-content/plugins/wp-job-manager-indeed-integration/includes/class-wp-job-manager-indeed-import.php on line 116

    In these logs when we look, at line 116 of indeed-import class we have WP_Error instead array.

    The code screenshots:

    We had the latest version of WP Job Manager. We downgraded a version and it still didn’t fix it.

    Our job feed seems to be working:

    Screenshot of Console in Chrome:

    • This topic was modified 1 year ago by mstephan.
    • This topic was modified 1 year ago by James Huff. Reason: fixed code formatting

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Job Search not searching by Location’ is closed to new replies.