I modified register page and added address fields. So, when user register address will be save.
But having this error when try to save customer.
Delete operation is forbidden for current area
When i removed this code – <input name="create_address" value="1" type="hidden">
then customer save but address not save.
But if added this code then above error is showing and redirect to register page.
Any idea guys?
Thanks in advance!
Best Answer
This error can be realted to PHP compatibility :
For
Magento 2.3
:PHP 7.1
For
Magento 2.2
:PHP 7.1
orPHP 7.0
For
Magento 2.1
:PHP 7.1
,PHP 7.0
orPHP 5.6
For
Magento 2.0
:PHP 7.0
,PHP 5.6
orPHP 5.5
Check your PHP version, and upgrade or downgrade PHP if needed.
You will never make Magento 2 works fine without the good version of PHP