cypht icon indicating copy to clipboard operation
cypht copied to clipboard

500 on sending mail

Open capocasa opened this issue 1 year ago • 4 comments

🐛 Bugreport

A '500 server error' page shows up on sending mail on my installation.

It's a debian-bullseyse system running Apache and PHP 7.4.30. It was first reported on gitter by Calaad. This is from his report, my error was identical.

[Fri Jun 24 11:10:21.900376 2022] [php7:notice] [pid 62092] [client XXX.XXX.XXX.XXX:55770] PHP Notice:  Trying to access array offset on value of type null in /usr/local/share/cypht/modules/smtp/modules.php on line 716
[Fri Jun 24 11:10:21.900406 2022] [php7:notice] [pid 62092] [client XXX.XXX.XXX.XXX:55770] PHP Notice:  Undefined index: draft in /usr/local/share/cypht/modules/smtp/modules.php on line 716
[Fri Jun 24 11:10:21.900850 2022] [php7:error] [pid 62092] [client XXX.XXX.XXX.XXX:55770] PHP Fatal error:  Uncaught Error: Call to a member function select_mailbox() on bool in /usr/local/share/cypht/modules/smtp/modules.php:1435\nStack trace:\n#0 /usr/local/share/cypht/modules/smtp/modules.php(716): delete_draft()\n#1 /usr/local/share/cypht/lib/modules_exec.php(175): Hm_Handler_process_compose_form_submit->process()\n#2 /usr/local/share/cypht/lib/modules_exec.php(153): Hm_Module_Exec->run_handler_module()\n#3 /usr/local/share/cypht/lib/dispatch.php(220): Hm_Module_Exec->run_handler_modules()\n#4 /usr/local/share/cypht/lib/dispatch.php(190): Hm_Dispatch->process_request()\n#5 /usr/local/share/cypht/site/index.php(50): Hm_Dispatch->__construct()\n#6 {main}\n  thrown in /usr/local/share/cypht/modules/smtp/modules.php on line 1435

Version & Environment

Rev: 68239a70befe06bb7cddb180a6a858c4f989259b

OS: Debian Bullseye PHP 7.4.30 on Apache

Steps to reproduce

  1. Install cypht according to instructions
  2. Set up an IMAP server and configure cypht to have IMAP login
  3. Send a mail.
  4. Observe 500

capocasa avatar Oct 31 '22 15:10 capocasa