Cannot upload submission files

Hi,
Users in my journal report not being able to upload files.
I’ve looked into the error log, and see the following errors

  • PHP Fatal error: XCache: failed init opcode cache in Unknown on line 0
  • PHP Fatal error: XCache: can’t create lock in Unknown on line 0

And also warnings such as:
[Mon Sep 04 14:10:42 2017] [error] [client 146.155.111.85] Message: WARNING: in_array() expects parameter 2 to be array, null given, referer: http://ojsull.webs.ull.es/ojs/index.php/Revista/user
[Mon Sep 04 14:10:42 2017] [error] [client 146.155.111.85] In file: /home/ull.es/bd/ojsull/webpages/ojs/classes/author/form/submit/AuthorSubmitStep1Form.inc.php, referer: http://ojsull.webs.ull.es/ojs/index.php/Revista/user
[Mon Sep 04 14:10:42 2017] [error] [client 146.155.111.85] At line: 113, referer: http://ojsull.webs.ull.es/ojs/index.php/Revista/user
[Mon Sep 04 14:10:42 2017] [error] [client 146.155.111.85] Stacktrace: , referer: http://ojsull.webs.ull.es/ojs/index.php/Revista/user
[Mon Sep 04 14:10:42 2017] [error] [client 146.155.111.85] Server info:, referer: http://ojsull.webs.ull.es/ojs/index.php/Revista/user
[Mon Sep 04 14:10:42 2017] [error] [client 146.155.111.85] OS: Linux, referer: http://ojsull.webs.ull.es/ojs/index.php/Revista/user
[Mon Sep 04 14:10:42 2017] [error] [client 146.155.111.85] PHP Version: 5.3.10-1ubuntu3.26, referer: http://ojsull.webs.ull.es/ojs/index.php/Revista/user
[Mon Sep 04 14:10:42 2017] [error] [client 146.155.111.85] Apache Version: N/A, referer: http://ojsull.webs.ull.es/ojs/index.php/Revista/user
[Mon Sep 04 14:10:42 2017] [error] [client 146.155.111.85] DB Driver: mysql, referer: http://ojsull.webs.ull.es/ojs/index.php/Revista/user
[Mon Sep 04 14:10:42 2017] [error] [client 146.155.111.85] DB server version: 5.5.54-0ubuntu0.12.04.1, referer: http://ojsull.webs.ull.es/ojs/index.php/Revista/user
[Mon Sep 04 14:10:42 2017] [error] [client 146.155.111.85] ojs2 has produced an error, referer: http://ojsull.webs.ull.es/ojs/index.php/Revista/user

I’m running an OJS 2.4.8 with PHP 5.3.10-1ubuntu3.26

Thanks in advance for your help.
Regards,
Juan

Hi @jascanio,

Those XCache errors are a little worrying, but before you go down that rabbit hole, I’d suggest ensuring that your file permissions are correct. See docs/README for file permission requirements.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,
thanks for your reply.
I’ve checked my file permissions. They seem to be ok

  • config.inc.php: 640
  • /public: 770
  • /cache: 770
  • /cache/t_cache: 770
  • /cache/t_config: 770
  • /cache/t_compile: 770
  • /cache/_db: 770

Can you think of a solution to the problem?

Thanks in advance for your help.

Best regards,
Juan

How is set permission to your “files” (files_dir) folder?

Hi,
my files folder is set to 770
this folder is in turn inside a higher level folder, with permission 750

thanks in advance for your help

Have you check webserver error log? If so, paste it here, it may helps to find out what is going on.
I recommend to open your terminal, type and enter following command (if is a apache webserver):

$ tail -f /var/log/httpd/error.log

And try again submit/upload to check what is error log output.

Best

Isrel

Hi @jascanio,

Depending on how your server is configured, 770 permissions may not be enough – you’ll have to consider ownership as well. Read the FAQ entry on permissions – you’ll need to determine your server’s configuration (SAPI) to figure out what permissions are needed. Note that 777 permissions are never safe to use.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @israel.cefrin and @asmecher,
Thanks for your reply
I’ll check with my hosting provider, as I cannot get error log myself.

Best,
Juan