A
A
ajky2015-08-05 01:01:06
PHP
ajky, 2015-08-05 01:01:06

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

3 answer(s)
A
ajky, 2015-08-05
@ajky

OMFG >_<
Added exit() after the header, shot himself, now everything is fine.
Thanks to those who tried :3

A
Alexander, 2015-08-05
Madzhugin @Suntechnic

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?

N
Nazar Mokrinsky, 2015-08-05
@nazarpc

header("Location /blabla")
Can you just add a colon after Location?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question