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

send email via 'get in touch' produces text in httpd log #80

Open
realsobek opened this issue Apr 16, 2016 · 1 comment
Open

send email via 'get in touch' produces text in httpd log #80

realsobek opened this issue Apr 16, 2016 · 1 comment

Comments

@realsobek
Copy link

I am using CentOS 7 x86_64 with centos-release-scl and with JournalTouch 0.4.2.

Steps to reproduce the problem:

tail -f /var/log/httpd24/error_log prints (I cut the date):

[:error] [pid 753] [client 141.14.232.146:33874] PHP Notice:  Undefined variable: users in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-0.4.2-0-ga5da414/checkout.php on line 251, referer: http://journaltouch/checkout.php?action=contact&lang=de_DE
[:error] [pid 753] [client 141.14.232.146:33874] PHP Notice:  Undefined variable: users in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-0.4.2-0-ga5da414/checkout.php on line 274, referer: http://journaltouch/checkout.php?action=contact&lang=de_DE
[:error] [pid 753] [client 141.14.232.146:33874] PHP Warning:  Invalid argument supplied for foreach() in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-0.4.2-0-ga5da414/checkout.php on line 274, referer: http://journaltouch/checkout.php?action=contact&lang=de_DE
[:error] [pid 753] [client 141.14.232.146:33874] PHP Notice:  Undefined index: file in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-0.4.2-0-ga5da414/checkout.php on line 336, referer: http://journaltouch/checkout.php?action=contact&lang=de_DE
[:error] [pid 753] [client 141.14.232.146:33874] PHP Warning:  fopen(): Filename cannot be empty in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-0.4.2-0-ga5da414/sys/class.CheckoutActions.php on line 37, referer: http://journaltouch/checkout.php?action=contact&lang=de_DE

At first, I thought this is due to missing settings at http://journaltouch/admin/settings.php -- Mailing. But that is not the case.

Maybe the problem is related to #75?

@krugar
Copy link
Contributor

krugar commented Apr 18, 2016

yep, it is related. i've been applying band-aids to something that requires a splint :P

checkout.php could use some refactoring that separates the routing logic from the presentation. i'm commiting another band-aid to develop for now, but this will need some more love down the road.

/edit: i need more ☕ it's related to #73, not #75. and i should have referenced this issue in c654eb4, not #75...

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

2 participants