[Solved] Dropdown Selects Broken PHP 7.4

I just upgraded to php-7.4 and all the drop down selects (like that show up when I start typing an Account or Contact name for an Invoice) are no longer working.

I updated to suitecrm version 7.11.10 but it’s still broken. Getting lots of errors on many pages, not sure if they’re related:

Notice: Trying to access array offset on value of type bool in /srv/http/suitecrm_stage/data/Relationships/One2MRelationship.php on line 108

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Notice: Trying to access array offset on value of type bool in /srv/http/suitecrm_stage/data/Relationships/One2MRelationship.php on line 108

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Notice: Trying to access array offset on value of type null in /srv/http/suitecrm_stage/include/SearchForm/SearchForm2.php on line 531

Any ideas to help me troubleshoot and fix what’s going wrong? Thanks!

running suitecrm 7.11.10,
php 7.4.0-2,
apache 2.4.41-1,
linux kernel 5.4.1

Try to change the error_reporting directive in your php.ini file to:

error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING

and then restart Apache.

Alternatively (but this is not upgrade safe, so it would just to see if things work), you may edit index.php and, add the following line at the beginning of the script:

ini_set('display_errors',0);
error_reporting(0);

(In this case you don’t need to restart the webserver)

https://docs.suitecrm.com/admin/compatibility-matrix/

:slight_smile:

1 Like

downgrade to php 7.3.12 fixed the issue.

1 Like

PHP 7.4 isn’t supported yet, but hopefully will be in the near-ish future: https://github.com/salesagility/SuiteCRM/issues/8057

2 Likes