Logger causes fatal error

Created on 13 April 2023, over 1 year ago
Updated 9 September 2024, 4 months ago

Problem/Motivation

When we have a problems with Imagick, then module try to log this message to drupal logger. This value can be is incorrect, we have fatal error something like that.

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value:

INSERT INTO "watchdog" ("uid", "type", "message", "variables", "severity", "link", "location", "referer", "hostname", "timestamp") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => media thumbnails [:db_insert_placeholder_2] => FailedToExecuteCommand `"gs" -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dPrinted=false -dFirstPage=1 -dLastPage=1 "-sOutputFile=C:/Windows/TEMP/magick-V20o9RlM7fi6Sw_N29sO7swaH7CR3heI%d" "-fC:/Windows/TEMP/magick-xVJ8Nreu0TNegJn0PUGArMRjEcR1GB_l" "-fC:/Windows/TEMP/magick-i8piIQljlTp3LbKc0YiNo2eprdbqxLt0"' (Nie mo�na odnale�� okre�lonego pliku. ) @ error/delegate.c/ExternalDelegateCommand/516 [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://project.develop/app/pdf/generate/media [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 127.0.0.1 [:db_insert_placeholder_9] => 1681380321 ) w Drupal\dblog\Logger\DbLog->log()

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇱Poland lamp5 Rzeszow

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024