purple
21 December 2017 09:39
1
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?
pgr
21 December 2017 12:55
2
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.
purple
21 December 2017 16:20
3
Hi pgr,
Unfortunately, it didn’t work even if the changes have been applied.
The warning message is still there
Do you have any other suggestion that might solve this?
pgr
21 December 2017 16:34
4
What exactly is your version of SuiteCRM? And of PHP?
Please tell me also which file / linenumber you changed. Thanks
purple
21 December 2017 16:40
5
Hi pgr,
Here are the details:
Version 7.9.8
PHP 7
line 61 of SugarFieldMultienum.php
pgr
23 December 2017 11:55
6
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
Not sure what happened but when I just run repair and rebuild then everything went fine.