Hello all,
I’m using OJS 3.3.0.14. The journal had a malware attack recently, I don’t know if it has something related with that. The point is that now all the pdf links are broken. The files are still in the files folder. What can I do?
Thank you
Hello,
Fortunately, the PDF files are still stored in the files folder. To address this issue, follow these steps:
Check File Locations:
First, verify that your PDF files are in their correct locations within the files folder.
Configuration File Check:
Ensure that the file paths specified in your OJS configuration file are accurate. This file path should point to the correct location of your PDF files.
Permissions Verification:
Confirm that the folder permissions for both the files directory and the files themselves are set correctly.
By systematically reviewing these aspects, you can identify and resolve the issue with your broken PDF links.
I cleaned the malware and did a backup restore and the problem seems to be solved. However, I found out that I have the files directory in the public_html folder. How can I move it without affecting everything? Also, my hosting provider recommended me to create a script that allows just some kind of files for the submission process, is there a plugin for that in OJS?
However, I found out that I have the files directory in the public_html folder. How can I move it without affecting everything?
Create a Backup: Before making any changes, it’s crucial to create a backup of your entire website
Move the “files” Directory: Use FTP or your hosting control panel’s file manager to move the entire “files” directory from public_html to the new directory
Update Configuration: You will likely need to update the configuration of your OJS to point to the new location of the “files” directory.
Open the config file: config.inc.php
Find files_dir line
files_dir = new directory must here
Test: After making these changes, thoroughly test your journal to ensure that everything is functioning as expected.
Also, my hosting provider recommended me to create a script that allows just some kind of files for the submission process, is there a plugin for that in OJS?
You can use this plugins for this:
Allowed Uploads Plugin
Control Public Files