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

#   Bug with order notification email

##

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

Less More

- Posts: 26
- Thank you received: 1
-
-

13 years 10 months ago [\#83030](#83030) by [jackinthex](/forum/user/1902-jackinthex "View jackinthex's Profile")  *[Bug with order notification email](/forum/3-bug-report/76952-bug-with-order-notification-email#83030 "I can not save changer nor cancel changes. As soon as i press Cancel or save i get error 403  Forbidden  You don't have permission to access /administrator/index.php on this server.  Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.")* was created by *[jackinthex](/forum/user/1902-jackinthex "View jackinthex's Profile")*

I can not save changer nor cancel changes.
As soon as i press Cancel or save i get error 403

Forbidden

You don't have permission to access /administrator/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#83044](#83044) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Bug with order notification email](/forum/3-bug-report/76952-bug-with-order-notification-email#83044 "I can not save changer nor cancel changes. As soon as i press Cancel or save i get error 403  Forbidden  You don't have permission to access /administrator/index.php on this server.  Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.")*

Hi,

Could you precise where and when you have this error message ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 26
- Thank you received: 1
-
-

13 years 10 months ago [\#84266](#84266) by [jackinthex](/forum/user/1902-jackinthex "View jackinthex's Profile")  Replied by *[jackinthex](/forum/user/1902-jackinthex "View jackinthex's Profile")* on topic *[Bug with order notification email](/forum/3-bug-report/76952-bug-with-order-notification-email#84266 "I can not save changer nor cancel changes. As soon as i press Cancel or save i get error 403  Forbidden  You don't have permission to access /administrator/index.php on this server.  Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.")*

I choose
Hikashop- System - Emails - Order creation notification
I get into this veiw
[ cl.ly/image/3F0t2f2b3r0F](http://cl.ly/image/3F0t2f2b3r0F)

Then if i press save or cancel i get error

[ cl.ly/image/3V163J0q1L2A](http://cl.ly/image/3V163J0q1L2A)

Hope this helps.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#84355](#84355) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Bug with order notification email](/forum/3-bug-report/76952-bug-with-order-notification-email#84355 "I can not save changer nor cancel changes. As soon as i press Cancel or save i get error 403  Forbidden  You don't have permission to access /administrator/index.php on this server.  Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.")*

Hi,

Strange error.
Would it be possible to have an access to your backend ?
With it, we would be able to make some tests and fix the problem.
You can send such information by private message.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

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

Less More

- Posts: 26
- Thank you received: 1
-
-

13 years 9 months ago -  13 years 9 months ago [\#84489](#84489) by [jackinthex](/forum/user/1902-jackinthex "View jackinthex's Profile")  Replied by *[jackinthex](/forum/user/1902-jackinthex "View jackinthex's Profile")* on topic *[Bug with order notification email](/forum/3-bug-report/76952-bug-with-order-notification-email#84489 "I can not save changer nor cancel changes. As soon as i press Cancel or save i get error 403  Forbidden  You don't have permission to access /administrator/index.php on this server.  Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.")*

Message sent

Last edit: 13 years 9 months ago by [jackinthex](/forum/user/1902-jackinthex "View jackinthex's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 9 months ago [\#84498](#84498) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Bug with order notification email](/forum/3-bug-report/76952-bug-with-order-notification-email#84498 "I can not save changer nor cancel changes. As soon as i press Cancel or save i get error 403  Forbidden  You don't have permission to access /administrator/index.php on this server.  Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.")*

Hi,

When I submit an empty content or a truncated content, there is no error.
I think that it would have some security check in your webserver and something in the email content is not allowed.
I can let some PHP content and if I removed this: Code:

&lt;?php $params = null; $js = ''; $fieldsClass = hikashop_get('class.field'); $app=JFactory::getApplication(); $template = trim(hikashop_getLayout($app-&gt;isAdmin() ? 'order' : 'address','address_template',$params,$js)); if(!empty($data-&gt;cart-&gt;billing_address)){ $billing = $template; foreach($data-&gt;cart-&gt;fields as $field){ $fieldname = $field-&gt;field_namekey; $billing=str_replace('{'.$fieldname.'}',$fieldsClass-&gt;show($field,$data-&gt;cart-&gt;billing_address-&gt;$fieldname),$billing); } echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_BILLING_ADDRESS').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;'; echo str_replace(array("\r\n","\r","\n"),'&lt;br/&gt;',preg_replace('#{(?:(?!}).)*}#i','',$billing)).'&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;'; } if(!empty($data-&gt;cart-&gt;order_shipping_id) &amp;&amp; (!empty($data-&gt;cart-&gt;shipping_address) &#124;&#124; !empty($data-&gt;cart-&gt;override_shipping_address))){ echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_SHIPPING_ADDRESS').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;'; if(!empty($data-&gt;cart-&gt;override_shipping_address)) { echo $data-&gt;cart-&gt;override_shipping_address.'&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;'; } else { $shipping = $template; foreach($data-&gt;cart-&gt;fields as $field){ $fieldname = $field-&gt;field_namekey; $shipping=str_replace('{'.$fieldname.'}',$fieldsClass-&gt;show($field,$data-&gt;cart-&gt;shipping_address-&gt;$fieldname),$shipping); } echo str_replace(array("\r\n","\r","\n"),'&lt;br/&gt;',preg_replace('#{(?:(?!}).)*}#i','',$shipping)).'&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;'; } }?&gt;

It works.

Maybe the regex content...

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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