View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0021161 | Plugin - EmailReporting | General | public | 2016-06-26 06:50 | 2016-11-28 13:24 |
Reporter | SteveA | Assigned To | SL-Gundam | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 0.9.1 | ||||
Summary | 0021161: PHP call to process emails fails with a fatal error | ||||
Description | Using the command line to call the email processor php /webstuff/canalplan/bugtrack/plugins/EmailReporting/scripts/bug_report_mail.php results in the following fatal error in the php error logs: PHP Fatal error: Call to undefined function auth_is_user_authenticated() in /webstuff/canalplan/bugtrack/core/config_api.php on line 85 | ||||
Tags | No tags attached. | ||||
Which version of MantisBT are you running? |
|
I'm running 1.2.19 Security Release (2015-01-25) |
|
Well something is weird since the error mentions line 85, but the function in question is on line 84 Please copy a clean set of MantisBT files for 1.2.19 over your existing installation |
|
Not sure how it got to be line 85 Re-installed all the mantis files from a fresh download and now get [26-Jun-2016 19:06:52 Europe/London] PHP Fatal error: Call to undefined function auth_is_user_authenticated() in /webstuff/canalplan/bugtrack/core/config_api.php on line 84 |
|
Is it possible you provide a stack trace of this error? Is this only a standard MantisBT installation plus EmailReporting or are there other plugins/modifications present? |
|
Standard install with no modifications made Only other plugin is the TriggerClose plugin version 0.1 What do I need to do to get a stack trace - |
|
Add the following to your config_inc.php $g_show_detailed_errors = ON; $g_display_errors = array( |
|
I've done that - it makes no difference. There are no extra lines in the php error log and nothing is output on the terminal when I run the command link The utility works from the browser and if I use wget or lynx and pass the browser url. |
|
The code only makes a difference for the output received on the command line or the browser. Could you try uninstalling the TriggerClose plugin and see whether the error is still there in the log file? |
|
De-installed the TriggerClose plugin and when I run it I get php /webstuff/canalplan/bugtrack/plugins/EmailReporting/scripts/bug_report_mail.php Done checking all mailboxes So its something in the TriggerClose plugin |
|
Afraid so. EmailReporting works pretty much the same way as the send_emails.php script of MantisBT If it broke EmailReporting it might also break send_emails.php (if you use it) so i suggest taking it up with the devs for TriggerClose This issue was encountered before. At that time that person appeared to not be running the most recent version of TriggerClose. Please see that issue for further information 0020399:0052133 Added documentation about this issue to the EmailReporting wiki |
|