Posting non-image files (like MP3, PDF) is broken when using a custom thumbnail #216

Closed
opened 2021-05-15 18:51:39 +00:00 by Denmark · 0 comments

I'm using a custom thumbnail image for a few filetypes, for instance for MP3 and PDF. My settings look like this:

                        'audio/mp3'                     => array('mp3', 'audio.png'),
                        'text/plain'                    => array('txt', 'other.png'),

This used to work fine, but not anymore since recently. Now this error is being thrown:

Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'image_width' cannot be null in /var/www/html/inc/database/pdo.php:158 Stack trace: #0 /var/www/html/inc/database/pdo.php(158): PDOStatement->execute(Array) #1 /var/www/html/imgboard.php(517): insertPost(Array) #2 {main} thrown in /var/www/html/inc/database/pdo.php on line 158

I'm using a custom thumbnail image for a few filetypes, for instance for MP3 and PDF. My settings look like this: ``` 'audio/mp3' => array('mp3', 'audio.png'), 'text/plain' => array('txt', 'other.png'), ``` This used to work fine, but not anymore since recently. Now this error is being thrown: `Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'image_width' cannot be null in /var/www/html/inc/database/pdo.php:158 Stack trace: #0 /var/www/html/inc/database/pdo.php(158): PDOStatement->execute(Array) #1 /var/www/html/imgboard.php(517): insertPost(Array) #2 {main} thrown in /var/www/html/inc/database/pdo.php on line 158`
Denmark changed title from Posting MP3 files is broken to Posting non-image files (like MP3, PDF) is broken 2021-05-15 18:56:17 +00:00
Denmark changed title from Posting non-image files (like MP3, PDF) is broken to Posting non-image files (like MP3, PDF) is broken when using a custom thumbnail 2021-05-15 19:00:09 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/tinyib#216
There is no content yet.