Hi all, first post on K2 and first experience with Joomla/K2, maybe my fault...
I've got an issue using K2 attachment on item.
Version:
Joomla! 3.1.5
K2 2.6.7
Apache 2.0
PHP 5.3.27
URL SEF enabled
Rewrite SEF enabled
Linux 2.6.32-358.18.1.el6.x86_64
(the site is under maintenance, offline, so the link isnt working without authentication)
When I try download that in backend, it works:
www.audiofilemusic.com/administrator/index.php?option=com_k2&view=item&task=download&id=2_4faa2ee56581930c41f695dc7439d435
The link without SEF rewrite was the same:
www.audiofilemusic.com/administrator/index.php?option=com_k2&view=item&task=download&id=2_4faa2ee56581930c41f695dc7439d435
When I try frontend download, it give up 404 not found (with SEF rewite):
www.audiofilemusic.com/aree/edizioni-speciali/download/2_4faa2ee56581930c41f695dc7439d435
Without SEF Rewrite the links become:
www.audiofilemusic.com/index.php?option=com_k2&view=item&id=3864:as-souvenir-edition&Itemid=156
And IT WORK, the download start correctly.
But I need to keep URL SEF Rewrite on... :huh:
Experimenting with url, I've found that the correct link had to be:
www.audiofilemusic.com/aree/edizioni-speciali/36-supplementi-e-edizioni-speciali/download/2_4faa2ee56581930c41f695dc7439d435
I think that the missing part "/article specification SEF/" is responsible of broken link
I think that the final responsible of the generated link was in /com_k2/models/item.php row:1597
$row->link = JRoute::_('index.php?option=com_k2&view=item&task=download&id='.$row->id.'_'.$hash);
It's a JRoute bug or a missing parameter passed to it?
May be fixed with some kind of override?
Thx
I've got an issue using K2 attachment on item.
Version:
Joomla! 3.1.5
K2 2.6.7
Apache 2.0
PHP 5.3.27
URL SEF enabled
Rewrite SEF enabled
Linux 2.6.32-358.18.1.el6.x86_64
(the site is under maintenance, offline, so the link isnt working without authentication)
When I try download that in backend, it works:
www.audiofilemusic.com/administrator/index.php?option=com_k2&view=item&task=download&id=2_4faa2ee56581930c41f695dc7439d435
The link without SEF rewrite was the same:
www.audiofilemusic.com/administrator/index.php?option=com_k2&view=item&task=download&id=2_4faa2ee56581930c41f695dc7439d435
When I try frontend download, it give up 404 not found (with SEF rewite):
www.audiofilemusic.com/aree/edizioni-speciali/download/2_4faa2ee56581930c41f695dc7439d435
Without SEF Rewrite the links become:
www.audiofilemusic.com/index.php?option=com_k2&view=item&id=3864:as-souvenir-edition&Itemid=156
And IT WORK, the download start correctly.
But I need to keep URL SEF Rewrite on... :huh:
Experimenting with url, I've found that the correct link had to be:
www.audiofilemusic.com/aree/edizioni-speciali/36-supplementi-e-edizioni-speciali/download/2_4faa2ee56581930c41f695dc7439d435
I think that the missing part "/article specification SEF/" is responsible of broken link
I think that the final responsible of the generated link was in /com_k2/models/item.php row:1597
$row->link = JRoute::_('index.php?option=com_k2&view=item&task=download&id='.$row->id.'_'.$hash);
It's a JRoute bug or a missing parameter passed to it?
May be fixed with some kind of override?
Thx