ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: ahrasis on August 30, 2016, 05:20:14 am

Title: Install Addons Error
Post by: ahrasis on August 30, 2016, 05:20:14 am
QuoteWarning: mysqli_real_escape_string() expects parameter 2 to be string, array given
http://elkarte11.sch.my/index.php?action=admin;area=packages;sa=install2;package=SPB.v.106.elkarte.ahrasis.com.zip;pid=0
File: /var/www/clients/client2/web13/web/sources/database/Db-mysql.class.php
Line: 1165

Warning: max(): When only one parameter is given, it must be an array
http://elkarte11.sch.my/index.php?action=admin;area=packages;sa=install2;package=SPB.v.106.elkarte.ahrasis.com.zip;pid=0
File: /var/www/clients/client2/web13/web/sources/database/Db-mysql.class.php
Line: 297

Warning: array_map(): Argument #2 should be an array
http://elkarte11.sch.my/index.php?action=admin;area=packages;sa=install2;package=SPB.v.106.elkarte.ahrasis.com.zip;pid=0
File: /var/www/clients/client2/web13/web/sources/database/Db-mysql.class.php
Line: 294

Warning: str_split() expects parameter 1 to be string, array given
http://elkarte11.sch.my/index.php?action=admin;area=packages;sa=install2;package=SPB.v.106.elkarte.ahrasis.com.zip;pid=0
File: /var/www/clients/client2/web13/web/sources/database/Db-mysql.class.php
Line: 294

1.1 Beta 2. Happens during addon's installation.  The installation page gives this error message.

QuoteConnection Problems

Sorry, we were unable to connect to the database. This may be caused by the server being busy. Please try again later.

I tried with Footer Menu addon and it went through just fine. I guess the following hook request to database is denied:

Code: [Select]
$hook_functions = array(
'integrate_action_display_after' => 'SPB_Main|BOARDDIR/addons/SPB/SPB.subs.php',
'integrate_general_mod_settings' => 'SPB_Settings|BOARDDIR/addons/SPB/SPB.subs.php',
);

// Adding or removing them?
if (!empty($context['uninstalling']))
$call = 'remove_integration_function';
else
$call = 'add_integration_function';

// Do the deed
foreach ($hook_functions as $hook => $function)
$call($hook, $function);
Title: Re: Install Addons Error
Post by: ahrasis on September 01, 2016, 12:45:39 am
Bumped, in case this is overlooked. ;)
Title: Re: Install Addons Error
Post by: emanuele on September 01, 2016, 07:10:53 am
Which addon are you trying to install? (Link.)
Title: Re: Install Addons Error
Post by: ahrasis on September 01, 2016, 09:10:14 am
Basically most of my own addons. But the above error is for this addon: http://www.elkarte.net/community/index.php?topic=2102.0