Unable to access Email module

Hi There,

I am not a developer but an accountant. I have spent tons of time installing SuiteCRM on localhost and now on the webhost too. Everything seems very well but the only problem I get whenever I try to access the Email module is "Error occurred while fetching metadata’. I have tried every possible solution I could. But no luck! I can access to everyother module but not sure why, it happened when I installed the CRM on localhost and now here too. It won’t show the error instantly, when a new installation is done, I was even able to send the test email, some other email templates I setup as a test. But after sometime, I got this error.

image

This is very important for me as I have spent tons of time setting this up. I can share the error log from console which is
ERROR Error: Uncaught (in promise): ApolloError: Internal server error
ApolloError
at new e (dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:31534)
at dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:76738
at A (dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:39578)
at dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:39493
at new n (dist/polyfills.8b11d31048ab8f48.js:1:19099)
at Object.then (dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:39460)
at Object.next (dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:39588)
at Se (dist/core_app_shell_src_bootstrap_ts.07e790b4dacc88d1.js:1:169674)
at Oe (dist/core_app_shell_src_bootstrap_ts.07e790b4dacc88d1.js:1:170228)
at C.next (dist/core_app_shell_src_bootstrap_ts.07e790b4dacc88d1.js:1:170736)
at new e (dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:31534)
at dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:76738
at A (dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:39578)
at dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:39493
at new n (dist/polyfills.8b11d31048ab8f48.js:1:19099)
at Object.then (dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:39460)
at Object.next (dist/node_modules_apollo-angular_fesm2022_ngApollo_mjs-_63b60.6beb10d2ab674fd4.js:1:39588)
at Se (dist/core_app_shell_src_bootstrap_ts.07e790b4dacc88d1.js:1:169674)
at Oe (dist/core_app_shell_src_bootstrap_ts.07e790b4dacc88d1.js:1:170228)
at C.next (dist/core_app_shell_src_bootstrap_ts.07e790b4dacc88d1.js:1:170736)
at ve (dist/polyfills.8b11d31048ab8f48.js:1:16679)
at ve (dist/polyfills.8b11d31048ab8f48.js:1:16218)
at dist/polyfills.8b11d31048ab8f48.js:1:17522
at x.invokeTask (dist/polyfills.8b11d31048ab8f48.js:1:7831)
at Object.onInvokeTask (dist/node_modules_angular_core_fesm2022_core_mjs.3e1a513b7cb4915e.js:1:168446)
at x.invokeTask (dist/polyfills.8b11d31048ab8f48.js:1:7752)
at te.runTask (dist/polyfills.8b11d31048ab8f48.js:1:3175)
at j (dist/polyfills.8b11d31048ab8f48.js:1:9872)
at k.invokeTask [as invoke] (dist/polyfills.8b11d31048ab8f48.js:1:8915)
at N (dist/polyfills.8b11d31048ab8f48.js:1:21511)

Just make sure you have correct permission and ownership set:

Set the required permissions

If you are using the terminal you can do this by running:

find . -type d -not -perm 2755 -exec chmod 2755 {} \;
find . -type f -not -perm 0644 -exec chmod 0644 {} \;
find . ! -user www-data -exec chown www-data:www-data {} \;
chmod +x bin/console

Please have in mind that:

  • The user and group name (in the above example www-data ) needs to be replaced by the actual system user and group that your webserver runs under. This varies depending on your operating system. Common web server users are as follows:

    • www-data (Ubuntu Linux/Apache)
    • apache (Linux/Apache)

Also, you can do Quick Repair and Refresh

Admin → Repair → Quick Repair and Refresh


What is your CRM version and PHP version?

The PHP version I am using “PHP 8.2.12 (cli) (built: Oct 24 2023 21:15:15) (ZTS Visual C++ 2019 x64)”. I am running Version 8.7.0 via xampp.

I have checked the permission as I found this suggestion on the forum so that is already changed to Full Control. Already tried Quick Repair version too.

Can you please try it in a different browser, just to eliminate caching issues?

Tried in a new chrome. Here is the Debug log while accessing email,
Wed Oct 16 14:42:56 2024 [3322664][1][WARN] CSS File Dawn/yui.css not found

Log repair and rebuild

Clearing Vardefs from cache…done

Clearing language files from cache…done

Clearing Template files from cache…done

Clearing JS files from cache…done

Clearing Vardefs from cache…done

Clearing JS Language files from cache…done

Clearing language files from cache…done

Clearing SuiteCRM Dashlet files from cache…done

Clearing SuiteCRM Feed Cache…done

Clearing Smarty templates from cache…done

Clearing Theme Cache…done

Clearing XML files from cache…done

Clearing Unified Search Cache…done

Clearing External API Cache File…done

Rebuilding Extensions…

