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

#   state error.

##

- **[chocovo](/forum/user/4491-chocovo "View chocovo's Profile")**
- [![chocovo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4491-chocovo "View chocovo's Profile") Topic Author
- [ Offline](/forum/user/4491-chocovo)

Less More

- Posts: 38
- Thank you received: 0
-
-

14 years 11 months ago [\#30429](#30429) by [chocovo](/forum/user/4491-chocovo "View chocovo's Profile")  *[state error.](/forum/3-bug-report/30429-state-error#30429 "Hello,  In the checkout page, an error appear: Warning: Cannot modify header information - headers already sent by (output started at /.../components/com&#95;hikashop/router.php:21) in /.../components/com&#95;hikashop/views/checkout/view.html.php on line 270  It has relation with state but I don't what happens because the state seems to be ok.  Thanks for your help.")* was created by *[chocovo](/forum/user/4491-chocovo "View chocovo's Profile")*

Hello,

In the checkout page, an error appear:
Warning: Cannot modify header information - headers already sent by (output started at /.../components/com_hikashop/router.php:21) in /.../components/com_hikashop/views/checkout/view.html.php on line 270

It has relation with state but I don't what happens because the state seems to be ok.

Thanks for your help. image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/error-20111118.jpg

- [ ![error-20111118.jpg](/forum/attachment/2093) ](/forum/attachment/2093 "...r-20111118.jpg") [ ](/forum/attachment/2093?download=1 "...r-20111118.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMDQyOS1zdGF0ZS1lcnJvcj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

14 years 11 months ago [\#30434](#30434) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: state error.](/forum/3-bug-report/30429-state-error#30434 "Hello,  In the checkout page, an error appear: Warning: Cannot modify header information - headers already sent by (output started at /.../components/com&#95;hikashop/router.php:21) in /.../components/com&#95;hikashop/views/checkout/view.html.php on line 270  It has relation with state but I don't what happens because the state seems to be ok.  Thanks for your help.")*

Hi,

in the file /components/com_hikashop/views/checkout/view.html.php you can change the line:
header('Content-Type:text/html; charset=utf-8');

by:

if(!headers_sent()) header('Content-Type:text/html; charset=utf-8');

and that will remove the warning message.

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

- **[chocovo](/forum/user/4491-chocovo "View chocovo's Profile")**
- [![chocovo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4491-chocovo "View chocovo's Profile") Topic Author
- [ Offline](/forum/user/4491-chocovo)

Less More

- Posts: 38
- Thank you received: 0
-
-

14 years 11 months ago [\#30463](#30463) by [chocovo](/forum/user/4491-chocovo "View chocovo's Profile")  Replied by *[chocovo](/forum/user/4491-chocovo "View chocovo's Profile")* on topic *[Re: state error.](/forum/3-bug-report/30429-state-error#30463 "Hello,  In the checkout page, an error appear: Warning: Cannot modify header information - headers already sent by (output started at /.../components/com&#95;hikashop/router.php:21) in /.../components/com&#95;hikashop/views/checkout/view.html.php on line 270  It has relation with state but I don't what happens because the state seems to be ok.  Thanks for your help.")*

Hi nicolas,

Thanks you for all your support.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMDQyOS1zdGF0ZS1lcnJvcj90bXBsPW1hcmtkb3du) 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.182 seconds

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