• Resolved aaran76

    (@aaran76)


    I’m using WP Job Manager v1.29.2. I updated WordPress to the latest version (v4.9.2) and now my homepage is displaying the following errors where Job Listings are meant to be displayed.

    Notice: get_the_job_type is deprecated since version 1.27.0! Use wpjm_get_the_job_types instead. in /home/orchardoak/public_html/wp-includes/functions.php on line 3839

    I’ve downloaded the entire site contents to my local machine, changed my indexing options so that Windows 10 searches inside PHP and HTML files, but the “get_the_job_type” string isn’t found.

    I’ve no idea what else to do to locate this string to update the function.

    Please help!?

    Kind regards,
    Aaran

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Adam Heckler

    (@adamkheckler)

    The call to get_the_job_type() may be coming from a different plugin (or theme) besides WP Job Manager.

    Try disabling all of your plugins except WP Job Manager itself. Then try testing again to see if the issue persists. If that resolves your issue, you can find what was causing it by enabling each plugin one by one while continuing to test.

    If that doesn’t help, you can also try switching to the Twenty Sixteen theme via Appearance > Themes, and test again. If the issue is resolved then you know it’s a problem with the theme, and you’ll need to contact the theme author for further assistance.

    Let me know, thanks!

    Thread Starter aaran76

    (@aaran76)

    Hi Adam, and thanks for getting back to me.

    Thing is, I’ve downloaded the entire website and searched all files for that function name…didn’t get any results! VERY strange!

    Aaran

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    I would still try the plugin and theme switches I described above. Maybe you’ll find something…

    A last resort would be to use this filter to disable warnings for deprecated functions:

    https://github.com/WordPress/WordPress/blob/4.9.2/wp-includes/functions.php#L3835

    This code would do it:

    add_filter( 'deprecated_function_trigger_error', '__return_false' );

    Thread Starter aaran76

    (@aaran76)

    Ok…you were right. It was the theme.

    I fixed the errors on the homepage, but I can’t track these ones down.

    https://www.orchardoakrecruitment.co.uk/job/residence-co-ordinator/

    The error suggests looking in the wp-includes/functions.php file, but that was a dead end. Where might I look for this? Any idea?

    Aaran

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    Do those errors not go away when you switch themes?

    Thread Starter aaran76

    (@aaran76)

    Hi Adam – looks like it’s the WP Job Manager Geolocation plugin that’s failing now.

    ??

    Thread Starter aaran76

    (@aaran76)

    Right…ignore my last post – updated WP Job Manager Geolocation manually.

    New issue is:

    parsererror: SyntaxError: Unexpected token < in JSON at position 0

    The file referenced is:
    https://www.orchardoakrecruitment.co.uk/wp-content/plugins/wp-job-manager/assets/js/ajax-filters.min.js?ver=1.29.3

    Any clues on this one?

    Cheers,
    Aaran

    Thread Starter aaran76

    (@aaran76)

    I’ve closed this ticket and created a new one for the latest issue.

    Kind regards,
    Aaran

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    Aaran,

    Looks like you were able to solve that one as well.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Deprecated functions’ is closed to new replies.