Open Shadow243 opened 2 months ago
Hi @marclaporte I was working on this task for a while and I couldn't reproduce it on my local instance. We even tried to reproduce it on my local instance with @Shadow243 but still not reproducible. On my side the emails were sent without any problem. We came to the conclusion that the error could be related either to its internet connection or something else
@Shadow243 Do you still see the issue on your instance?
Yes @marclaporte I do, Even with Alfred while working on it I had the blank page. but on his end it's working...
We therefore concluded that it is due to my internet connection, but the ideal would be for the form to remain displayed especially since there is ajax which carries out the processing. or display the error if there is one.
Ok then, so if only you see the problem, you have to fix it :-)
I'm also having the same issue, on version 492f634 (2.0). The email is successfully sent, but php crashes. Here's the message in my error log.
[Wed May 01 08:28:53.557840 2024] [proxy_fcgi:error] [pid 94697] [client [deleted]:54586] AH01071: Got error 'PHP message: PHP Warning: Undefined array key "compose_delivery_receipt" in /usr/local/share/cypht/modules/smtp/modules.php on line 687; PHP message: PHP Stack trace:; PHP message: PHP 1. {main}() /usr/local/share/cypht/site/index.php:0; PHP message: PHP 2. Hm_Dispatch->__construct($config = class Hm_Site_Config_File { protected $source = ''; protected $config = ['version' => 0.1, '2fa_secret' => '[deleted]', '2fa_simple' => FALSE, 'session_type' => 'DB', 'auth_type' => 'DB', 'ldap_auth_server' => 'localhost', 'ldap_auth_port' => '389', 'ldap_auth_tls' => NULL, 'ldap_auth_base_dn' => 'example,dc=com', 'imap_auth_name' => 'localhost', 'imap_auth_server' => 'localhost', 'imap_auth_port' => '143', 'imap_auth_tls' => TRUE, 'imap_auth_sieve_conf_host' => 'tls://mail.gandi.net:4190', 'default_smtp_name' => NULL, 'default_smtp_server' => NULL, 'default_smtp_port' => NULL, 'default_smtp_tls' => NULL, 'default_smtp_no_auth' => NULL, 'user_config_type' => 'DB', 'user_settings_dir' => '/var/lib/hm3/users', 'attachment_dir' => '/var/lib/hm3/attachments', 'app_data_dir' => '/var/lib/hm3/app_data', 'disable_origin_check' => TRUE, 'admin_users' => NULL, 'cookie_domain' => NULL, 'cookie_pat...; PHP message: PHP 3. Hm_Dispatch->process_request() /usr/local/share/cypht/lib/dispatch.php:188; PHP message: PHP 4. Hm_Module_Exec->run_handler_modules($request = class Hm_Request { public $post = ['hm_page_key' => '8585d86cc111f95c36f9aefe839c3a3d608adf04e42b9a62c13650a089bd87ee', 'post_archive' => 0, 'smtp_send' => FALSE, 'compose_to' => 'paultaylor@gotgrip.com', 'compose_msg_path' => '', 'compose_msg_uid' => FALSE, 'compose_body' => 'test body<br />', 'compose_subject' => 'test subject', 'compose_in_reply_to' => '', 'compose_cc' => '', 'compose_bcc' => '', 'compose_smtp_id' => '662f2e6cc6680.1', 'draft_id' => 404, 'send_uploaded_files' => '', 'next_email_post' => '']; public $get = ['page' => 'compose']; public $cookie = ['hm_id' => '[deleted]', 'hm_session' => 'Oa0RUlRcfDL6YVqrjE8JF8su3WMPpxekiPsy4sYDukpHmFXWzRbp5BfU8NmRIOMXV8UvNStuwf3iW5g9FykNX9ZVZwTtiCuUl7eiF/IaTOx8025NC0xIy2ZlzAB026K9o5OtjqZ9wx/63Eggm4cjIfsshksxMKZF/MOkuml...; PHP message: PHP 5. Hm_Module_Exec->run_handler_module($input = ['allow_long_session' => TRUE, 'fancy_login_allowed' => FALSE, 'is_mobile' => FALSE, 'changed_settings' => [], 'username' => 'paul', 'is_logged' => TRUE, 'data_sources' => [0 => [...], 1 => [...], 2 => [...]], 'encrypt_ajax_requests' => FALSE, 'encrypt_local_storage' => FALSE, 'disable_delete_prompt' => 1, 'mailto_handler' => TRUE, 'warn_for_unsaved_changes' => TRUE, 'no_password_save' => FALSE, 'load_recover_options' => FALSE, 'auth_type' => 'Hm_Auth_DB', 'themes' => ['default' => 'White Bread (Default)', 'cosmo' => 'Cosmo', 'cerulean' => 'Cerulean', 'cyborg' => 'Cyborg', 'darkly' => 'Darkly', 'flatly' => 'Flatly', 'journal' => 'Journal', 'litera' => 'Litera', 'lumen' => 'Lumen', 'lux' => 'Lux', 'materia' => 'Materia', 'minty' => 'Minty', 'morph' => 'Morph', 'pulse' => 'Pulse', 'quartz' => 'Quartz', 'sandstone' => 'Sandstone', 'simplex' => 'Simplex', 'sketchy' => 'Sketchy', 'slate' => 'Slate', 'solar' => 'Solar', 'spacelab' => 'Spa...; PHP message: PHP 6. Hm_Handler_process_compose_form_submit->process(['allow_long_session' => TRUE, 'fancy_login_allowed' => FALSE, 'is_mobile' => FALSE, 'changed_settings' => [], 'username' => 'paul', 'is_logged' => TRUE, 'data_sources' => [0 => [...], 1 => [...], 2 => [...]], 'encrypt_ajax_requests' => FALSE, 'encrypt_local_storage' => FALSE, 'disable_delete_prompt' => 1, 'mailto_handler' => TRUE, 'warn_for_unsaved_changes' => TRUE, 'no_password_save' => FALSE, 'load_recover_options' => FALSE, 'auth_type' => 'Hm_Auth_DB', 'themes' => ['default' => 'White Bread (Default)', 'cosmo' => 'Cosmo', 'cerulean' => 'Cerulean', 'cyborg' => 'Cyborg', 'darkly' => 'Darkly', 'flatly' => 'Flatly', 'journal' => 'Journal', 'litera' => 'Litera', 'lumen' => 'Lumen', 'lux' => 'Lux', 'materia' => 'Materia', 'minty' => 'Minty', 'morph' => 'Morph', 'pulse' => 'Pulse', 'quartz' => 'Quartz', 'sandstone' => 'Sandstone', 'simplex' => 'Simplex', 'sketchy' => 'Sketchy', 'slate' => 'Slate', 'solar' => 'Solar', 'spacelab' => ...; PHP message: PHP Fatal error: Uncaught Error: Call to undefined method Hm_Handler_store_contact_message::trans() in /usr/local/share/cypht/modules/contacts/modules.php:44\nStack trace:\n#0 [internal function]: Hm_Handler_store_contact_message->{closure}()\n#1 /usr/local/share/cypht/modules/contacts/modules.php(43): array_map()\n#2 /usr/local/share/cypht/lib/modules_exec.php(177): Hm_Handler_store_contact_message->process()\n#3 /usr/local/share/cypht/lib/modules_exec.php(155): Hm_Module_Exec->run_handler_module()\n#4 /usr/local/share/cypht/lib/dispatch.php(218): Hm_Module_Exec->run_handler_modules()\n#5 /usr/local/share/cypht/lib/dispatch.php(188): Hm_Dispatch->process_request()\n#6 /usr/local/share/cypht/site/index.php(51): Hm_Dispatch->__construct()\n#7 {main}\n thrown in /usr/local/share/cypht/modules/contacts/modules.php on line 44'
HP Warning: Undefined array key "compose_delivery_receipt" in
Correted here: https://github.com/cypht-org/cypht/pull/994, I still have a blank page error, though. But I have an idea about this, I think.
@Shadow243 After #994, I can confirm the blank page on sending (the email still sends correctly), but this is the new error I get:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined method Hm_Handler_store_contact_message::trans() in /usr/local/share/cypht/modules/contacts/modules.php:44\nStack trace:\n#0 [internal function]: Hm_Handler_store_contact_message->{closure}()\n#1 /usr/local/share/cypht/modules/contacts/modules.php(43): array_map()\n#2 /usr/local/share/cypht/lib/modules_exec.php(177): Hm_Handler_store_contact_message->process()\n#3 /usr/local/share/cypht/lib/modules_exec.php(155): Hm_Module_Exec->run_handler_module()\n#4 /usr/local/share/cypht/lib/dispatch.php(218): Hm_Module_Exec->run_handler_modules()\n#5 /usr/local/share/cypht/lib/dispatch.php(188): Hm_Dispatch->process_request()\n#6 /usr/local/share/cypht/site/index.php(51): Hm_Dispatch->__construct()\n#7 {main}\n thrown in /usr/local/share/cypht/modules/contacts/modules.php on line 44'
@Shadow243 After #994, I can confirm the blank page on sending (the email still sends correctly), but this is the new error I get:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined method Hm_Handler_store_contact_message::trans() in /usr/local/share/cypht/modules/contacts/modules.php:44\nStack trace:\n#0 [internal function]: Hm_Handler_store_contact_message->{closure}()\n#1 /usr/local/share/cypht/modules/contacts/modules.php(43): array_map()\n#2 /usr/local/share/cypht/lib/modules_exec.php(177): Hm_Handler_store_contact_message->process()\n#3 /usr/local/share/cypht/lib/modules_exec.php(155): Hm_Module_Exec->run_handler_module()\n#4 /usr/local/share/cypht/lib/dispatch.php(218): Hm_Module_Exec->run_handler_modules()\n#5 /usr/local/share/cypht/lib/dispatch.php(188): Hm_Dispatch->process_request()\n#6 /usr/local/share/cypht/site/index.php(51): Hm_Dispatch->__construct()\n#7 {main}\n thrown in /usr/local/share/cypht/modules/contacts/modules.php on line 44'
Copy that. It's difficult to reproduce this error because it works in most cases, so thank you for sharing. I correct but do not hesitate to share other errors if this occurs.
It's difficult to reproduce this error because it works in most cases
@Shadow243 @PaulTGG Maybe you could find each other on our chatroom https://gitter.im/cypht-org/community and coordinate a screenshare session?
@Shadow243 It looks like the error has to do with the "Automatically add outgoing email addresses" option. I tested using the latest master (117f04b). When that setting is disabled, there's no issue. When it's enabled, I get the following:
PHP Fatal error: Uncaught Error: Call to undefined method Hm_Handler_store_contact_message::trans() in /usr/local/share/cypht/modules/contacts/modules.php:44\nStack trace:\n#0 [internal function]: Hm_Handler_store_contact_message->{closure}()\n#1 /usr/local/share/cypht/modules/contacts/modules.php(43): array_map()\n#2 /usr/local/share/cypht/lib/modules_exec.php(177): Hm_Handler_store_contact_message->process()\n#3 /usr/local/share/cypht/lib/modules_exec.php(155): Hm_Module_Exec->run_handler_module()\n#4 /usr/local/share/cypht/lib/dispatch.php(218): Hm_Module_Exec->run_handler_modules()\n#5 /usr/local/share/cypht/lib/dispatch.php(188): Hm_Dispatch->process_request()\n#6 /usr/local/share/cypht/site/index.php(51): Hm_Dispatch->__construct()\n#7 {main}\n thrown in /usr/local/share/cypht/modules/contacts/modules.php on line 44'
@Shadow243 It looks like the error has to do with the "Automatically add outgoing email addresses" option. I tested using the latest master (117f04b). When that setting is disabled, there's no issue. When it's enabled, I get the following:
PHP Fatal error: Uncaught Error: Call to undefined method Hm_Handler_store_contact_message::trans() in /usr/local/share/cypht/modules/contacts/modules.php:44\nStack trace:\n#0 [internal function]: Hm_Handler_store_contact_message->{closure}()\n#1 /usr/local/share/cypht/modules/contacts/modules.php(43): array_map()\n#2 /usr/local/share/cypht/lib/modules_exec.php(177): Hm_Handler_store_contact_message->process()\n#3 /usr/local/share/cypht/lib/modules_exec.php(155): Hm_Module_Exec->run_handler_module()\n#4 /usr/local/share/cypht/lib/dispatch.php(218): Hm_Module_Exec->run_handler_modules()\n#5 /usr/local/share/cypht/lib/dispatch.php(188): Hm_Dispatch->process_request()\n#6 /usr/local/share/cypht/site/index.php(51): Hm_Dispatch->__construct()\n#7 {main}\n thrown in /usr/local/share/cypht/modules/contacts/modules.php on line 44'
Resolved here: https://github.com/cypht-org/cypht/pull/1007 and I'm no longer getting a blank page on my side. @PaulTGG, could you please confirm this on your end?
@Shadow243 I'm not getting a blank page or fatal errors, but now, with the "Automatically add outgoing email addresses" option checked, when I send an email, all I see is this:
Automatically add outgoing email addresses" option checked
Oh, I'll have to review this. I'm currently trying to use a Safaricom connection, which is working correctly. However, with Airtel Uganda, I still encounter errors. It seems to be related to internet connection delays during requests.
@Shadow243 VirtualBox works really well if you want to test locally. You'd just need to set up the network in bridged mode, but that's it! And once you have an OS set up, you can clone it for quick testing and resetting.
Description:
When attempting to send an email on the compose page, clicking the "Send Mail" button results in a blank page. This issue occurs consistently and prevents users from successfully sending emails.
Steps to Reproduce:
Additional Information:
This issue seems to persist across different email service providers, including Migadu.com and potentially others, such as Stalwart.
This issue is critical as it prevents users from sending emails through the application.