I'm having a problem on uploading files (pdf's, html and such) and hope i can find some answers on what is going on with our system. Recently we moved our OJS site to a new server. The only problem that i was encountering right now is that when i tried to upload a pdf files as an 'Editor/Author'
it looks like it works normally but nothing is being uploaded. please see screenshot below:
This is the part where we upload galley files:

In process of uploading pdfs: (even doc file, jpgs etc will not work even having 1kb file size only)

Note that it was successfully upload, but not the file! When i clicked the View Proof, it will be a blank page

For me to test on what is the problem occurring on our system, I've turned the debug=on in config.inc.php to Display an error message when something goes wrong.
display_errors = On
Upon doing the steps above and click upload, this message comes up (note: ive changed values for our dbase and file paths). i really don't know what it says.. :S
- Code: Select all
dbase_name has produced an error Message: WARNING: move_uploaded_file(file/journals/61/articles/2008/public/2008-5118-1-PB.pdf) [function.move-uploaded-file]: failed to open stream: Permission denied In file: /home/xxxxx/public_html/lib/pkp/classes/file/FileManager.inc.php At line: 104 Stacktrace: Server info: OS: Linux PHP Version: 5.2.9 Apache Version: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 DB Driver: mysql DB server version: 5.1.65-cll
dbase_name has produced an error Message: WARNING: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpdQemxI' to 'file/journals/61/articles/2008/public/2008-5118-1-PB.pdf' In file: /home/xxxxx/public_html/lib/pkp/classes/file/FileManager.inc.php At line: 104 Stacktrace: Server info: OS: Linux PHP Version: 5.2.9 Apache Version: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 DB Driver: mysql DB server version: 5.1.65-cll
dbase_name has produced an error Message: WARNING: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/lib/pkp/classes/core/PKPApplication.inc.php:272) In file: /home/xxxxxx/public_html/lib/pkp/classes/core/PKPRequest.inc.php At line: 72 Stacktrace: Server info: OS: Linux PHP Version: 5.2.9 Apache Version: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8e-fips-rhel5
mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 DB Driver: mysql DB server version: 5.1.65-cll
To add, here are the current steps that ive done already but to no avail:
1. I already tried changing permissions to full access (775) on the file directory
2. File path in config.inc.php; (file is the file directory on where the pdfs are stored)
file_dir = file
3. php.ini (post_max_size = 50M, upload_max_filesize = 50M,
Thank you,
Ryan
