You are viewing the PKP Support Forum | PKP Home Wiki

Error when uploading a file as a user

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Error when uploading a file as a user

Postby cagatay » Thu Nov 29, 2007 1:55 am

I am at the testing stage of OJS and did all the setup and configurations without a problem.

Afterwards I created a author account and started the submission process. When I wanted to upload a file to the OJS, this error came up at the top of the browser page:

Warning: chmod() has been disabled for security reasons in /home/fotonega/public_html/journal/classes/file/FileManager.inc.php on line 362

Warning: move_uploaded_file(/home/fotonega/public_html/journal/files/journals/1/articles/3/submission/original/3-8-1-SM.doc) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/fotonega/public_html/journal/classes/file/FileManager.inc.php on line 95

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php1s3Ber' to '/home/fotonega/public_html/journal/files/journals/1/articles/3/submission/original/3-8-1-SM.doc' in /home/fotonega/public_html/journal/classes/file/FileManager.inc.php on line 95

Warning: Cannot modify header information - headers already sent by (output started at /home/fotonega/public_html/journal/classes/file/FileManager.inc.php:362) in /home/fotonega/public_html/journal/classes/template/TemplateManager.inc.php on line 187

Please assist


Posts: 2
Joined: Thu Nov 29, 2007 1:11 am

Re: Error when uploading a file as a user

Postby ramon » Thu Nov 29, 2007 6:44 am


This is a server configuration problem.
Apparently PHP does not have permission to use the chmod comand to change file permissions.

Check first what user/group is running apache with ps -ef | grep apache.

Then, change the owner/group of OJS to that user.

Afterwards, settting permissions to 755 (775 at the most) should be enough.

If this doesn't solve the problem, you should contact the server administrator for support.

Some host providers remove basic functions out of lazyness...
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Return to OJS Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests