• Resolved tfeclink

    (@tfeclink)


    When I click on the “Resume” link on the admin side I’m given a “file not found” error. I can see that resumes were uploaded, but they cannot be retrieved. I’ve tried resetting the permalinks, but that didn’t solve it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author PressTigers

    (@presstigers)

    Hello @tfeclink,

    Please make sure the uploaded resumes are available in the upload directory.

    If yes then please confirm did you migrate your site to any other server?

    Regards,

    Thread Starter tfeclink

    (@tfeclink)

    Yes, the files are available in the uploads directory and we haven’t migrated the site.

    Plugin Author PressTigers

    (@presstigers)

    Can you please check your file permissions? Either it can be problematic for downloading the resume.

    I am having this issue too. Just did a little troubleshooting and here is what I’m seeing:

    • Our site is a Multi-Site install of WordPress
    • looking at [ /includes/class-simple-job-board-resume-download-handler.php ] it appears there is no logic to build the file_path for where multi-site installs save the attachments
    • standard: wp-content/uploads/jobpost/2021/625_[filename].pdf
    • multi-site: wp-content/[site_id]/blogs.dir/files/jobpost/2021/625_[filename].pdf

    Is that something you guys are able to address?

    • This reply was modified 3 years, 2 months ago by tbossler.
    • This reply was modified 3 years, 2 months ago by tbossler.

    I “fixed the issue” on our site (until the plugin get updated and overwrites my changes).

    Edited /wp-content/plugins/simple-job-board/includes/class-simple-job-board-resume-download-handler.php
    Changed line 49 from:

    $file_path = SJB_UPLOAD_DIR . substr( strrchr( dirname($resume) , "/" ), 1) . '/' . sanitize_file_name( basename($resume) );

    to

    $file_path = "../" . get_option( 'upload_path' ) . "/jobpost/" . substr( strrchr( dirname($resume) , "/" ), 1) . '/' . sanitize_file_name( basename($resume) );

    Working for now!

    • This reply was modified 3 years, 2 months ago by tbossler.
    • This reply was modified 3 years, 2 months ago by tbossler.
    Thread Starter tfeclink

    (@tfeclink)

    I was able to fix the issue as well. The path stored in the database was good, so I dropped the other stuff and just set $file_path to be equal to $resume.

    I also have a multi-site setup for WordPress. Resumes upload just fine, but however the $file_path is calculated is inaccurate (even when the path is accurate in the database).

    Hopefully this can be resolved in the next update!

    Plugin Author PressTigers

    (@presstigers)

    Hello @tfeclink,

    We apologize for the inconvenience.

    Thank you for reporting this issue. We will surely fix this issue in our next release of SJB.

    Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘File not found’ is closed to new replies.