toshiaf

Anonymous
angry
Hi I have tried to install Geeklog at Hostmonster server. But I got an error with debug mode;


2 - array_merge() [function.array-merge]: Argument #1 is not an array @ /home1/xxxx/private/_GeeklogJpn/system/lib-plugins.php line 1553


How can I resolve this error?

Thank you for your kindness.

Toshiaf

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Hmm, when exactly are you getting this error? Sounds like something that could come up when posting a story - so you did get Geeklog installed but it's not working properly?

bye, Dirk

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Actually, I think I just ran into a similar issue with a local test install. When an error occurs during the installation and we want to log it to the error.log file, it's possible that Geeklog tries to call a function that's not ready for use yet (since Geeklog hasn't been installed yet).

Ouch Geek

Try this: Open the file system/lib-plugins.php in a text editor. Go to line 1553 (as reported), which should look like this:

Text Formatted Code
$all_plugins = array_merge($_PLUGINS, array('story', 'user'));


Before that line, add this line:

Text Formatted Code
if (empty($_PLUGINS)) { $_PLUGINS = array(); }


Save the file, drop your database and try again.

As I said above, this probably happens because there was an error during the installation, so it may still not work - but at least now it should give you an idea what the actual problem is.

bye, Dirk

Status: offline

Alex001

Forum User
Newbie
Registered: 08/27/12
Posts: 4
If you already have hosting but your host does not support Geeklog and you require it,

Status: offline

bembe169

Forum User
Newbie
Registered: 02/27/15
Posts: 1
Quote by: Dirk

Actually, I think I just ran into a similar issue with a local test install. When an error occurs during the installation and we want to log it to the error.log file, it's possible that Geeklog tries to call a function that's not ready for use yet (since Geeklog hasn't been installed yet).

Ouch Geek

Try this: Open the file system/lib-plugins.php in a text editor. Go to line 1553 (as reported), which should look like this:

Text Formatted Code
$all_plugins = array_merge($_PLUGINS, array('story', 'user'));


Before that line, add this line:

Text Formatted Code
if (empty($_PLUGINS)) { $_PLUGINS = array(); }


Save the file, drop your database and try again.

As I said above, this probably happens because there was an error during the installation, so it may still not work - but at least now it should give you an idea what the actual problem is.

bye, Dirk



I have the same issue too. I'll try this one and see if it would do any good. Thanks.

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1475
Looking at the latest Geeklog code it looks like this issue should be fixed.

What version of Geeklog are you using?
One of the Geeklog Core Developers.