@ajnyga wrote:
Hi,
My test server had warnings turned on and I saw a lot of these in the logs:
[Wed Jan 24 17:59:30.930864 2018] [:error] [pid 27808] [client 10.8.0.10:50544] PHP Warning: array_flip(): Can only flip STRING and INTEGER values! in /var/www/site.fi/public_html/lib/pkp/classes/core/PKPApplication.inc.php on line 702, referer: https://site.fi/context/management/settings/publicationThey are triggered here: https://github.com/pkp/pkp-lib/blob/master/controllers/grid/settings/preparedEmails/PreparedEmailsGridCellProvider.inc.php#L36-L43
WhengetRoleNames
is called here https://github.com/pkp/pkp-lib/blob/master/classes/core/PKPApplication.inc.php#L683-L704and this is the array_flip causing the warning: https://github.com/pkp/pkp-lib/blob/master/classes/core/PKPApplication.inc.php#L700
Posts: 1
Participants: 1