?
Referenced as Pull Request for: # 10480
avatar waader
waader
8 May 2016

Steps to reproduce the issue

Install current staging with mssql and testing data.

Expected result

Actual result

Go to the frontend and observer several warnings:

Warning: explode() expects parameter 2 to be string, array given in C:\Program Files (x86)\Ampps\www\joomla35\libraries\joomla\database\query\sqlsrv.php on line 376

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in C:\Program Files (x86)\Ampps\www\joomla35\libraries\joomla\database\query\sqlsrv.php on line 443

Warning: array_unique() expects parameter 1 to be array, null given in C:\Program Files (x86)\Ampps\www\joomla35\libraries\joomla\database\query\sqlsrv.php on line 443

Warning: implode() [function.implode]: Invalid arguments passed in C:\Program Files (x86)\Ampps\www\joomla35\libraries\joomla\database\query\sqlsrv.php on line 444

System information (as much as possible)

Additional comments

avatar waader waader - open - 8 May 2016
avatar alikon
alikon - comment - 8 May 2016

please can you check with the latest staging, thanks


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10327.

avatar zero-24 zero-24 - change - 8 May 2016
Category MS SQL
avatar zero-24 zero-24 - change - 8 May 2016
Status New Information Required
avatar waader
waader - comment - 8 May 2016

Same result.

avatar alikon
alikon - comment - 8 May 2016

@waader can you please update your info about errors with the latest staging


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10327.

avatar waader
waader - comment - 8 May 2016

Nothing changed:

Warning: explode() expects parameter 2 to be string, array given in C:\Program Files (x86)\Ampps\www\joomla35\libraries\joomla\database\query\sqlsrv.php on line 376

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in C:\Program Files (x86)\Ampps\www\joomla35\libraries\joomla\database\query\sqlsrv.php on line 443

Warning: array_unique() expects parameter 1 to be array, null given in C:\Program Files (x86)\Ampps\www\joomla35\libraries\joomla\database\query\sqlsrv.php on line 443

Warning: implode() [function.implode]: Invalid arguments passed in C:\Program Files (x86)\Ampps\www\joomla35\libraries\joomla\database\query\sqlsrv.php on line 444

avatar andrepereiradasilva
andrepereiradasilva - comment - 8 May 2016

i think the problem came from this commit 55078e0

avatar brianteeman brianteeman - change - 9 May 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 13 May 2016
Status Information Required Pending
avatar brianteeman brianteeman - change - 13 May 2016
Status Pending Confirmed
avatar sovainfo
sovainfo - comment - 14 May 2016

@waader Please try :

is_string($columns) && $columns = explode(',', str_replace(" ", "", $columns));

on line 376, it should make sure $columns is always an array.
Expect all warnings to disappear.

Correction: it makes sure a string passed as parameter is turned into an array.

avatar waader
waader - comment - 15 May 2016

@sovainfo: the notices have gone!

avatar sovainfo
sovainfo - comment - 15 May 2016

See #10480
@waader Please mark the successful test

Request for closing issue.

avatar brianteeman brianteeman - change - 15 May 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-05-15 14:28:17
Closed_By brianteeman
avatar brianteeman brianteeman - close - 15 May 2016
avatar brianteeman brianteeman - close - 15 May 2016
avatar brianteeman
brianteeman - comment - 15 May 2016

Closed as we have a PR #10480


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10327.

Add a Comment

Login with GitHub to post a comment