• WordPress Version: 6.5.3
    Jobs for WordPress Plugin Version: 2.7.7

    When using the Job Apply form to send attached documents, the form never completes when attaching to the “CV & Documents” field. The progress spinner just spins and there are no messages. The Job Entry is created with the Attached file(s). However, the notification email(s) are not sent.

    It does work correctly when only attaching to the “Letter” field.

    The Debug shows this error:

    [16-May-2024 14:52:18 UTC] PHP Fatal error:  Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /home/pkofcqyg8h4v/public_html/dev.informationevolution.com/wp-content/plugins/job-postings/include/class-job-posting-helper.php:223
    Stack trace:
    #0 /home/pkofcqyg8h4v/public_html/dev.informationevolution.com/wp-content/plugins/job-postings/include/class-job-posting-helper.php(223): strpos()
    #1 /home/pkofcqyg8h4v/public_html/dev.informationevolution.com/wp-content/plugins/job-postings/include/class-job-notifications.php(122): Job_Postings_Helper::getFilePath()
    #2 /home/pkofcqyg8h4v/public_html/dev.informationevolution.com/wp-content/plugins/job-postings/include/class-job-application-submit.php(553): JobNotifications::sendEntryEmail()
    #3 /home/pkofcqyg8h4v/public_html/dev.informationevolution.com/wp-includes/class-wp-hook.php(324): JobApplicationSubmit::ajax_submit()
    #4 /home/pkofcqyg8h4v/public_html/dev.informationevolution.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #5 /home/pkofcqyg8h4v/public_html/dev.informationevolution.com/wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 /home/pkofcqyg8h4v/public_html/dev.informationevolution.com/wp-admin/admin-ajax.php(192): do_action()
    #7 {main}
      thrown in /home/pkofcqyg8h4v/public_html/dev.informationevolution.com/wp-content/plugins/job-postings/include/class-job-posting-helper.php on line 223

    We have hidden the CV field for now using the custom CSS feature.

Viewing 1 replies (of 1 total)
  • Tim

    (@tgsgmbh)

    Hi,
    I just installed this plugin and ran into the same issue.

    A quick fix is to change line 122 in
    wp-content/plugins/job-postings/include/class-job-notifications.php
    from
    $filepath = Job_Postings_Helper::getFilePath( $field );
    to
    $filepath = Job_Postings_Helper::getFilePath( $field['value'] );

    The email notification then works for me.

Viewing 1 replies (of 1 total)
  • The topic ‘Job Apply Form Freezes when Attaching CV Document’ is closed to new replies.