Answer the question
In order to leave comments, you need to log in
What can cause 330 error when submitting a form in Bitrix?
There is a form for sending messages (not Ajax), after sending the data is processed and the page is reloaded again with the command header("Location: /blabla") . On pages that do not use the CNC , everything works fine, but if the page address looks like: "/dildo/1337/", then it gives an error ERR_CONTENT_DECODING_FAILED.
Throughout the site, the encoding is windows-1251 , header("Location: /blabla") is executed at the very top of the template (and because of it everything crashes).
Gentlemen, tell me where the problem could be, the brain is already torn :/
Answer the question
In order to leave comments, you need to log in
OMFG >_<
Added exit() after the header, shot himself, now everything is fine.
Thanks to those who tried :3
What is the form? Where did it come from? Who handles it. Are you sure that it is being processed at all. If you have your own handler, then why shove it into all pages? Why not make a separate interface for it with a fixed URL and refresh it from there? And it's better to do it with ajax.
It's unclear.
Why is this header("Location /blabla") in Bitrix?
header("Location /blabla")
Can you just add a colon after Location?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question