Need help troubleshooting error
Posted: 11 May 2023, 17:48
Updated Mantis from 2.25.2 to 2.25.7 and then updated EmailReporting to 0.11-DEV version (although git still only shows 0.10 as latest).
When I'm testing my changes I get the following error and not sure where to go to start troubleshooting, need suggestions please!
This comes after manually running bug_report_mail.php on command line. That particular line of code in mail_api.php is in function cleanup_project_name($p_project_name):
Since I don't know php I'm not sure how to test to see if this is actually the module returning that error or if it is in fact coming from somewhere else.
If I could supporess that warning message so the code doesn't return an errorlevel value then my batch file would continue processing normally. But I want it to die when any error is thrown, not on warnings. So, either I fix this warning or I prevent php from throwing all warnings. but not sure how to go about doing either.
When I'm testing my changes I get the following error and not sure where to go to start troubleshooting, need suggestions please!
Code: Select all
Done checking all mailboxes
SYSTEM WARNING: 'Creating default object from empty value' in 'C:\MantisBT2257\core\email_api.php' line 1333
Code: Select all
return( $t_project_name );
If I could supporess that warning message so the code doesn't return an errorlevel value then my batch file would continue processing normally. But I want it to die when any error is thrown, not on warnings. So, either I fix this warning or I prevent php from throwing all warnings. but not sure how to go about doing either.