• Resolved bbtodd

    (@bbtodd)


    Some of the jobs on the site I’m working on are showing an error on some of the job listings. When I click on the “Apply for This Job” button I’m getting two errors.

    Warning: include(): Filename cannot be empty in … /wp-job-manager/wp-job-manager-template.php on line 27

    Warning: include(): Failed opening ” for inclusion (include_path=’.:/usr/share/php’) in .. wp-job-manager/wp-job-manager-template.php on line 27

    Not sure if this has anything to do with it but on the job edit page, this field is empty:
    External “Apply for Job” link:

    This job was pulled in via an RSS feed.

    Any insight into what the problem is?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bbtodd

    (@bbtodd)

    I think that the root cause of this is that on the edit job backend, the form field External “Apply for Job” link: is empty and my guess is it’s not being auto-filled when the RSI feed comes in.

    But despite that, shouldn’t there be a check in the PHP code to see if the variable is empty or not, so that you don’t get this error when clicking on the button?
    include(): Filename cannot be empty in … wp-job-manager/wp-job-manager-template.php on line 27

    Link to page.

    Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    Hi @bbtodd !

    I’m a bit confused about the External “Apply for Job” link field. By default, WP Job Manager doesn’t have such a field. Is that being added by a plugin or some custom code?

    By default, WP Job Manager does have the Application Email/URL field (https://d.pr/i/UgWAOp) and if that one is empty, the Apply button won’t show up, ie. the code does check if the field is empty or not.

    Thread Starter bbtodd

    (@bbtodd)

    Thank you for the response. We’re using Cariera Theme and Fetch Jobs plugins as well. So maybe one of those is adding this field.

    It’s odd that the default field for the apply button appears to be overridden. Will have to dig into this further.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Errors when clicking on Apply button’ is closed to new replies.