S
S
Sergey2014-11-06 05:10:40
PHP
Sergey, 2014-11-06 05:10:40

Why does Bitrix return “invalid e-mail” during registration?

When registering through the interface, there is always an invalid e-mail error. Having created your own script that uses this api , the same error is still generated.
I googled that I was not the only one with this problem, but a solution like "change the server" is not very satisfactory, you need to understand what exactly needs to be done on this server so that the problem goes away. I'm not sure about the $_ENV variable, because in this file is exactly $_POST.
Development is underway on a third level domain from the production site, which is seriously changing, could this be somehow related to this? The database is separate and the files too, but sometimes there are problems with the cache, it seems to intersect with the main site.
Those. The problem is somewhere deep in Bitrix. times even at the api level of the problem. Whether this is somehow related to the cache is not sure, but it is also alarming.
What do you advise?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2014-11-06
@butteff

A well-known Bitrix problem, if you use the same prefix for the apts cache, it is logical to change the prefix or spread the sites,
habrahabr.ru/post/234071

M
Maksim Zverev, 2014-11-06
@m1skam

Install VMWarePlayer or VitrualBox or Hyper-V, download the image from Bitrix: www.1c-bitrix.ru/download/vmbitrix.php#tab-VMserve... Deploy
your site in it and check the work. If everything is OK with registration, then you need to dig towards the server.
If the registration also stomps, then the developer has screwed up something in the core and here bitrix disclaims all responsibility.
And about the cache is not clear at all, just a set of thoughts.

A
Alexander, 2014-11-06
Madzhugin @Suntechnic

You have some kind of porridge ...
Let's start from the end. Cache has nothing to do with it. Why explain apparently long, just believe me.
The third-level domain is the same as the neighboring site.
Forget about the $_ENV variable, why is it here at all? And if you have problems with variables, what does Bitrix have to do with it? Set up your server.
Now directly on the problem.
What exactly does this line return to you:
Here it is, copy it right from here. If it gives the same error, we are looking for a problem in the API. If not, then Bitrix has nothing to do with it at all and you need to figure out what flies in your method call instead of email.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question