SuiteCRM 8.1 Fresh Installation PHP Errors when sending test email

PHP 8.0

2022/03/27 18:50:19 [error] 4107595#4107595: *781400 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "prevPage" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 181PHP message: PHP Warning:  Undefined array key "nextPage" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 206PHP message: PHP Warning:  Undefined array key "url" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%74^74F^74FBB9DE%%DashletGenericAutoRefresh.tpl.php on line 29PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.p
2022/03/27 18:50:20 [error] 4107595#4107595: *781400 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "prevPage" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 181PHP message: PHP Warning:  Undefined array key "nextPage" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 206PHP message: PHP Warning:  Undefined array key "url" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%74^74F^74FBB9DE%%DashletGenericAutoRefresh.tpl.php on line 29PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "bold" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8D^8D0^8D0FADE7%%DashletGenericDisplay.tpl.p
2022/03/27 18:51:58 [error] 4107595#4107595: *781458 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "is_imported" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%89^89C^89C01789%%displayIndicatorField.tpl.php on line 9PHP message: PHP Warning:  Undefined array key "folder" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%C9^C95^C95D1E90%%displaySubjectField.tpl.php on line 22PHP message: PHP Warning:  Undefined array key "folder_type" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%C9^C95^C95D1E90%%displaySubjectField.tpl.php on line 23PHP message: PHP Warning:  Undefined array key "inbound_email_record" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%C9^C95^C95D1E90%%displaySubjectField.tpl.php on line 24PHP message: PHP Warning:  Undefined array key "msgno" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%C9^C95^C95D1E90%%displaySubjectField.tpl.php on line 26PHP message: PHP Warning:  Undefined array key "has_attachment" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%F7^F75^F75DB14C%%displayHasAttachmentField.tpl.php on line 8PHP message: PHP Warning:  Undefined array key "accesskeycount" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%DB^DB4^DB4DD407%%SearchFormGeneric.tpl.php on line 77PHP message: PHP Warning:  Undefined array key "displayParams" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%DB^DB4^DB4DD407%%SearchFormGeneric.tpl.php on line 102PHP message: PHP Warning:  Undefined array key "type" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%DB^DB4^DB4DD407%%SearchFormGeneric.tpl.php on line 102PHP message: PHP Warning:  Undefined array key "form_name" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%DB^DB4^DB4DD407%%SearchFormGeneric.tpl.php on line 102PHP message: PHP Warning:  Undefined array key "tabindex" in /home/suitecrm/suitecrm/public/legacy/include/Smarty/plugins/function.
2022/03/27 18:52:14 [error] 4107595#4107595: *781453 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "footer_buttons" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%8C^8C7^8C7DB5B8%%actions_buttons.tpl.php on line 28PHP message: PHP Warning:  Undefined array key "ADMIN_EDIT" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%04^044^044EF36F%%header.tpl.php on line 106PHP message: PHP Warning:  Undefined array key "panelCount" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%04^044^044EF36F%%header.tpl.php on line 108PHP message: PHP Warning:  Undefined array key "collapsed" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%61^617^61770725%%EditView.tpl.php on line 244PHP message: PHP Warning:  Undefined array key "colspan" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 22PHP message: PHP Warning:  Undefined array key "colspan" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 47PHP message: PHP Warning:  Undefined array key "inline_edit" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 106PHP message: PHP Warning:  Undefined array key "colspan" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 108PHP message: PHP Warning:  Undefined array key "prefix" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 137PHP message: PHP Warning:  Undefined array key "displayParams" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 156PHP message: PHP Warning:  Undefined array key "ACCKEY" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 158PHP message: 
2022/03/27 18:52:14 [error] 4107595#4107595: *781453 FastCGI sent in stderr: "P message: PHP Warning:  Undefined array key "inline_edit" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 173PHP message: PHP Warning:  Undefined array key "colspan" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 22PHP message: PHP Warning:  Undefined array key "colspan" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 47PHP message: PHP Warning:  Undefined array key "required" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 75PHP message: PHP Warning:  Undefined array key "inline_edit" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 106PHP message: PHP Warning:  Undefined array key "colspan" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 108PHP message: PHP Warning:  Undefined array key "prefix" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 137PHP message: PHP Warning:  Undefined array key "displayParams" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 156PHP message: PHP Warning:  Undefined array key "ACCKEY" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 158PHP message: PHP Warning:  Undefined array key "displayParams" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 158PHP message: PHP Warning:  Undefined array key "type" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php 
2022/03/27 18:52:14 [error] 4107595#4107595: *781453 FastCGI sent in stderr: "ty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 158PHP message: PHP Warning:  Undefined array key "field" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%62^62E^62E293EC%%EditView.tpl.php on line 68PHP message: PHP Warning:  Undefined array key "inline_edit" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 173PHP message: PHP Warning:  Undefined array key "inline_edit" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 106PHP message: PHP Warning:  Undefined array key "prefix" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 137PHP message: PHP Warning:  Undefined array key "displayParams" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 156PHP message: PHP Warning:  Undefined array key "ACCKEY" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 158PHP message: PHP Warning:  Undefined array key "displayParams" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 158PHP message: PHP Warning:  Undefined array key "type" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 158PHP message: PHP Warning:  Undefined array key "field" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%62^62E^62E293EC%%EditView.tpl.php on line 68PHP message: PHP Warning:  Undefined array key "inline_edit" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 173PHP message: PHP Warning:  Undefined array key "inline_edit" in /home/suitecrm/suitecrm/public/legacy/cache/smart
2022/03/27 18:52:14 [error] 4107595#4107595: *781453 FastCGI sent in stderr: "e/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 137PHP message: PHP Warning:  Undefined array key "displayParams" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 156PHP message: PHP Warning:  Undefined array key "ACCKEY" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 158PHP message: PHP Warning:  Undefined array key "displayParams" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 158PHP message: PHP Warning:  Undefined array key "type" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 158PHP message: PHP Warning:  Undefined array key "field" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%DE^DE7^DE77CA9F%%EditView.tpl.php on line 64PHP message: PHP Warning:  Undefined array key "inline_edit" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 173PHP message: PHP Warning:  Undefined array key "colspan" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 22PHP message: PHP Warning:  Undefined array key "colspan" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 47PHP message: PHP Warning:  Undefined array key "inline_edit" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 106PHP message: PHP Warning:  Undefined array key "colspan" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%44^449^449D18A4%%tab_panel_content.tpl.php on line 108PHP message: PHP Warning:  Undefined array key "prefix" in /ho
2022/03/27 18:52:14 [error] 4107595#4107595: *781453 FastCGI sent in stderr: "app_strings" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%15^159^15940F08%%EditView.tpl.php on line 100PHP message: PHP Warning:  Trying to access array offset on value of type null in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%15^159^15940F08%%EditView.tpl.php on line 100PHP message: PHP Warning:  Undefined array key "default_value" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%15^159^15940F08%%EditView.tpl.php on line 172PHP message: PHP Warning:  Undefined array key "default_value" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%15^159^15940F08%%EditView.tpl.php on line 512PHP message: PHP Warning:  Undefined array key "default_value" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%15^159^15940F08%%EditView.tpl.php on line 550PHP message: PHP Warning:  Undefined array key "default_value" in /home/suitecrm/suitecrm/public/legacy/cache/smarty/templates_c/%%15^159^15940F08%%EditView.tpl.php on line 588" while reading response header from upstream, client: 162.158.179.163, server: crm.pydrox.com, request: "GET /legacy/index.php?return_module=AOS_PDF_Templates&return_action=DetailView&module=AOS_PDF_Templates&action=EditView HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm.sock:", host: "crm.pydrox.com", referrer: "https://crm.pydrox.com/"

