Quantcast
Channel: Software Support - PKP Community Forum
Viewing all articles
Browse latest Browse all 17646

OJS 3.1. and PHP Warning: array_flip(): Can only flip STRING and INTEGER values

$
0
0

@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/publication

They are triggered here: https://github.com/pkp/pkp-lib/blob/master/controllers/grid/settings/preparedEmails/PreparedEmailsGridCellProvider.inc.php#L36-L43
When getRoleNames is called here https://github.com/pkp/pkp-lib/blob/master/classes/core/PKPApplication.inc.php#L683-L704

and 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

Read full topic


Viewing all articles
Browse latest Browse all 17646

Trending Articles