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

#   forbidden error when editing emails

##

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

Less More

- Posts: 103
- Thank you received: 7
-
-

12 years 1 month ago [\#170297](#170297) by [jsyaruss](/forum/user/11900-jsyaruss "View jsyaruss's Profile")  *[forbidden error when editing emails](/forum/27-checkout/870874-forbidden-error-when-editing-emails#170297 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3  I have just upgraded to HikaShop Business so I can edit the emails that go to the admin and customer following an order. My goal is to be able to eliminate the blank lines that occur for 'address2' and 'company' when they are blank. I have corresponded with Nicolas on this problem and understand the solution.  The problem is that when I go to edit those emails, I get a Forbidden error: You don't have permission to access /administrator/index.php on this server.  I see elsewhere on the forum that this happened to somebody else, and the recommendation was that they edit the email notifications directly in the folder instead of via the interface. here is the link to that thread:  That is not a good solution for me because the whole reason I bought the upgraded version was to get that interface. Do you have any other solutions? This is the only time I receive this error - and oddly I don't get it for all of the emails (e.g., the &quot;out of stock notification&quot; email can be edited and saved with no forbidden error).  I will look forward to your input. Thank you, Scott")* was created by *[jsyaruss](/forum/user/11900-jsyaruss "View jsyaruss's Profile")*

-- url of the page with the problem -- : [ www.StutteringTherapyResources.com](http://www.StutteringTherapyResources.com)
-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3

I have just upgraded to HikaShop Business so I can edit the emails that go to the admin and customer following an order. My goal is to be able to eliminate the blank lines that occur for 'address2' and 'company' when they are blank. I have corresponded with Nicolas on this problem and understand the solution.

The problem is that when I go to edit those emails, I get a Forbidden error:
You don't have permission to access /administrator/index.php on this server.

I see elsewhere on the forum that this happened to somebody else, and the recommendation was that they edit the email notifications directly in the folder instead of via the interface. here is the link to that thread:

> [ hikashop.com/forum/2-general-talk-about-...il-notification.html](https://hikashop.com/forum/2-general-talk-about-hikashop/865151-403-error-forbidden-email-notification.html)

That is not a good solution for me because the whole reason I bought the upgraded version was to get that interface. Do you have any other solutions? This is the only time I receive this error - and oddly I don't get it for all of the emails (e.g., the "out of stock notification" email can be edited and saved with no forbidden error).

I will look forward to your input. Thank you,
Scott

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3MDg3NC1mb3JiaWRkZW4tZXJyb3Itd2hlbi1lZGl0aW5nLWVtYWlscz90bXBsPW1hcmtkb3du) 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: 4078
-
- [](http://obsi.dev)
-

12 years 1 month ago [\#170322](#170322) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[forbidden error when editing emails](/forum/27-checkout/870874-forbidden-error-when-editing-emails#170322 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3  I have just upgraded to HikaShop Business so I can edit the emails that go to the admin and customer following an order. My goal is to be able to eliminate the blank lines that occur for 'address2' and 'company' when they are blank. I have corresponded with Nicolas on this problem and understand the solution.  The problem is that when I go to edit those emails, I get a Forbidden error: You don't have permission to access /administrator/index.php on this server.  I see elsewhere on the forum that this happened to somebody else, and the recommendation was that they edit the email notifications directly in the folder instead of via the interface. here is the link to that thread:  That is not a good solution for me because the whole reason I bought the upgraded version was to get that interface. Do you have any other solutions? This is the only time I receive this error - and oddly I don't get it for all of the emails (e.g., the &quot;out of stock notification&quot; email can be edited and saved with no forbidden error).  I will look forward to your input. Thank you, Scott")*

Hi,

I understand clearly that editing the emails directly by FTP is not a good solution.
That's why I asked you to open a new thread, so other users with the same problem will be able to find this thread.

Can you tell me more about the moment you got the error ?
Is this when you open an email or when you are trying to save it ?

It might be possible that you're using a security plugin (or PHP security add-on) which refuses the POST content (due to the content or maybe the size of the content).
If so, you can see to edit an HikaShop view (under Display &gt; Views), trying to find a big view and save it.

As Nicolas said, the problem is link to the server restriction so HikaShop can't do anything special to bypass these restrictions, the best is to find what restrictions are causing this trouble and change them.

Regards,

---

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

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

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

Less More

- Posts: 103
- Thank you received: 7
-
-

12 years 1 month ago -  12 years 1 month ago [\#170353](#170353) by [jsyaruss](/forum/user/11900-jsyaruss "View jsyaruss's Profile")  Replied by *[jsyaruss](/forum/user/11900-jsyaruss "View jsyaruss's Profile")* on topic *[forbidden error when editing emails](/forum/27-checkout/870874-forbidden-error-when-editing-emails#170353 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3  I have just upgraded to HikaShop Business so I can edit the emails that go to the admin and customer following an order. My goal is to be able to eliminate the blank lines that occur for 'address2' and 'company' when they are blank. I have corresponded with Nicolas on this problem and understand the solution.  The problem is that when I go to edit those emails, I get a Forbidden error: You don't have permission to access /administrator/index.php on this server.  I see elsewhere on the forum that this happened to somebody else, and the recommendation was that they edit the email notifications directly in the folder instead of via the interface. here is the link to that thread:  That is not a good solution for me because the whole reason I bought the upgraded version was to get that interface. Do you have any other solutions? This is the only time I receive this error - and oddly I don't get it for all of the emails (e.g., the &quot;out of stock notification&quot; email can be edited and saved with no forbidden error).  I will look forward to your input. Thank you, Scott")*

A bit more information: The error happens when I go to either save or cancel the edits I make to the email. So, I can open it just fine; I just can’t do anything to it.

Interestingly, it doesn’t do this with all emails… Here is a list of the emails in the system and whether I do get the forbidden error (YES) or don’t (NO).

Cron Report NO
Order admin notification YES
Order creation notification YES
Order status notification YES
Order notification YES
User account NO
User account administrator notification NO
Out of stock notification NO
Order cancel NO
Wait list notification NO
New comment NO
A contact request has been made NO
Subscription expired NO

So, this only happens for 4 files that I want to edit…

Any input would be greatly appreciated. It might be a length issue - if I shorten the file for the order admin notification email, then i don't get the error (just deleting the last 50 lines or so), but i'm not absolutely certain. When I try too many times, my website crashes altogether and I have to wait for something to reset.

Thanks,
Scott

Last edit: 12 years 1 month ago by [jsyaruss](/forum/user/11900-jsyaruss "View jsyaruss's Profile"). Reason: new information / correction

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3MDg3NC1mb3JiaWRkZW4tZXJyb3Itd2hlbi1lZGl0aW5nLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 1 month ago [\#170410](#170410) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[forbidden error when editing emails](/forum/27-checkout/870874-forbidden-error-when-editing-emails#170410 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3  I have just upgraded to HikaShop Business so I can edit the emails that go to the admin and customer following an order. My goal is to be able to eliminate the blank lines that occur for 'address2' and 'company' when they are blank. I have corresponded with Nicolas on this problem and understand the solution.  The problem is that when I go to edit those emails, I get a Forbidden error: You don't have permission to access /administrator/index.php on this server.  I see elsewhere on the forum that this happened to somebody else, and the recommendation was that they edit the email notifications directly in the folder instead of via the interface. here is the link to that thread:  That is not a good solution for me because the whole reason I bought the upgraded version was to get that interface. Do you have any other solutions? This is the only time I receive this error - and oddly I don't get it for all of the emails (e.g., the &quot;out of stock notification&quot; email can be edited and saved with no forbidden error).  I will look forward to your input. Thank you, Scott")*

Hi,

As Jerome said, the problem is with the configuration of your web server.

Your website host is probably implementing filtering which creates a mod_security error.
In your .htaccess file which is located in the root of your website you can try to add the below commands ( copy and paste ). Code:

&lt;IfModule mod_security.c&gt; SecFilterEngine Off SecFilterScanPOST Off &lt;/IfModule&gt;

This will stop the host filtering applying to your site. However, the best is to ask your hosting company. as they know better than us how they configured your server and how to prevent that issue from happening.

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

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

Less More

- Posts: 103
- Thank you received: 7
-
-

12 years 1 month ago [\#170551](#170551) by [jsyaruss](/forum/user/11900-jsyaruss "View jsyaruss's Profile")  Replied by *[jsyaruss](/forum/user/11900-jsyaruss "View jsyaruss's Profile")* on topic *[forbidden error when editing emails](/forum/27-checkout/870874-forbidden-error-when-editing-emails#170551 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3  I have just upgraded to HikaShop Business so I can edit the emails that go to the admin and customer following an order. My goal is to be able to eliminate the blank lines that occur for 'address2' and 'company' when they are blank. I have corresponded with Nicolas on this problem and understand the solution.  The problem is that when I go to edit those emails, I get a Forbidden error: You don't have permission to access /administrator/index.php on this server.  I see elsewhere on the forum that this happened to somebody else, and the recommendation was that they edit the email notifications directly in the folder instead of via the interface. here is the link to that thread:  That is not a good solution for me because the whole reason I bought the upgraded version was to get that interface. Do you have any other solutions? This is the only time I receive this error - and oddly I don't get it for all of the emails (e.g., the &quot;out of stock notification&quot; email can be edited and saved with no forbidden error).  I will look forward to your input. Thank you, Scott")*

Thanks. I'm afraid that adding the code to .htaccess didn't solve the problem. I've sent a note to the host's tech support hoping that they'll have something for me.

All I really want to do is figure out how to edit those emails so as to remove the blank lines that occur in the address block. I've added to my other thread on that topic...if I can get that sorted, then I really don't need to edit the emails any more after that. Thanks. S

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

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

Less More

- Posts: 103
- Thank you received: 7
-
-

12 years 1 month ago [\#170569](#170569) by [jsyaruss](/forum/user/11900-jsyaruss "View jsyaruss's Profile")  Replied by *[jsyaruss](/forum/user/11900-jsyaruss "View jsyaruss's Profile")* on topic *[forbidden error when editing emails](/forum/27-checkout/870874-forbidden-error-when-editing-emails#170569 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3  I have just upgraded to HikaShop Business so I can edit the emails that go to the admin and customer following an order. My goal is to be able to eliminate the blank lines that occur for 'address2' and 'company' when they are blank. I have corresponded with Nicolas on this problem and understand the solution.  The problem is that when I go to edit those emails, I get a Forbidden error: You don't have permission to access /administrator/index.php on this server.  I see elsewhere on the forum that this happened to somebody else, and the recommendation was that they edit the email notifications directly in the folder instead of via the interface. here is the link to that thread:  That is not a good solution for me because the whole reason I bought the upgraded version was to get that interface. Do you have any other solutions? This is the only time I receive this error - and oddly I don't get it for all of the emails (e.g., the &quot;out of stock notification&quot; email can be edited and saved with no forbidden error).  I will look forward to your input. Thank you, Scott")*

Success! Tech support for my server host told me that they whitelisted the mod_security rule, and that solved the problem. So, it wasn't enough for some reason to put the code in .htaccess, but now I am able to edit the emails without getting that error.

So, I return to the original problem of trying to edit the emails so I can skip the blank lines for address2, company, etc... That thread is here: [ www.hikashop.com/forum/reports-statistic...e-address-block.html](http://www.hikashop.com/forum/reports-statistics/870249-skipping-blank-lines-in-the-address-block.html)

Hoping that will get resolved just as successfully! Thanks again for your help,
Scott

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

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

[](#top)
