Posted on: 03/04/12 08:04am
By: Anonymous (toshiaf)
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
Re: I could not install Geeklog with Hostmonster.
Posted on: 03/04/12 09:29am
By: Dirk
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
Re: I could not install Geeklog with Hostmonster.
Posted on: 03/04/12 12:36pm
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
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
Re: I could not install Geeklog with Hostmonster.
Posted on: 03/04/13 01:24am
By: Alex001
If you already have hosting but your host does not support Geeklog and you require it,
Re: I could not install Geeklog with Hostmonster.
Posted on: 02/27/15 06:01am
By: bembe169
Quote by: DirkActually, 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
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.
Re: I could not install Geeklog with Hostmonster.
Posted on: 02/28/15 08:56am
By: Laugh
Looking at the latest Geeklog code it looks like this issue should be fixed.
What version of Geeklog are you using?