forbidden error when editing emails

  • Posts: 103
  • Thank you received: 7
10 years 8 months ago #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:

hikashop.com/forum/2-general-talk-about-...il-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 or Create an account to join the conversation.

  • Posts: 26235
  • Thank you received: 4036
  • MODERATOR
10 years 8 months ago #170322

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 > 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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 103
  • Thank you received: 7
10 years 8 months ago #170353

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: 10 years 8 months ago by jsyaruss. Reason: new information / correction

Please Log in or Create an account to join the conversation.

  • Posts: 83831
  • Thank you received: 13572
  • MODERATOR
10 years 8 months ago #170410

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 ).

<IfModule mod_security.c>
 SecFilterEngine Off
 SecFilterScanPOST Off
 </IfModule>
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 or Create an account to join the conversation.

  • Posts: 103
  • Thank you received: 7
10 years 8 months ago #170551

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 or Create an account to join the conversation.

  • Posts: 103
  • Thank you received: 7
10 years 8 months ago #170569

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

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.200 seconds
Powered by Kunena Forum