• Folks,

    I did some searching and experimenting in the code to analyze the problem with missing attachments in emails. The problem is probably an incorrectly commented out area.

    I see the following three lines in the class-job-notifications.php file (in the includes folder) starting at line 310:

    (HINT: MAKE A BACKUP OF THE FILE BEFORE!)

    // // Add files to attachments
    // $filepath = Job_Postings_Helper::getFilePath( $value );
    // $attachments[] = $filepath;

    Remove the initial slashes here so it looks like:

    // Add files to attachments
    $filepath = Job_Postings_Helper::getFilePath( $value );
    $attachments[] = $filepath;

    Save the file. Test it.

    Important: Please note that this change will be lost when updating the plugin in the future. Therefore please do not keep the backup of this file in the plugins folder.

    (You may give me some KUDOS with favoriting this post.. :-))

    Cheers,
    Besim

Viewing 5 replies - 1 through 5 (of 5 total)
  • At first: thank you for the work.

    Unfortunately it seems to not work here on the site I am trying to use it. 🙁

    Hello,

    it worked for me but only on 2.5.4 not on 2.5.7.

    Greetings

    • This reply was modified 5 years, 1 month ago by flippo42.
    Thread Starter Besim Karadeniz

    (@besimk)

    I cannot confirm that. It’s working for me with 2.5.7.

    I put the corresponding file on my fileserver. Get the file, unzip it and copy the php file into the directory /wp-content/plugins/job-postings/include/

    https://cloud.netpla.net/index.php/s/d9j7Qft26fNiejP

    marco4110

    (@marco4110)

    Hi Besim, I followed your instruction. Unfortunately it does not work with 2.5.7 at my site. What are your settings for file storage in the plugin?

    Thread Starter Besim Karadeniz

    (@besimk)

    I have the problem again, oddly enough, without any changes since the revision. It is a pity that there is obviously no update for a problem that is reported by many users.

    Besim

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

The topic ‘Fix for missing attachements’ is closed to new replies.