Some PDFs there don’t work because they were imported using XML import which had a bug at that time. But other, that are uploaded normally works well, e.g. http://journals.sfu.ca/present3/index.php/demojournal/article/view/6/9. For those not-working PDFs there, no files exist in the system – they were not imported because of the bug.
I just checked the logo upload there and it worked for me i.e. I do not get the error you did. There are just no logos used there.
When I however remove permissions for the web user from my public folder (where logo images are saved), I get the same error as you, so I still believe you might have a problem with permissions for the web user on your public folder. And as far as I understand, your PDF files are there, in the file folder, thus also this is not the same problem as in the OJS official demo installation.
Unfortunately I cannot reproduce the second problem of @zackzaidi78 with the message “No file uploaded or invalid file type”
However, both file and public folder and everything in them have to be readable and writable for the web user for this to work… @zackzaidi78, if your file folder also readable and writable for the web user?
I have all folders 777 permissions just to test but still now luck. I have also changed the user and group to www-data:www-data. I have also tried both png and jpg images but still get the following error
Thank you for the reply.
After strugling for a while I just ran the following 2 command on the entire folder
chown -R www-data:www-data folder
chmod -R 755 /folder
I upgraded from 2.4.8 to 3.0.2
I have a vps running on ubuntu 16.04.
I will have a look at the logs again.
If I tail the log file while trying to upload the file, there are no errors in the log file, just a couple of those nitices that appear.
Is there someware in the code that I can debug or troubleshoot this? We have 5 OJS installations, that were all upgraded and I have this issue on all of them.