Thursday, July 12, 2012

WARNINGcall_user_func_array() expects parameter 2 to be array, string givenError in line 649

Today i faced with JCE joomla image manager problem. It was displaying all the time when i tried to insert or edit image.
PHP Error Message: WARNINGcall_user_func_array() expects parameter 2 to be array, string givenError in line 649 of file /customers/global-trade.dk/global-trade.dk/httpd.www/plugins/editors/jce/libraries/classes/plugin.php
So here is how to fix it:
1) Go to /plugins/editors/jce/libraries/classes/plugin.php,2) You should see the line code:
$result = call_user_func_array( $func, $args );
3) Edit it to this code:
$result = call_user_func_array( $func, (array)$args );
4) Save and go insert / edit images!

Source: http://ow-s.com/interesnye-stati/82-problema-s-jce-redaktorom-na-novyx-versiyax-php.html