[SOLVED] Error: expects parameter 2 to be array

  • elemental.tm
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago #1218 by elemental.tm
Error: expects parameter 2 to be array was created by elemental.tm
Hi,

I'm getting the following error at the top of the page when editing a K2 record/article:

Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/tmbdistribution.co.uk/subdomains/beta/httpdocs/plugins/k2/mefgfork2/mefgfork2.php on line 572


URL:

mydomain.com/administrator/index.php?opt..._k2&view=item&cid=25


Please advise further.

Sys
PHP Built On Linux server002.atomicsprite.com 2.6.35.4-rscloud #8 SMP Mon Sep 20 15:54:33 UTC 2010 x86_64
Database Version 5.1.66-0+squeeze1
Database Collation utf8_general_ci
PHP Version 5.3.3-7+squeeze15
Web Server Apache
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.1.1 Stable [ Ember ] 26-April-2013 14:00 GMT
Joomla! Platform Version Joomla Platform 12.2.0 Stable [ Neil Armstrong ] 21-September-2012 00:00 GMT

K2 v2.6.7
Multiple Extra Fields Groups for K2 v1.0.34b

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #1219 by mmmaug1977
Replied by mmmaug1977 on topic Error: expects parameter 2 to be array
Hello Jamie,

This is a warning and can be ignored and hidden by setting the reporting level to None in the Global Configuration.

As long as the plugin functionality is working well, no worry from this warning.

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #1225 by dolfwvs
Replied by dolfwvs on topic Error: expects parameter 2 to be array
If this error annoys you (as it did me), replacing the line concerned solved it for me:
Code:
if(!empty($checkboxFields) && in_array($extraField->id, $checkboxFields)) { //Checkbox fields

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum