Installation routine of 7.11.18 doesn´t store default smtp email configuration #4521

Closed
opened 2026-02-20 16:18:51 -05:00 by deekerman · 5 comments
Owner

Originally created by @Talleyrand on GitHub (Apr 27, 2021).

Issue

After a clean and new installation of SuiteCRM 7.11.18 after the first login appear on top of the content frame the message "Note: To send record assignment notifications, an SMTP server must be configured in Email Settings". Clicking on the link "Email Settings" leads to the form where all during the installation provided MANDATORY data regarding the mail server has disappered and need to be provided again.

Expected Behavior

The during the installation provided data should have been saved during the installation process

Actual Behavior

Asking for data of:

  • SMTP Mail Server, SMTP Port, Username, Password

suitecrm.log
Tue Apr 27 13:57:05 2021 [269880][-none-][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Tue Apr 27 13:57:10 2021 [269880][-none-][FATAL] User update error: Temp User is not retrieved at ID 1, boolean given
Tue Apr 27 13:57:10 2021 [269880][-none-][FATAL] Email address save error
Tue Apr 27 13:57:14 2021 [269880][1][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Tue Apr 27 13:57:14 2021 [269880][1][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Tue Apr 27 13:57:15 2021 [269880][1][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Tue Apr 27 13:57:16 2021 [269880][1][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Tue Apr 27 13:57:58 2021 [272591][1][FATAL] log call at: modules/EmailMan/tpls/config.tpl:465 - styleChecked is not set

install.log
2021-04-27 11:57:10...Installation has completed *********
2021-04-27 11:57:16...populating the db with seed data
2021-04-27 11:57:16...Save configuration settings..
2021-04-27 11:57:16...save locale
2021-04-27 11:57:16...new Administration
2021-04-27 11:57:16...retrieveSettings
2021-04-27 11:57:16...AdminWizard OFF
2021-04-27 11:57:16...saveConfig
2021-04-27 11:57:16...new Configurator
2021-04-27 11:57:16...populateFromPost
2021-04-27 11:57:16...handleOverride
2021-04-27 11:57:16...addCronAllowedUser
2021-04-27 11:57:16...saveConfig
2021-04-27 11:57:16...new Currency
2021-04-27 11:57:16...retrieve
2021-04-27 11:57:16...DBG: save currency
2021-04-27 11:57:16...Save user settings..
2021-04-27 11:57:16...DBG: SugarThemeRegistry::getDefault
2021-04-27 11:57:26...installerHook: Info: custom/install/install_hooks.php not present, no custom hooks to execute

Steps to Reproduce

  1. Install a new version of SuiteCRM 7.11.18
  2. Log in a administrator

Your Environment

SuiteCRM Version used: 7.11.18
Browser name and version: all
PHP Built On: Linux localhost 3.10.0-1127.10.1.el7.x86_64 #1 SMP
Database Type: mysql
Database Version: 5.6.42-log
PHP Version: 7.3.27
Web Server: Apache/2.4.46 (Unix)

Originally created by @Talleyrand on GitHub (Apr 27, 2021). #### Issue After a clean and new installation of SuiteCRM 7.11.18 after the first login appear on top of the content frame the message "Note: To send record assignment notifications, an SMTP server must be configured in Email Settings". Clicking on the link "Email Settings" leads to the form where all during the installation provided MANDATORY data regarding the mail server has disappered and need to be provided again. #### Expected Behavior The during the installation provided data should have been saved during the installation process #### Actual Behavior Asking for data of: - SMTP Mail Server, SMTP Port, Username, Password suitecrm.log Tue Apr 27 13:57:05 2021 [269880][-none-][FATAL] SugarBean::populateDefaultValues $field_defs should be an array Tue Apr 27 13:57:10 2021 [269880][-none-][FATAL] User update error: Temp User is not retrieved at ID 1, boolean given Tue Apr 27 13:57:10 2021 [269880][-none-][FATAL] Email address save error Tue Apr 27 13:57:14 2021 [269880][1][FATAL] SugarBean::populateDefaultValues $field_defs should be an array Tue Apr 27 13:57:14 2021 [269880][1][FATAL] SugarBean::populateDefaultValues $field_defs should be an array Tue Apr 27 13:57:15 2021 [269880][1][FATAL] SugarBean::populateDefaultValues $field_defs should be an array Tue Apr 27 13:57:16 2021 [269880][1][FATAL] SugarBean::populateDefaultValues $field_defs should be an array Tue Apr 27 13:57:58 2021 [272591][1][FATAL] log call at: modules/EmailMan/tpls/config.tpl:465 - styleChecked is not set install.log 2021-04-27 11:57:10...Installation has completed ********* 2021-04-27 11:57:16...populating the db with seed data 2021-04-27 11:57:16...Save configuration settings.. 2021-04-27 11:57:16...save locale 2021-04-27 11:57:16...new Administration 2021-04-27 11:57:16...retrieveSettings 2021-04-27 11:57:16...AdminWizard OFF 2021-04-27 11:57:16...saveConfig 2021-04-27 11:57:16...new Configurator 2021-04-27 11:57:16...populateFromPost 2021-04-27 11:57:16...handleOverride 2021-04-27 11:57:16...addCronAllowedUser 2021-04-27 11:57:16...saveConfig 2021-04-27 11:57:16...new Currency 2021-04-27 11:57:16...retrieve 2021-04-27 11:57:16...DBG: save currency 2021-04-27 11:57:16...Save user settings.. 2021-04-27 11:57:16...DBG: SugarThemeRegistry::getDefault 2021-04-27 11:57:26...installerHook: Info: custom/install/install_hooks.php not present, no custom hooks to execute #### Steps to Reproduce 1. Install a new version of SuiteCRM 7.11.18 2. Log in a administrator #### Your Environment SuiteCRM Version used: 7.11.18 Browser name and version: all PHP Built On: Linux localhost 3.10.0-1127.10.1.el7.x86_64 #1 SMP Database Type: mysql Database Version: 5.6.42-log PHP Version: 7.3.27 Web Server: Apache/2.4.46 (Unix)
Author
Owner

@johnM2401 commented on GitHub (Apr 28, 2021):

Hey,

I'm unable to replicate, I'm afraid.

I've filled in the details here, during the 7.11.18 install process:
image

and they appear to have pulled into the Admin->Email Settings:
image


Was this the section you were referring to in the Install process?
Or have I perhaps missed something?

Oddly enough I do get similar errors in the suitecrm.log after installing, despite the values pulling across fine


Please let me know if I've missed any steps

Or, if any other users have noticed a similar issue, feel free to chip in with any relevant info!

@johnM2401 commented on GitHub (Apr 28, 2021): Hey, I'm unable to replicate, I'm afraid. I've filled in the details here, during the 7.11.18 install process: ![image](https://user-images.githubusercontent.com/13675281/116400376-dec87b80-a821-11eb-9634-30b76a88d059.png) and they appear to have pulled into the Admin->Email Settings: ![image](https://user-images.githubusercontent.com/13675281/116400520-0b7c9300-a822-11eb-800a-777d2356c625.png) <br> Was this the section you were referring to in the Install process? Or have I perhaps missed something? Oddly enough I do get similar errors in the suitecrm.log after installing, despite the values pulling across fine <br> Please let me know if I've missed any steps Or, if any other users have noticed a similar issue, feel free to chip in with any relevant info!
Author
Owner

@Talleyrand commented on GitHub (Apr 28, 2021):

Dear johnM2401,

sorry to have wasted your time but today I can´t reproduce it either anymore that way. I tried the same steps as yesterday, 5 times now.
But I found various issues related to that problem, please see #### Steps to Reproduce below.
As well as it´s possible origin by inspecting the database.

Checking the table "outbound_email" the following fields of the first record are empty after the installation

  • smtp_from_name
  • smtp_from_addr
  • date_entered
  • date_modified
  • modified_user_id
  • created_by
  • assigned_user_id

I expect the "Administration -> Email settings" window gets it´s data from config table, this is why it seems to be correct, but all other functions relay on the "outbound_email" table.

Best regards

Steps to Reproduce

  1. Install a new version of SuiteCRM 7.11.18

  2. Log in as administrator

  3. Go to "Administration -> Email settings" => see that all data was saved and close by "Cancel"

  4. Go to "Administration -> Outbound Email" click on edit for record named "system" => missing data (see screenshot_001.png)

  5. Don´t fill in data and close by "Cancel"

  6. Open another tab in your browser and go to "admin -> Profile", scroll down to email settings and click on "Settings"-button to open the popup window

  7. Go back to the first tab and refresh page => You see now 2 records named "system"

  8. Go to second tab again and click in the popup window on the tab "Mail Accounts" -> in the Outgoing SMTP Mail Servers section you see "Warning: Missing username and password for outgoing mail account." (see screenshot_002.png)

  9. Populate "Incoming Email" with data as well as "Reply to Address:", leave "Outgoing SMTP Mail Server:" with it´s default selection "system" and click 2x on done.

  10. Go to "Administration -> Outbound Email" click on edit for record named "system" => data partially filled in in both (see screenshot_003.png)

  11. Click on "Send Test Email" and send to any email address -> Message "An email error occurred:Invalid address: (From): XXXXXXXXX"

@Talleyrand commented on GitHub (Apr 28, 2021): Dear johnM2401, sorry to have wasted your time but today I can´t reproduce it either anymore that way. I tried the same steps as yesterday, 5 times now. But I found various issues related to that problem, please see #### Steps to Reproduce below. As well as it´s possible origin by inspecting the database. Checking the table "outbound_email" the following fields of the first record are empty after the installation - smtp_from_name - smtp_from_addr - date_entered - date_modified - modified_user_id - created_by - assigned_user_id I expect the "Administration -> Email settings" window gets it´s data from config table, this is why it seems to be correct, but all other functions relay on the "outbound_email" table. Best regards #### Steps to Reproduce 1. Install a new version of SuiteCRM 7.11.18 2. Log in as administrator 3. Go to "Administration -> Email settings" => see that all data was saved and close by "Cancel" 4. Go to "Administration -> Outbound Email" click on edit for record named "system" => missing data (see screenshot_001.png) 5. Don´t fill in data and close by "Cancel" 6. Open another tab in your browser and go to "admin -> Profile", scroll down to email settings and click on "Settings"-button to open the popup window 7. Go back to the first tab and refresh page => You see now 2 records named "system" 8. Go to second tab again and click in the popup window on the tab "Mail Accounts" -> in the Outgoing SMTP Mail Servers section you see "Warning: Missing username and password for outgoing mail account." (see screenshot_002.png) 9. Populate "Incoming Email" with data as well as "Reply to Address:", leave "Outgoing SMTP Mail Server:" with it´s default selection "system" and click 2x on done. 10. Go to "Administration -> Outbound Email" click on edit for record named "system" => data partially filled in in both (see screenshot_003.png) 11. Click on "Send Test Email" and send to any email address -> Message "An email error occurred:Invalid address: (From): XXXXXXXXX"
Author
Owner

@johnM2401 commented on GitHub (Apr 29, 2021):

Hey,
Thanks for getting back in touch!

It seems as though none of the screenshots have come through, I'm afraid. I can't see them here.
Would you be able to re-post them, if you get a chance?


For .4 in your Steps
When I navigate to the "System" outbound Account, all data appears to be filled in, except from the "From name" and "From Address" fields.
Is this what you see?

image


However, from .5 onwards, I am unable to replicate, i'm afraid

There only seems to be one "system" outbound account, even after going through Profile->Email Settings, and creating an Inbound Mail Account.
So, I get no errors/no failure to send test Email


For the sake of matching you as close as possible, can I ask where you got the Copy of SuiteCRM 7.11.18 you are using?
Was it just from the SuiteCRM website?

And, I don't expect it would make much difference, but are you using any Web Browser in particular?
Or does this occur regardless of browser used?

Thanks!

@johnM2401 commented on GitHub (Apr 29, 2021): Hey, Thanks for getting back in touch! It seems as though none of the screenshots have come through, I'm afraid. I can't see them here. Would you be able to re-post them, if you get a chance? <br> For .4 in your Steps When I navigate to the "System" outbound Account, all data appears to be filled in, except from the "From name" and "From Address" fields. Is this what you see? ![image](https://user-images.githubusercontent.com/13675281/116544197-b8b8df00-a8e6-11eb-8f30-30ff55f82bdf.png) <br> However, from .5 onwards, I am unable to replicate, i'm afraid There only seems to be one "system" outbound account, even after going through Profile->Email Settings, and creating an Inbound Mail Account. So, I get no errors/no failure to send test Email <br> For the sake of matching you as close as possible, can I ask where you got the Copy of SuiteCRM 7.11.18 you are using? Was it just from [the SuiteCRM website?](https://suitecrm.com/download/) And, I don't expect it would make much difference, but are you using any Web Browser in particular? Or does this occur regardless of browser used? Thanks!
Author
Owner

@serhiisamko091184 commented on GitHub (Mar 15, 2024):

Hello, @Talleyrand

The issue has been marked as stale because there has been no recent activity. It will be closed if no further activity occurs.
Thanks for your contributions.

Regards,
Serhii

@serhiisamko091184 commented on GitHub (Mar 15, 2024): Hello, @Talleyrand The issue has been marked as stale because there has been no recent activity. It will be closed if no further activity occurs. Thanks for your contributions. Regards, Serhii
Author
Owner

@serhiisamko091184 commented on GitHub (Apr 9, 2024):

Hey @Talleyrand

Closing this issue due to inactivity.
Thank you.

Regards,
Serhii

@serhiisamko091184 commented on GitHub (Apr 9, 2024): Hey @Talleyrand Closing this issue due to inactivity. Thank you. Regards, Serhii
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4521
No description provided.