Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Content dissapears when plugins installed
#1
Apache 2.2.15 (Win32) & PHP 5.3.2 on a Win 2k box used for development.

When I try to add some plugins (eg, news, medialution-component-in-site) I get an error

GSDEBUG Wrote:Warning: call_user_func_array() expects parameter 2 to be array, string given in E:\Apache\htdocs\...\admin\inc\plugin_functions.php on line 139


It seems only to be get_page_content(); which is failing, everything else appears OK.

On a linux server they work fine so I'm guessing it's a windows problem causing this, does anyone have any ideas about how to fix it so I can continue to work locally rather than keep having to upload every code change to test...
Reply
#2
What version of GetSimple are you using? I thought this problem had already been taken care of. The current development build of GetSimple fixes this by always forcing the second parameter on that line you mention to be an array:
Code:
$data = call_user_func_array($filter['function'], array($data));
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
Version 2.01, downloaded only a few days ago, I edited the line and it seems to be working OK now, thanks Wink
Reply




Users browsing this thread: 1 Guest(s)