Problem in css OJS 3.0.2


#1

Hello. Prompt please, wanted to change to change styles of a site of version 3.0.2 but I can not find a file CSS in which it is necessary to do changes. I looked at a lot of css files, but I did not find it necessary
Thanks


#2

Hi @medi,

You can either create your own child theme, or write your own CSS file and upload it on the “Appearances” settings form. There’s no need to edit an existing CSS file (and that’s not a great practice, as it complicates upgrades).

Regards,
Alec Smecher
Public Knowledge Project Team


#3

Hello @asmecher
When I load a custom CSS file, I get an error. “File can not be loaded or modified”


#4

Hi @medi,

Is that the exact message you receive? I don’t see that text anywhere in the OJS codebase.

Regards,
Alec Smecher
Public Knowledge Project Team


#5

@asmecher
Here is a screenshot and an accurate error message


#6

Hi @medi,

Strange – I can’t see that error message anywhere in our codebase, or anywhere else on the Internet at all, for that matter. Is it possible that this string is a translation you’ve introduced yourself?

Regards,
Alec Smecher
Public Knowledge Project Team


#7

@asmecher

Yes, I translated it from English. The error occurs when loading CSS and I do not know why. Could it be a matter of rights?


#8

Hi @medi,

Do you mean that you translated that message to English? What is the original message?

Regards,
Alec Smecher
Public Knowledge Project Team


#9

@asmecher

Translated as it sounds in the original. Why is the CSS file not loading?


#10

И как можно определить ошибку, если ты изменил ее текст? :slight_smile:

Напиши как ошибка звучит в оригинале.
Также кинь сюда логи PHP сразу после того, как ошибка появляется (не надо за весь день), если есть доступ. Это тоже поможет понять, что не так.


#11

Вот оригинал ошибки.
Посмотрел логи php, там про ошибки ничего, только о загруженных файлах.
Не загружаются впринципе, там где есть кнопка “Загрузить файл”. Пишет везде одно и тоже
Не обложки для журнала, не стили CSS для сайта.


#12

Hi @medi,

The exact English translation for this is “The file could not be uploaded or revised.” I would suggest searching the forum for that text – there are lots of threads discussing solutions. The most likely cause is that your system isn’t correctly configured to identify uploaded file MIME types.

Regards,
Alec Smecher
Public Knowledge Project Team


#13

Thanks, I solved the problem by reinstalling the OS.
Loaded the style, but the style does not apply. How do I prioritize a loaded style?


#14

Hi @medi,

There’s a patch you may need to apply – see https://github.com/pkp/pkp-lib/pull/2268 for details.

Regards,
Alec Smecher
Public Knowledge Project Team