Error log

Ask your questions here.
Post Reply
karahan
Posts: 227
Joined: 09 Jul 2021, 22:14
Name: Edin Karajić
Location: Bosnia and Herzegovina
Company Name: KARAHAN d.o.o.
Contact:

Error log

Post by karahan »

Dear Sergey, collegues...

I am having a problem with error log file (within RUKO installation folder).
The log contains thousands of warnings like this:
[25-Jan-2024 11:00:16 Europe/Sarajevo] PHP Warning: Constant TEXT_EXT_APPLY_ENTITY_ACCESS_RULES already defined in /home/.../plugins/ext/languages/Bosanski.php on line 873
Practically within 2-3 days log is 1GB or more in size. This is very annoying and I need to delete log file almost on daily basis.
Logs inside RUKO are disabled.
What is causing this behaviour?
Pls help.
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: Error log

Post by Didou12 »

Hi

As it said, the text constant (translation) is already defined (so the line is alreay here twice times).

What is your language and where had you the files ?
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
User avatar
support
Site Admin
Posts: 6221
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Error log

Post by support »

Line with TEXT_EXT_APPLY_ENTITY_ACCESS_RULES duplicated. Remove second one in language file.
Error log can be removed too.
karahan
Posts: 227
Joined: 09 Jul 2021, 22:14
Name: Edin Karajić
Location: Bosnia and Herzegovina
Company Name: KARAHAN d.o.o.
Contact:

Re: Error log

Post by karahan »

Hi Sergey, collegues,

let me show you the log (first line):
error_log.png
error_log.png (7.63 KiB) Viewed 178 times
This is my /ext/languages folder:
error_log1.png
error_log1.png (8.3 KiB) Viewed 178 times
Now, if you check the translation file (Bosanski.php), constant TEXT_NEW_PLUGIN_EXT_VERSION is showing only once:
error_log2.png
Pls help because this is very annoying.
Thank you.
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: Error log

Post by Didou12 »

Did you try to set english and retry your language after ?
Really weird

Have you the same problem with the english or russian version ?

Maybe this line is also in the translate of main directory, check it (not the extension).
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
User avatar
support
Site Admin
Posts: 6221
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Error log

Post by support »

Also check main language file.
karahan
Posts: 227
Joined: 09 Jul 2021, 22:14
Name: Edin Karajić
Location: Bosnia and Herzegovina
Company Name: KARAHAN d.o.o.
Contact:

Re: Error log

Post by karahan »

Hi,
I did check the main language file, but no duplicate. Everything seems ok but the log file grows rapidly with almost any action inside application.
I solved the problem by excluding "warnings" in error_reporting (line 29 inside /includes/application_core.php).
Now I am not getting error log.
Post Reply