Rebuilding Include…
Rebuilding Language…en_us
Rebuilding ActionViewMap…
Rebuilding ActionFileMap…
Rebuilding ActionReMap…
Rebuilding Administration…
Rebuilding EntryPointRegistry…
Rebuilding Extensions…
Rebuilding FileAccessControlMap…
Rebuilding Layoutdefs…
Rebuilding GlobalLinks…
Rebuilding LogicHooks…
Rebuilding Menus…
Rebuilding Include…
Rebuilding ScheduledTasks…
Rebuilding UserPage…
Rebuilding Utils…
Rebuilding Vardefs…
Rebuilding JSGroupings…
Rebuilding Actions…
Rebuilding ActionNameMap…
Rebuilding ApiBeanMappers…
Rebuilding ModuleNameMap…
Rebuilding FilterOperatorMap…
Rebuilding FilterMappers…
Rebuilding ClassicViewRoutingExclusions…
Rebuilding PDF…
Rebuilding ExternalOAuthProviders…
Rebuilding DC Actions…
Rebuilding RelationshipsRebuilding TableDictionary…
Updating the admin warning message…

Rebuilding Audit Tables…

ACLAction not Audit Enabled…
ACLRole not Audit Enabled…
Relationship not Audit Enabled…
Audit table for Leads already exists. skipping…
Audit table for Cases already exists. skipping…
Audit table for Bugs already exists. skipping…
User not Audit Enabled…
CampaignLog not Audit Enabled…
Project not Audit Enabled…
Audit table for ProjectTasks already exists. skipping…
Audit table for Campaigns already exists. skipping…
ProspectList not Audit Enabled…
Prospect not Audit Enabled…
EmailMarketing not Audit Enabled…
CampaignTracker not Audit Enabled…
Release not Audit Enabled…
EmailMan not Audit Enabled…
Scheduler not Audit Enabled…
SchedulersJob not Audit Enabled…
Audit table for Contacts already exists. skipping…
Audit table for Accounts already exists. skipping…
Audit table for Opportunitys already exists. skipping…
EmailTemplate not Audit Enabled…
Note not Audit Enabled…
Call not Audit Enabled…
Email not Audit Enabled…
Meeting not Audit Enabled…
Task not Audit Enabled…
User not Audit Enabled…
Employee not Audit Enabled…
Currency not Audit Enabled…
Tracker not Audit Enabled…
ImportMap not Audit Enabled…
UsersLastImport not Audit Enabled…
Administration not Audit Enabled…
UpgradeHistory not Audit Enabled…
vCal not Audit Enabled…
Alert not Audit Enabled…
Role not Audit Enabled…
Document not Audit Enabled…
DocumentRevision not Audit Enabled…
FieldsMetaData not Audit Enabled…
Audit not Audit Enabled…
InboundEmail not Audit Enabled…
SavedSearch not Audit Enabled…
UserPreference not Audit Enabled…
MergeRecord not Audit Enabled…
Audit table for EmailAddresss already exists. skipping…
EmailText not Audit Enabled…
AOBH_BusinessHours not Audit Enabled…
SugarFeed not Audit Enabled…
EAPM not Audit Enabled…
OAuthKey not Audit Enabled…
OAuthToken not Audit Enabled…
Audit table for AM_ProjectTemplatess already exists. skipping…
Audit table for AM_TaskTemplatess already exists. skipping…
Favorites not Audit Enabled…
Audit table for AOK_Knowledge_Base_Categoriess already exists. skipping…
Audit table for AOK_KnowledgeBases already exists. skipping…
Reminder not Audit Enabled…
Reminder_Invitee not Audit Enabled…
Audit table for FP_eventss already exists. skipping…
Audit table for FP_Event_Locationss already exists. skipping…
Audit table for AOP_Case_Eventss already exists. skipping…
Audit table for AOP_Case_Updatess already exists. skipping…
Audit table for AOR_Reports already exists. skipping…
AOR_Field not Audit Enabled…
AOR_Chart not Audit Enabled…
AOR_Condition not Audit Enabled…
AOR_Scheduled_Reports not Audit Enabled…
Audit table for AOS_Contractss already exists. skipping…
Audit table for AOS_Invoicess already exists. skipping…
Audit table for AOS_PDF_Templatess already exists. skipping…
Audit table for AOS_Product_Categoriess already exists. skipping…
Audit table for AOS_Productss already exists. skipping…
Audit table for AOS_Products_Quotess already exists. skipping…
Audit table for AOS_Line_Item_Groupss already exists. skipping…
Audit table for AOS_Quotess already exists. skipping…
AOW_Action not Audit Enabled…
Audit table for AOW_WorkFlows already exists. skipping…
AOW_Processed not Audit Enabled…
AOW_Condition not Audit Enabled…
Audit table for jjwg_Mapss already exists. skipping…
Audit table for jjwg_Markerss already exists. skipping…
Audit table for jjwg_Areass already exists. skipping…
Audit table for jjwg_Address_Caches already exists. skipping…
Audit table for Calls_Reschedules already exists. skipping…
Audit table for SecurityGroups already exists. skipping…
Audit table for OutboundEmailAccountss already exists. skipping…
ExternalOAuthConnection not Audit Enabled…
ExternalOAuthProvider not Audit Enabled…
TemplateSectionLine not Audit Enabled…
OAuth2Tokens not Audit Enabled…
OAuth2Clients not Audit Enabled…
Audit table for SurveyResponsess already exists. skipping…
Audit table for Surveyss already exists. skipping…
Audit table for SurveyQuestionResponsess already exists. skipping…
Audit table for SurveyQuestionss already exists. skipping…
Audit table for SurveyQuestionOptionss already exists. skipping…
Done

Database tables are synced with vardefs