Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report by email sends email but no report #148

Open
dalers opened this issue Dec 16, 2024 · 0 comments
Open

report by email sends email but no report #148

dalers opened this issue Dec 16, 2024 · 0 comments

Comments

@dalers
Copy link

dalers commented Dec 16, 2024

I sent a time report by email and received an empty email.

Report sent following: Reports > [enter report params] > Generate > [view displayed report] > Send by e-mail > [enter email params] > Send > ["Report Sent" shown]

Time Tracker is hosted using Apache 2.4 with PHP 8.1 and MariaDb 10.6

Mail is sent using php mail() per WEB-INF/config.php

// MAIL_MODE - mail sending mode. Can be 'mail' or 'smtp'.
// 'mail' - sending through php mail() function.
define('MAIL_MODE', 'mail');

Setting DEBUG to true in WEB-INF/config.php has no effect (no debug displayed)

// define('DEBUG', false); // Note: enabling DEBUG breaks redirects as debug output is printed before setting redirect header. define('DEBUG', true);

The Apache httpd-error.log has warnings but no errors:

[Mon Dec 16 09:28:40.872503 2024] [php:warn] [pid 60674] [client 162.223.103.50:56217] PHP Warning:  Array to string conversion in /usr/local/www/timetracker/WEB-INF/lib/form/Submit.class.php on line 44, referer: https://timetracker.dalescott.net/reports.php
[Mon Dec 16 09:29:45.108522 2024] [php:warn] [pid 61378] [client 162.223.103.50:33503] PHP Warning:  Undefined variable $print_subtotals in /usr/local/www/timetracker/WEB-INF/lib/ttReportHelper.class.php on line 1422, referer: https://timetracker.dalescott.net/report_send.php
[Mon Dec 16 09:29:45.108565 2024] [php:warn] [pid 61378] [client 162.223.103.50:33503] PHP Warning:  Undefined variable $print_subtotals in /usr/local/www/timetracker/WEB-INF/lib/ttReportHelper.class.php on line 1556, referer: https://timetracker.dalescott.net/report_send.php
[Mon Dec 16 09:29:45.108582 2024] [php:warn] [pid 61378] [client 162.223.103.50:33503] PHP Warning:  Undefined variable $print_subtotals in /usr/local/www/timetracker/WEB-INF/lib/ttReportHelper.class.php on line 1422, referer: https://timetracker.dalescott.net/report_send.php
[Mon Dec 16 09:29:45.108619 2024] [php:warn] [pid 61378] [client 162.223.103.50:33503] PHP Warning:  Undefined variable $print_subtotals in /usr/local/www/timetracker/WEB-INF/lib/ttReportHelper.class.php on line 1556, referer: https://timetracker.dalescott.net/report_send.php
[Mon Dec 16 09:29:45.108631 2024] [php:warn] [pid 61378] [client 162.223.103.50:33503] PHP Warning:  Undefined variable $print_subtotals in /usr/local/www/timetracker/WEB-INF/lib/ttReportHelper.class.php on line 1422, referer: https://timetracker.dalescott.net/report_send.php
[Mon Dec 16 09:29:45.108654 2024] [php:warn] [pid 61378] [client 162.223.103.50:33503] PHP Warning:  Undefined variable $print_subtotals in /usr/local/www/timetracker/WEB-INF/lib/ttReportHelper.class.php on line 1556, referer: https://timetracker.dalescott.net/report_send.php
[Mon Dec 16 09:29:45.108665 2024] [php:warn] [pid 61378] [client 162.223.103.50:33503] PHP Warning:  Undefined variable $print_subtotals in /usr/local/www/timetracker/WEB-INF/lib/ttReportHelper.class.php on line 1422, referer: https://timetracker.dalescott.net/report_send.php
[Mon Dec 16 09:29:45.108689 2024] [php:warn] [pid 61378] [client 162.223.103.50:33503] PHP Warning:  Undefined variable $print_subtotals in /usr/local/www/timetracker/WEB-INF/lib/ttReportHelper.class.php on line 1556, referer: https://timetracker.dalescott.net/report_send.php
[Mon Dec 16 09:29:45.108700 2024] [php:warn] [pid 61378] [client 162.223.103.50:33503] PHP Warning:  Undefined variable $print_subtotals in /usr/local/www/timetracker/WEB-INF/lib/ttReportHelper.class.php on line 1422, referer: https://timetracker.dalescott.net/report_send.php
[Mon Dec 16 09:29:45.108730 2024] [php:warn] [pid 61378] [client 162.223.103.50:33503] PHP Warning:  Undefined variable $print_subtotals in /usr/local/www/timetracker/WEB-INF/lib/ttReportHelper.class.php on line 1556, referer: https://timetracker.dalescott.net/report_send.php
[Mon Dec 16 09:29:45.108738 2024] [php:warn] [pid 61378] [client 162.223.103.50:33503] PHP Warning:  Undefined variable $print_subtotals in /usr/local/www/timetracker/WEB-INF/lib/ttReportHelper.class.php on line 1562, referer: https://timetracker.dalescott.net/report_send.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant