Do not save comments! HTTP ERROR 500

Post Reply
Edition Nehemia
Posts: 57
Joined: 18 Feb 2023, 16:44
Name: Christoph Berger
Location: Steffisburg, Switzerland

Do not save comments! HTTP ERROR 500

Post by Edition Nehemia »

Dear Sergey

Sometimes I get an HTTP 500 error. Now I could reproduce the error with this logic.
If you open Rukovoditiel on a new device and want to make a comment directly and assign the task to a staff member, the error occurs. If you open the task and save again, the error is corrected.

Does it mean anything to you? Is there perhaps some variable that is not yet set? Unfortunately, no PHP error is displayed or saved in the log file.

Kind regards
Christoph
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Do not save comments! HTTP ERROR 500

Post by support »

If HTTP ERROR 500, find the PHP error log on your server and attach it. Usually this is the error_log file in the root folder, but other options are possible. Ask your hosting support where the PHP error log file is located.
Edition Nehemia
Posts: 57
Joined: 18 Feb 2023, 16:44
Name: Christoph Berger
Location: Steffisburg, Switzerland

Re: Do not save comments! HTTP ERROR 500

Post by Edition Nehemia »

Hi Sergey,

I have noticed that by default not all PHP errors are output on my serverlog. Now I also have a log entry. It reads:

[Wed Mar 15 11:49:20.405608 2023] [proxy_fcgi:error] [pid 54144] [client 85.1.17.131:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /var/www/vhosts/projekte.edition-n.ch/httpdocs/prod/includes/classes/fieldstypes/fieldtype_users.php:179\nStack trace:\n#0 /var/www/vhosts/projekte.edition-n.ch/httpdocs/prod/includes/classes/fieldstypes/fieldtype_users.php(179): array_merge()\n#1 /var/www/vhosts/projekte.edition-n.ch/httpdocs/prod/includes/classes/fields_types.php(991): fieldtype_users->process()\n#2 /var/www/vhosts/projekte.edition-n.ch/httpdocs/prod/modules/items/actions/comments.php(106): fields_types::process()\n#3 /var/www/vhosts/projekte.edition-n.ch/httpdocs/prod/index.php(20): require('...')\n#4 {main}\n thrown in /var/www/vhosts/projekte.edition-n.ch/httpdocs/prod/includes/classes/fieldstypes/fieldtype_users.php on line 179', referer: https://projekte.edition-n.ch/prod/inde ... age[102]=1

To be on the safe side, the whole log is attached.

Thank you and best regards
Christoph
Attachments
error_log.txt
(114.8 KiB) Downloaded 90 times
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Do not save comments! HTTP ERROR 500

Post by support »

File from archive replace to includes\classes\fieldstypes\
This issue should be fixed. Let me know.
Attachments
fieldtype_users.zip
(2.75 KiB) Downloaded 87 times
Edition Nehemia
Posts: 57
Joined: 18 Feb 2023, 16:44
Name: Christoph Berger
Location: Steffisburg, Switzerland

Re: Do not save comments! HTTP ERROR 500

Post by Edition Nehemia »

Thank you very much, Sergey! The tests were successful.
Post Reply