Skip to main content
Topic: Install Addons Error (Read 2485 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Install Addons Error

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);

Re: Install Addons Error

Reply #1

Bumped, in case this is overlooked. ;)

Re: Install Addons Error

Reply #2

Which addon are you trying to install? (Link.)
Bugs creator.
Features destroyer.
Template killer.