? Success

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
8 Dec 2014

This is an improved and complete fix of #4971. Copying the testing instructions to here:

Steps to reproduce the issue

Install Joomla (Test English (GB) Sample Data), for example
From the backend set the configuration ‘Search Engine Friendly URLs’ = ‘YES’
Use the url: index.php?option=com_tags&view=tag&layout=list&id[0]=3 (not sef url into a sef one. The id can have another value and NO Itemid has to be set)

You will have 3 times the error:
Notice: Array to string conversion in /libraries/cms/router/site.php on line 465

The proposal to fix is to replace
$id = $query['id'];
with
$id = (int) $query['id'];
which seems coherent with the test line 80

Expected result

No error

Actual result

Notice: Array to string conversion in /libraries/cms/router/site.php on line 465

System information (as much as possible)

Joomla 3.3.6

I further cleaned up the router. Basically it should work the same as before, except that that notice is gone. And we have quite a bit less code. :wink:

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
1.00

avatar Hackwar Hackwar - open - 8 Dec 2014
avatar jissues-bot jissues-bot - change - 8 Dec 2014
Labels Added: ?
avatar zero-24 zero-24 - change - 8 Dec 2014
Category Tags
avatar zero-24 zero-24 - change - 8 Dec 2014
Easy No Yes
avatar Hackwar
Hackwar - comment - 9 Dec 2014

While this fixes the router up, the TagsHelperRoute class is fixed in #5105. So please have a look there, too. Apply both PRs and it should make a world of difference. :wink:

avatar chmst
chmst - comment - 18 Dec 2014

@test - works as described

avatar chmst chmst - test_item - 18 Dec 2014 - Tested successfully
avatar chmst chmst - test_item - 18 Dec 2014 - Tested successfully
avatar bembelimen
bembelimen - comment - 29 Dec 2014

@test success

avatar elkuku elkuku - alter_testresult - 29 Dec 2014 - bembelimen: Tested successfully
avatar wilsonge wilsonge - test_item - 29 Dec 2014 - Tested successfully
avatar wilsonge
wilsonge - comment - 29 Dec 2014

@test works for me in various different tags views. Merging

avatar wilsonge wilsonge - change - 29 Dec 2014
Milestone Added:
avatar wilsonge wilsonge - reference | 88fb6c7 - 29 Dec 14
avatar wilsonge wilsonge - merge - 29 Dec 2014
avatar wilsonge wilsonge - close - 29 Dec 2014
avatar wilsonge wilsonge - close - 29 Dec 2014
avatar wilsonge wilsonge - change - 29 Dec 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-12-29 14:28:46
avatar Hackwar Hackwar - head_ref_deleted - 29 Dec 2014

Add a Comment

Login with GitHub to post a comment