[Skip to main content](#vessel-content)

#   Check for missing $url\_itemid

##

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

3 years 7 months ago -  3 years 7 months ago [\#349791](#349791) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[Check for missing $url\_itemid](/forum/2-general-talk-about-hikashop/906015-check-for-missing-url-itemid#349791 "Hi, can you please check your all components for missing $url&#95;itemid, this is causing some problems with Joomla 4. The links would look like this if missing /index.php/component/hikashop/address.  For example  To be changed to  This fixes this issue")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

Hi, can you please check your all components for missing $url_itemid, this is causing some problems with Joomla 4. The links would look like this if missing /index.php/component/hikashop/address.

For example
Code:

&lt;?php echo hikashop_completeLink('address'); ?&gt;

To be changed to
Code:

&lt;?php $url_itemid=(!empty($this-&gt;Itemid)?'&amp;Itemid='.$this-&gt;Itemid:''); echo hikashop_completeLink('address'.$url_itemid); ?&gt;

This fixes this issue

Last edit: 3 years 7 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwNjAxNS1jaGVjay1mb3ItbWlzc2luZy11cmwtaXRlbWlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14280
-
-

3 years 7 months ago [\#349795](#349795) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Check for missing $url\_itemid](/forum/2-general-talk-about-hikashop/906015-check-for-missing-url-itemid#349795 "Hi, can you please check your all components for missing $url&#95;itemid, this is causing some problems with Joomla 4. The links would look like this if missing /index.php/component/hikashop/address.  For example  To be changed to  This fixes this issue")*

Hi,

We've been adding Itemid parameters in the URLs in many places in the past 2 years. Also, not having the Itemid in a URL doesn't automatically generate an error. It's only in some cases that it does, and you don't want to add it everywhere either (not in the backend for example).
So it's harder and harder to know where we would be missing them as there are less and less of them.
Let us know when you found one and we'll be happy to fix it.

We'll add that change on our end. Thanks.

The following user(s) said Thank You: [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwNjAxNS1jaGVjay1mb3ItbWlzc2luZy11cmwtaXRlbWlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

3 years 7 months ago -  3 years 7 months ago [\#349803](#349803) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Check for missing $url\_itemid](/forum/2-general-talk-about-hikashop/906015-check-for-missing-url-itemid#349803 "Hi, can you please check your all components for missing $url&#95;itemid, this is causing some problems with Joomla 4. The links would look like this if missing /index.php/component/hikashop/address.  For example  To be changed to  This fixes this issue")*

Hi, of course only for the front end. This causes some problems I have noticed. In the event that no Itemid has entered, it does not get the current menu ID and Breadcrumb will not be displayed correctly.

Last edit: 3 years 7 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwNjAxNS1jaGVjay1mb3ItbWlzc2luZy11cmwtaXRlbWlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

3 years 7 months ago [\#350299](#350299) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Check for missing $url\_itemid](/forum/2-general-talk-about-hikashop/906015-check-for-missing-url-itemid#350299 "Hi, can you please check your all components for missing $url&#95;itemid, this is causing some problems with Joomla 4. The links would look like this if missing /index.php/component/hikashop/address.  For example  To be changed to  This fixes this issue")*

4.7.2 is good job. I had also written the same patch. HikaAuction and HikaSerial should also be checked out. For example User control panel&gt;Serials, Subscriptions, Subscription Downloads and Bidding history.
[ ![ScreenShot03-21-23at09.58PM.PNG](/forum/attachment/56713) ](/forum/attachment/56713 "...3at09.58PM.PNG")

- [ ![ScreenShot03-21-23at09.58PM.PNG](/forum/attachment/56713) ](/forum/attachment/56713 "...3at09.58PM.PNG") [ ](/forum/attachment/56713?download=1 "...3at09.58PM.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwNjAxNS1jaGVjay1mb3ItbWlzc2luZy11cmwtaXRlbWlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14280
-
-

3 years 7 months ago [\#350332](#350332) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Check for missing $url\_itemid](/forum/2-general-talk-about-hikashop/906015-check-for-missing-url-itemid#350332 "Hi, can you please check your all components for missing $url&#95;itemid, this is causing some problems with Joomla 4. The links would look like this if missing /index.php/component/hikashop/address.  For example  To be changed to  This fixes this issue")*

Hi,

Thank you. We'll look into these too.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwNjAxNS1jaGVjay1mb3ItbWlzc2luZy11cmwtaXRlbWlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.075 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
