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,
Yes, the files are available in the uploads directory and we haven’t migrated the site.
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 5 years, 4 months ago by
tbossler.
-
This reply was modified 5 years, 4 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 5 years, 4 months ago by
tbossler.
-
This reply was modified 5 years, 4 months ago by
tbossler.
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!
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,