Success

User tests: Successful: Unsuccessful:

avatar b92
b92
2 Nov 2014

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

avatar b92 b92 - open - 2 Nov 2014
avatar Bakual
Bakual - comment - 2 Nov 2014

com_tags is a bit a special case in that the id can be an integer (&id=1), a coma separated list of ids (&id=1,2,3) or an array of ids (&id[0]=1&id[1]=2&id[2]=3).
You need to make sure all three cases work.

avatar b92
b92 - comment - 2 Nov 2014
  • the case 'alone' &id[0]=2

So I do not know ... may more complex for the fix. But the issue still there!

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

avatar brianteeman brianteeman - change - 3 Nov 2014
Category SEF Tags
avatar b92
b92 - comment - 3 Nov 2014

1/ The code updated impact only view=tags (without s :) )
=> Is someone knows how to check all the cases for this view, please let me know (it's seems ok to me)

2/ Rechecking this router.php I saw that there is cases check for $advanced but
$params= JComponentHelper::getParams('com_tags');

$advanced = $params->get('sef_advanced_link', 0);

the variable is never set (out of like that) somewhere into the whole Joomla install !
Is it a forgotten code (this is the same comment for some other components: com_contact, com_content, com_newsfeeds, sef_advanced_link)?


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

avatar Bakual
Bakual - comment - 3 Nov 2014

sef_advanced is sort of a hidden feature. It was once meant to made available but never worked reliable enough. For now you can ignore that part. We're fine if it works without that :smile:

avatar Hackwar
Hackwar - comment - 8 Dec 2014

See #5347 for a different solution.

avatar zero-24 zero-24 - change - 8 Dec 2014
Status New Closed
avatar jissues-bot
jissues-bot - comment - 8 Dec 2014

Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/4971

avatar jissues-bot jissues-bot - close - 8 Dec 2014
avatar zero-24
zero-24 - comment - 8 Dec 2014

Closing as we have a PR by @Hackwar here: #5347

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

avatar jissues-bot jissues-bot - change - 8 Dec 2014
Closed_Date 0000-00-00 00:00:00 2014-12-08 10:47:19

Add a Comment

Login with GitHub to post a comment