Also when doing composer cache:clear

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!  PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/suitecrm/suitecrm/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 134
!!  PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/suitecrm/suitecrm/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 144
!!  PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Session::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/suitecrm/suitecrm/vendor/symfony/http-foundation/Session/Session.php on line 131
!!  PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/suitecrm/suitecrm/vendor/symfony/http-foundation/Session/Session.php on line 141
!!  
!!   // Clearing the cache for the prod environment with debug                      
!!   // false                                                                       
!!  
!!  
!!  In DefinitionErrorExceptionPass.php line 54:
!!                                                                                 
!!    Cannot autowire service "App\Install\Command\InstallExtensionAssets": argum  
!!    ent "$name" of method "__construct()" is type-hinted "string", you should c  
!!    onfigure its value explicitly.                                               
!!                                                                                 
!!  
!!  cache:clear [--no-warmup] [--no-optional-warmers]
!!  
!!  
Script @auto-scripts was called via post-install-cmd

Composer cache clear has nothing to do with SuiteCRM cache.

Rather, try from Admin / Repairs, run a Quick Repair and Rebuild

1 Like

Thanks for the suggestion, I have just tried that however the repair page gone blank after I click a button below some confirmation query box, and now even the root page is broken (404)

GET https://crm.pydrox.com/api/index.php?action=Login&module=Users 404

I guess I’ll try a full clean reinstall tomorrow and see how it goes then

I have reinstalled SuiteCRM and the issues were fixed, I might have possibly corrupted the installation, thank you for the help!

1 Like

Does someone know how to fix all those undefined array error from smarty ? got like 400 warning in my php logs on every page since I’ve put PHP8 on my CRM.

Re installing is not an option since its my production

For now my only way to fix this is do go back to PHP7.4 …

If you delete “public/legacy/cache”, do the same errors appear again?

Hi there, I guess it’s fine this time but please don’t necropost next time. Instead, you can create a new post so unrelated members of a post doesn’t get email spammed :slight_smile:

Sadly, deleting cache/smarty/templates_c do not change anything.
Only happens on PHP8 tho.

@ianlaulau I ofc get what you mean, as an active members from the past I know that receiving email for answer of a topic you closed a year ago can be annoying, thing is that this topic is well indexed by google, and I know via github that Im not the only one having those warning log on PHP8 environment. What you can maybe do is to disable the email notification for your own topic ? Sorry for the inconvenience !

1 Like