OJS 3.2.1-1 Custom CSS upload problem on Linux

Hello,

I am using OJS 3.2.1-1 on Linux server with PHP 7.2. When I try to upload a custom css the site confirm the operation, but css is not used.

Debugging the code I found that the problem is in setMode function in
ojs-3.2.1-1\lib\pkp\classes\file\FileManager.inc.php in “return chmod($path, $mask & ~$umask);”.

I don’t know why, but the command is not working and return false. Folders have 777 permission.

Can you help me?

Best regards,
Domenico

Hi @Domenico,

Does anything useful appear in your PHP error log?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher, thank you very much for your reply.

Unfortunately there is nothing in the logs. I tried also with a try/catch but there aren’t exceptions.

Best regards,
Domenico

Hi @Domenico,

Once I had similar issue and the root cause were comments and empty lines in the CCS. After removing them the CCS worked. Don’t ask me how and why, you can give a try and see if it helps to you too. :slight_smile:

Best regards, Primož

Hi @primozs,

I did something like 100 tests and now, after someone with minified css, it works!! Also with normal css!!! I absolutely don’t know why!

Does anyone have a plausible explanation? I am literally without words and I would like to be comfortable with the next update.

Best regards,
Domenico