items/item bad url

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
14 years 6 months ago #7034 by Anonymous
items/item bad url was created by Anonymous
JRoute::_(FlexicontentHelperRoute::getItemRoute($row->slug, $row->catslug, $row->sectionid))
is creating this link:
/component/flexicontent/items/item/48-prawn-cocktail-sandwiches

which results in:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in *\htdocs\libraries\joomla\application\router.php on line 218

Fatal error: Unsupported operand types in *\htdocs\libraries\joomla\application\router.php on line 140

however, if i use this /component/flexicontent/item/48-prawn-cocktail-sandwiches
(removing items)
the url works. Is there a way i can make the helper not add that /items/ bit?

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #7037 by kenmcd
Replied by kenmcd on topic items/item bad url
.
The /component/flexicontent/items/item/ URL structure is a default when there is nothing else to follow (or there is a conflict).

Are those items in a menu structure which Joomla can use to build the URLs?

Even a hidden menu can provide the needed structure.

.

Please Log in or Create an account to join the conversation.

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
14 years 6 months ago #7040 by Anonymous
Replied by Anonymous on topic items/item bad url
I realize this is the default, however the default causes an error. if i remove the /items/ bit manual the link fine.

There are round about 100 categories and there will always be more... so much manual labor kinda defeats the purpose of a cms no?

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #7203 by raramuridesign
Replied by raramuridesign on topic items/item bad url
Hi UniquelyRandom
did you find a solution to this problem.

do you think it will be possible to use htaccess to solve this issue ?

We have this issue when a user performs a search, these urls are generated.

Its frustrating as all the normal links work.

Any ideas ?

Matthew

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.401 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline