N
N
Nikolay2019-09-11 19:09:45
PHP
Nikolay, 2019-09-11 19:09:45

Bitrix24 outgoing hook — why empty $_REQUEST?

Good evening everyone!
This is my first experience with B24 and for the 2nd hour I can't figure out what the problem is.
In CRM, I created an outgoing hook for the ONCRMDEALUPDATE event on the php side of the handler, I catch $_REQUEST and write it to the log, everything is according to the tutorial, but every time I update the deal I get an empty array

Array
(
)

The version is cloudy ...
I've already googled it, I don't understand what the cant is ...
Thank you in advance!
UPDATE
I tried to place the handler on another host, I received $_REQUEST...
Which config should I look into? %)
post_max_size, upload_max_filesize by 200 megabytes
variables_order = "EGPCS" (before it was GPCS )
request_order = "GP"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nicholas, 2019-09-12
@hoindex

Resolved...
The handler address specified a domain without www, while the main domain had www.
When accessing a domain without www, a 301 redirect to www occurred and the content of the request was beaten ...
Thanks to Chrome for hiding www ...

J
Julia Bedrosova, 2019-09-12
@Bedrosova

log everything - not just the request: https://www.php.net/manual/en/reserved.variables.php
data comes from different events in different ways

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question