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

#   missing variable safeguard in /components/com\_hikashop/router.php

##

- **[icomex](/forum/user/4967-icomex "View icomex's Profile")**
- [![icomex's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4967.png)](/forum/user/4967-icomex "View icomex's Profile") Topic Author
- [ Offline](/forum/user/4967-icomex)

Less More

- Posts: 149
- Thank you received: 6
-
-

11 years 4 months ago [\#206270](#206270) by [icomex](/forum/user/4967-icomex "View icomex's Profile")  *[missing variable safeguard in /components/com\_hikashop/router.php](/forum/3-bug-report/877788-missing-variable-safeguard-in-components-com-hikashop-router-php#206270 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.28 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined index: task in /home/icxdev04/public&#95;html/components/com&#95;hikashop/router.php on line 53  Since upgrading to Hikashop 2.5.0 I've been seeing ( during checkout )    at the top of the page. Within that router.php file, shouldn't  be  This seems to make sense and makes the issue go away.")* was created by *[icomex](/forum/user/4967-icomex "View icomex's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.28
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined index: task in /home/icxdev04/public_html/components/com_hikashop/router.php on line 53

Since upgrading to Hikashop 2.5.0 I've been seeing ( during checkout )

**Notice: Undefined index: task in /home/icxdev04/public\_html/components/com\_hikashop/router.php on line 53**

at the top of the page. Within that router.php file, shouldn't
Code:

if( ( isset($query['ctrl']) &amp;&amp; $query['ctrl']=='checkout' &#124;&#124; isset($query['view']) &amp;&amp; $query['view']=='checkout' ) &amp;&amp; !empty($query['Itemid']) &amp;&amp; ( !isset($query['task']) &amp;&amp; !isset($query['layout']) &#124;&#124; $query['task']=='step' &#124;&#124; (isset($query['layout']) &amp;&amp; $query['layout']=='step' )) ) {

be
Code:

if( ( isset($query['ctrl']) &amp;&amp; $query['ctrl']=='checkout' &#124;&#124; isset($query['view']) &amp;&amp; $query['view']=='checkout' ) &amp;&amp; !empty($query['Itemid']) &amp;&amp; ( !isset($query['task']) &amp;&amp; !isset($query['layout']) &#124;&#124; (isset($query['task']) &amp;&amp; $query['task']=='step' ) &#124;&#124; (isset($query['layout']) &amp;&amp; $query['layout']=='step' )) ) {

This seems to make sense and makes the issue go away.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Nzc3ODgtbWlzc2luZy12YXJpYWJsZS1zYWZlZ3VhcmQtaW4tY29tcG9uZW50cy1jb20taGlrYXNob3Atcm91dGVyLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 4 months ago [\#206311](#206311) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[missing variable safeguard in /components/com\_hikashop/router.php](/forum/3-bug-report/877788-missing-variable-safeguard-in-components-com-hikashop-router-php#206311 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.28 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined index: task in /home/icxdev04/public&#95;html/components/com&#95;hikashop/router.php on line 53  Since upgrading to Hikashop 2.5.0 I've been seeing ( during checkout )    at the top of the page. Within that router.php file, shouldn't  be  This seems to make sense and makes the issue go away.")*

Hi,

Yes indeed that makes sense, thanks for your report ![:)](/media/kunena/emoticons/3.png ":)")

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Nzc3ODgtbWlzc2luZy12YXJpYWJsZS1zYWZlZ3VhcmQtaW4tY29tcG9uZW50cy1jb20taGlrYXNob3Atcm91dGVyLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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.051 seconds

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