• Resolved thatquirkynerdygirl

    (@thatquirkynerdygirl)


    I am getting the following errors on my job listing page:

    Warning: array_values() expects parameter 1 to be array, object given in /home/content/23/10695223/html/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-shortcodes.php on line 238

    Warning: implode() [function.implode]: Invalid arguments passed in /home/content/23/10695223/html/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-shortcodes.php on line 238

    It also will not load any of the jobs. Help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter thatquirkynerdygirl

    (@thatquirkynerdygirl)

    I found out that if I turned off the following option the errors would go away:

    Types Enable types for listings
    Choose whether to enable types. Types must be setup by an admin to allow users to choose them during submission.

    However, I need that option enabled so another solution is still needed. Thanks!

    Jeremy

    (@d4online)

    I’m having the same issue after updating the plugin to the latest version.

    After backtracing the source of the issue, I managed to come up with a quick fix:

    In /wp-content/plugins/wp-job-manager/wp-job-manager-functions.php, replace the get_job_listing_types() function (around line 257) with this:

    https://pastebin.com/S5iq9zN6

    I haven’t tested this solution extensively, but it seems to have at least restored the functionality of the [jobs] shortcode and is displaying all the jobs and types again, though some of the new settings will probably no longer have any effect.

    A permanent solution to this issue would be greatly appreciated.

    Plugin Contributor jonryan

    (@jonryan)

    @d4online thanks for posting this would you mind creating a new issue here with what you have done? https://github.com/Automattic/WP-Job-Manager/issues/new

    Jeremy

    (@d4online)

    I just updated to version 1.26.0, and the [jobs] shortcode is working fine again now.

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

The topic ‘Two Errors on Job Listing Page’ is closed to new replies.