Weird OMP error

Hello OMP Community,

I hope this message finds you well. I’m currently running an instance of OMP 3.3.0.13 on CentOS 7 with PHP 7.3. I’ve encountered an issue with file uploads, specifically when attempting to upload custom CSS files. Unfortunately, the files do not get uploaded successfully, and the interface doesnt display the name although is created and uploaded.

The uploaded file appears to be corrupted or incomplete, and I’m not able to access it. Additionally, when I check the logs, I see the following warning, but nothing else:

[Mon Sep 18 15:07:31.897275 2023] [php7:warn] [pid 27700] [client 187.251.242.212:11343] PHP Warning: chmod(): Operación no permitida in /home/cecsh/omp/lib/pkp/classes/file/FileManager.inc.php on line 544, referer: http://localhost/csh_act/index.php/libros/workflow/index/11/5

To address the issue, I’ve already taken the following steps:

  • Applied appropriate SELinux contexts and permissions using the following commands:
chcon -R -t httpd_sys_content_t omp/
chcon -R -t httpd_sys_rw_content_t omp/cache/ omp/public/ omp/plugins/ files/
chgrp -R apache omp/cache/ omp/public/ omp/plugins/ files/
find files/ -type d -exec chmod 2775 {} \;
find files/ -type f -exec chmod 664 {} \;
find omp/cache/ -type d -exec chmod 2775 {} \;
find omp/public/ -type d -exec chmod 2775 {} \;
find omp/plugins/ -type d -exec chmod 2775 {} \;
find omp/cache/ -type f -exec chmod 664 {} \;
find omp/public/ -type f -exec chmod 664 {} \;
find omp/plugins/ -type f -exec chmod 664 {} \;

What’s particularly perplexing is that I have other instances of OMP running on the same server without encountering this issue. It seems specific to this particular instance.

Has anyone experienced a similar problem with OMP? I would greatly appreciate any insights, suggestions, or guidance on how to troubleshoot and resolve this issue.

Thank you in advance for your assistance.

I forgot to tell that this also happens with uploading covers on the catalog menu.