Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0035255mantisbtplug-inspublic2025-03-01 18:40
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.27.1Fixed in Version2.27.1 
Summary0035255: Unknown named parameter $bug_id
Description

On PHP 8.0 and later, when a plugin hooks EVENT_DISPLAY_EMAIL_BUILD_SUBJECT and the registered callback function does not specify the $bug_id parameter with this exact name, Mantis throws

INTERNAL APPLICATION ERROR
Unknown named parameter $bug_id

Additional Information

Initially reported in

TagsPHP 8

Relationships

related to 0033058 closeddregad Unknown named parameter $files 
related to 0015648 closeddregad add event signalling to email_build_subject() function 

Activities

dregad

dregad

2025-01-23 06:44

developer   ~0069744

Last edited: 2025-01-24 04:56

Same problem as 0033058.

This event signal was introduced by 0015648 (MantisBT master b292ef1b)

dregad

dregad

2025-01-23 07:16

developer   ~0069745

PR https://github.com/mantisbt/mantisbt/pull/2080

Related Changesets

MantisBT: master b292ef1b

2013-04-19 07:56

dregad


Details Diff
Add plugin event for e-mail subject customization

New event: EVENT_DISPLAY_EMAIL_BUILD_SUBJECT

Fixes 0015648
Affected Issues
0015648, 0035255
mod - core/email_api.php Diff File
mod - core/events_inc.php Diff File

MantisBT: master-2.27 0b207609

2025-01-23 06:55

dregad


Details Diff
Fix Unknown named parameter $bug_id error on PHP 8+

Remove array key when calling event_signal() in email_build_subject().

Fixes 0035255
Affected Issues
0035255
mod - core/email_api.php Diff File