Install Addons Error August 30, 2016, 05:20:14 am QuoteWarning: mysqli_real_escape_string() expects parameter 2 to be string, array givenhttp://elkarte11.sch.my/index.php?action=admin;area=packages;sa=install2;package=SPB.v.106.elkarte.ahrasis.com.zip;pid=0File: /var/www/clients/client2/web13/web/sources/database/Db-mysql.class.phpLine: 1165Warning: max(): When only one parameter is given, it must be an arrayhttp://elkarte11.sch.my/index.php?action=admin;area=packages;sa=install2;package=SPB.v.106.elkarte.ahrasis.com.zip;pid=0File: /var/www/clients/client2/web13/web/sources/database/Db-mysql.class.phpLine: 297Warning: array_map(): Argument #2 should be an arrayhttp://elkarte11.sch.my/index.php?action=admin;area=packages;sa=install2;package=SPB.v.106.elkarte.ahrasis.com.zip;pid=0File: /var/www/clients/client2/web13/web/sources/database/Db-mysql.class.phpLine: 294Warning: str_split() expects parameter 1 to be string, array givenhttp://elkarte11.sch.my/index.php?action=admin;area=packages;sa=install2;package=SPB.v.106.elkarte.ahrasis.com.zip;pid=0File: /var/www/clients/client2/web13/web/sources/database/Db-mysql.class.phpLine: 2941.1 Beta 2. Happens during addon's installation. The installation page gives this error message.QuoteConnection ProblemsSorry, 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 deedforeach ($hook_functions as $hook => $function) $call($hook, $function);
Re: Install Addons Error Reply #1 – September 01, 2016, 12:45:39 am Bumped, in case this is overlooked.
Re: Install Addons Error Reply #2 – September 01, 2016, 07:10:53 am Which addon are you trying to install? (Link.)
Re: Install Addons Error Reply #3 – 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