Email mods causing 403 Forbidden even if I cancel

  • Posts: 35
  • Thank you received: 1
10 years 11 months ago #134694

I am trying to customise the hikashop "Order Creation Notification" email - but when I go in to the email I can't click on Save or Cancel as it gives me a 403 Forbidden error. All other emails seem to work fine - it's just this particular one.

I started experimenting and worked out if I cleared the Text Version of that email I could then save or cancel it.

I continued to narrow it down by removing parts of the text version until I narrowed it down to the echo preg_replace commands in the bottom few IF statements:

echo preg_replace('#{(?:(?!}).)*}#i','',$billing)."\n\n";
And
echo preg_replace('#{(?:(?!}).)*}#i','',$shipping)."\n\n";

By removing these 2 echo pre_replace lines I can then save or cancel from the edit screen. BUT I can't just comment them out - they have to be removed all together.

Any ideas? I suspect it's possibly a PHP setting I need to adjust in the php.ini file - but it's a bit beyond me.

Cheers!!

-- HikaShop version -- : 2.2
-- Joomla version -- : 2.5
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : IE, FF and Chrome do the same thing
-- Error-message(debug-mod must be tuned on) -- : 403 Forbidden Error

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

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #134779

Hi,

Do you had edited that email before ? If yes, thanks to remove the customizations.

Else, as I am unable to reproduce that problem, I think that it has been solved, thanks to try to download again and install the latest version of HikaShop (still 2.2.2 but with minor fixes).

If you don't use the text version, but only the html one, you can remove the content of this text part and save.
This will not cause problems.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum