multi select error/warning message

Hi,

I tried to create a multiselect field but this warning message came up:

Warning: Declaration of SugarFieldMultienum::displayFromFunc($displayType, $parentFieldArray, $vardef, $displayParams, $tabindex) should be compatible with SugarFieldEnum::displayFromFunc($displayType, $parentFieldArray, $vardef, $displayParams, $tabindex = 0)

Any idea please on how to resolve it?

Yes, just go to that file and line number (which should be in your error, only you didn’t post it) and change the function header to end with

$tabindex = 0)

instead of just

$tabindex)

If it works, come back here and tell me the exact file and line number so I can fix it in the main code.

Hi pgr,

Unfortunately, it didn’t work even if the changes have been applied.
The warning message is still there :frowning:

Do you have any other suggestion that might solve this?

What exactly is your version of SuiteCRM? And of PHP?

Please tell me also which file / linenumber you changed. Thanks

Hi pgr,

Here are the details:

Version 7.9.8
PHP 7

line 61 of SugarFieldMultienum.php

Hi

it’s weird, I am accompanying another person with the exact same error as you, and he says the solution works for him:

https://suitecrm.com/forum/suitecrm-7-0-discussion/17070-importing-contacts-from-excel-csv#57394

Are you sure this particular error didn’t go away? Did you pay attention to the date/time of any errors in the log?

Maybe it doens’t solve your basic multiselect issue, but I don’t see how it’s possible that this does not remove that PHP Warning.

Please check and tell me what you find. Thanks

1 Like

Hi pgr,

Thank you for your comments and Happy New Year :slight_smile:

Not sure what happened but when I just run repair and rebuild then everything went fine. :stuck_out_tongue: