Magento2: How to fix error not showing?magento ERR_EMPTY_RESPONSE unable to add product or do any changes in backendI created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?Magento 2.1: Invoke urlBuilder->getUrl() in a controller in a custom modulemain.CRITICAL: Plugin class doesn't existMagento 2: How to override newsletter Subscriber modelMagento 2 Add new field to Magento_User admin formMagento offline custom Payment method with drop down listHow to solve Front controller reached 100 router match iterations in magento2Magento 2.3 Can't view module's front end page output?Magento 2 How to remove price filter from category if module is enable?Firstname error while creating new account in Magento 2
Mount a folder with a space on Linux
How many satellites can stay in a Lagrange point?
Is my Rep in Stack-Exchange Form?
What determines the "strength of impact" of a falling object on the ground, momentum or energy?
How can I convince my reader that I will not use a certain trope?
Why does Darth Sidious need bodyguards?
In the Marvel universe, can a human have a baby with any non-human?
Does the Paladin's Aura of Protection affect only either her or ONE ally in range?
Does the posterior necessarily follow the same conditional dependence structure as the prior?
Why does the numerical solution of an ODE move away from an unstable equilibrium?
Symbolic equivalent of chmod 400
Short story with brother-sister conjoined twins as protagonists?
Calculating the partial sum of a expl3 sequence
What is the line crossing the Pacific Ocean that is shown on maps?
Swapping rooks in a 4x4 board
C-152 carb heat on before landing in hot weather?
Do French speakers not use the subjunctive informally?
Was touching your nose a greeting in second millenium Mesopotamia?
MH370 blackbox - is it still possible to retrieve data from it?
How to append a matrix element by element?
How can Charles Proxy change settings without admin rights after first time?
Is there any set of 2-6 notes that doesn't have a chord name?
How risky is real estate?
Syntax Error with 'if'
Magento2: How to fix error not showing?
magento ERR_EMPTY_RESPONSE unable to add product or do any changes in backendI created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?Magento 2.1: Invoke urlBuilder->getUrl() in a controller in a custom modulemain.CRITICAL: Plugin class doesn't existMagento 2: How to override newsletter Subscriber modelMagento 2 Add new field to Magento_User admin formMagento offline custom Payment method with drop down listHow to solve Front controller reached 100 router match iterations in magento2Magento 2.3 Can't view module's front end page output?Magento 2 How to remove price filter from category if module is enable?Firstname error while creating new account in Magento 2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
When I submit data to saveprofile.php (controller).
saveprofile.php
use MagentoAuthorizationModelUserContextInterface as UserContextInterface;
use MagentoAuthorizationModelAclRoleUser as RoleGroup;
use MagentoFrameworkMessageManagerInterface;
use MedmaMarketPlaceModelProfileFactory;
use MagentoFrameworkAppFilesystemDirectoryList;
use MagentoBackendAppAction;
class Saveprofile extends MagentoFrameworkAppActionAction
/**
* @var MagentoConfigModelConfigFactory
*/
protected $scopeConfig;
/**
* @var MedmaMarketPlaceModelProfileFactory
*/
protected $profile;
/**
* @var MagentoFrameworkMessageManagerInterface
*/
protected $messageManager;
/**
* @var MagentoAuthorizationModelRoleFactory
*/
protected $rolesFactory;
/**
* @var MedmaMarketPlaceHelperData
*/
protected $marketHelper;
/**
* @var MagentoMediaStorageModelFileUploaderFactory
*/
protected $_fileUploaderFactory;
/**
* @var MagentoFrameworkRegistry
*/
protected $coreregistry;
/**
* @var MagentoFrameworkSessionSessionManager
*/
protected $session;
/**
*
* @param MagentoFrameworkAppActionContext $context,
* @param MagentoFrameworkRegistry $coreregistry,
* @param MagentoUserModelUserFactory $adminuser,
* @param MedmaMarketPlaceHelperData $marketHelper,
* @param MagentoAuthorizationModelRoleFactory $rolesFactory,
* @param MagentoMediaStorageModelFileUploaderFactory $fileUploaderFactory,
* @param MagentoFrameworkSessionSessionManager $session,
* @param MedmaMarketPlaceModelProfileFactory $profile,
* @param MagentoConfigModelConfigFactory $scopeConfig,
* @param MagentoFrameworkMessageManagerInterface $messageManager
*
*/
public function __construct(
MagentoFrameworkAppActionContext $context,
MagentoFrameworkRegistry $coreregistry,
MagentoUserModelUserFactory $adminuser,
MedmaMarketPlaceHelperData $marketHelper,
MagentoAuthorizationModelRoleFactory $rolesFactory,
MagentoMediaStorageModelFileUploaderFactory $fileUploaderFactory,
MagentoFrameworkSessionSessionManager $session,
ProfileFactory $profile,
MagentoConfigModelConfigFactory $scopeConfig
)
$this->profile = $profile;
$this->coreregistry = $coreregistry;
$this->session = $session;
$this->rolesFactory = $rolesFactory;
$this->messageManager = $context->getMessageManager();
$this->ModelUser = $adminuser;
$this->marketHelper = $marketHelper;
$this->_fileUploaderFactory = $fileUploaderFactory;
$this->scopeConfig = $scopeConfig;
parent::__construct($context);
public function execute()
$post = $this->getRequest()->getParams();
$this->session->setVendorData($post);
$model = $this->profile->create();
$total_file_upload = $this->getRequest()->getParam('total_file_upload', false);
$h="String";
return $h;
// if ($post)
// try
// $data = [];
// $data = $post;
// if ($data['password']!=$data['confirmation'])
// $this->messageManager->addError(__("Entered confirm password do not matches the password"));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $uploaded_files = [];
// $fileId = 'file';
// /**
// * Check files allowed
// **/
// $file_types = $this->marketHelper->getConfig('vendor_registration', 'files_allowed');
// $file_types = str_replace(' ', '', $file_types);
// $file_types_array = array_map('trim', explode(',', $file_types));
// /*
// * Check max allowed file size
// */
// $max_allowed_file_size = $this->marketHelper->getConfig('vendor_registration', 'max_allowed_file_size');
// $max_allowed_file_size_bytes = ($max_allowed_file_size * 1024 * 1024);
// /*
// * UPLOAD verification proof FILES
// */
// $uploaded_files = [];
// for ($i = 1; $i <= $total_file_upload; $i++)
// $file_control_name = 'varification_proof_' . $i;
// $uploader = $this->_fileUploaderFactory->create(['fileId' => $file_control_name]);
// $arr = $uploader->validateFile();
// $arr[$file_control_name]['name'] = str_replace(' ', '', $arr['name']);
// $arr[$file_control_name]['name'] = date("YmdHis")."-".$arr['name'];
// if (isset($arr[$file_control_name]['name']) && $arr[$file_control_name]['name'] != '')
// if ($arr['size'] > $max_allowed_file_size_bytes)
// $this->messageManager->addError(__('File size should not exceed ' . $max_allowed_file_size . ' Mb'));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// try
// $f_type=$arr['type'];
// if ($f_type!= "image/gif" && $f_type!= "image/png" && $f_type!= "image/jpeg" && $f_type!= "image/JPEG" && $f_type!= "image/PNG" && $f_type!= "image/GIF")
// $this->messageManager->addError(__('Disallowed File Type'));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $dir_path = $this->marketHelper->getImagesDir('varifications');
// $uploader = $this->_fileUploaderFactory->create(['fileId' => $file_control_name]);
// $uploader->setAllowedExtensions(['jpg', 'jpeg', 'gif', 'png']);
// $uploader->addValidateCallback('validate', $this, 'validateFile');
// $uploader->setAllowRenameFiles(false);
// $uploader->setFilesDispersion(false);
// $uploader->save($dir_path, $arr[$file_control_name]['name']);
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $uploaded_files[] = $arr[$file_control_name]['name'];
//
//
// $roleId = $this->marketHelper->getConfig('general', 'vendor_role');
// $varification_files = json_encode($uploaded_files);
// /**
// * Set Data in admin user table
// *
// **/
// $adminuser = $this->ModelUser->create();
// $adminuser = $adminuser->setUsername($data['username'])
// ->setFirstname($data['firstname'])
// ->setLastname($data['lastname'])
// ->setEmail(strtolower($data['email']))
// ->setIsActive(0);
// /**
// * Set Data in authorization table
// *
// **/
// $role=$this->rolesFactory->create();
// $role->setRoleName($data['username'])
// ->setRoleType(RoleGroup::ROLE_TYPE)
// ->setParentId($roleId)
// ->setTreeLevel(2)
// ->setUserType(UserContextInterface::USER_TYPE_ADMIN);
// try
// if ($data['password'])
// $adminuser->setPassword($data['password']);
// $result = $adminuser->validate();
// $adminuser->save();
// $id = $adminuser->getUserId();
// $role->setUserId($id);
// $role->save();
//
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// if (is_array($result))
// $this->adminSession->setUserData($data);
// foreach ($result as $message)
// $this->messageManager->addError($message);
//
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
// else
// /**
// * Set Data in Marketplace Profile Table
// *
// **/
// $data["user_id"] = $id;
// $data["shop_name"] = $post["shop_name"];
// $data["contact_number"] = $post["contact_number"];
// $data["country"] = $post["country"];
// $data["latitude"] = $post["latitude"];
// $data["longitude"] = $post["longitude"];
// // $data["age_name"] = $post["age_name"];
// $data["vendor_industry"] = $post["vendor_industry"];
// $data["vendor_scorecard"] = $post["vendor_scorecard"];
// /**
// * Verification Files Uploaded
// *
// **/
// if (count($uploaded_files)>0)
// $data["proof_type"] = $post["proof_type"];
// $data["varification_files"] = json_encode($uploaded_files);
//
// $data["create_date"] = date("Y-m-d H:i:s");
// $data["total_admin_commission"] = 0;
// $data["total_vendor_amount"] = 0;
// $data["total_vendor_paid"] = 0;
// $model = $this->profile->create();
// $model->setData($data);
// /*
// * Send Email
// * */
// $receiverInfo = [
// 'name' => $data['firstname'],
// 'email' => $data['email']
// ];
// try
// /* Sender Detail */
// if ($this->marketHelper->getConfig('vendor_registration_email', 'enable_registration_email')==1)
// $reciever = $this->marketHelper->getTemplateId('marketplace/vendor_registration_email/email_receiver');
// $receivername = $this->marketHelper->getTemplateId('trans_email/ident_'.$reciever.'/name');
// $receiveremail = $this->marketHelper->getTemplateId('trans_email/ident_'.$reciever.'/email');
// $sendername = $this->marketHelper->getTemplateId('trans_email/ident_general/name');
// $senderemail = $this->marketHelper->getTemplateId('trans_email/ident_general/email');
// $receiverInfo = [
// 'name' => $receivername,
// 'email' => $receiveremail,
// ];
// $senderInfo = [
// 'name' => $sendername,
// 'email' => $senderemail,
// ];
// $emailTemplateVariables = [];
// $emailTempVariables['myvar1'] = $data['firstname'].' '.$data['lastname'];
// $emailTempVariables['myvar2'] = $receivername;
// $this->marketHelper->sendRegistrationEmailToVendor(
// $emailTempVariables,
// $senderInfo,
// $receiverInfo
// );
//
// /**
// * send email to vendor
// */
// if ($this->marketHelper->getConfig('registration_confirmation_email', 'active_vendor_email')==1)
// $vendorSender = $this->marketHelper->getTemplateId('marketplace/registration_confirmation_email/email_sender');
// $vendorsendername = $this->marketHelper->getTemplateId('trans_email/ident_'.$vendorSender.'/name');
// $vendorsenderemail = $this->marketHelper->getTemplateId('trans_email/ident_'.$vendorSender.'/email');
// $vendorReceiverInfo = [
// 'name' => $data['firstname'],
// 'email' => $data['email']
// ];
// $vendorSenderInfo = [
// 'name' => $vendorsendername,
// 'email' => $vendorsenderemail,
// ];
// $vendorEmailTemplateVariables = [];
// $vendorEmailTemplateVariables['vendorname'] = $data['firstname'];
// $this->marketHelper->sendConfirmationEmail(
// $vendorEmailTemplateVariables,
// $vendorSenderInfo,
// $vendorReceiverInfo
// );
//
// catch (Exception $e)
// $this->messageManager->addError($e->getMessage());
//
// $model->save();
// $this->messageManager->addSuccess(__('Request has been sent successfully, we will contact you soon.'));
// $this->_redirect($this->_redirect->getRefererUrl());
//
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
//
// $this->_redirect($this->_redirect->getRefererUrl());
But all ways showing
This page isn’t working www.mg.project.co didn’t send any data.
ERR_EMPTY_RESPONSE
Error not showing on this page
How I can fix the issue
I already tried
1) index.php
error_reporting(E_ALL);
ini_set('display_errors', 1);
2) The project already in developer mode:
Post request not working why???
magento2 error controllers index
|
show 6 more comments
When I submit data to saveprofile.php (controller).
saveprofile.php
use MagentoAuthorizationModelUserContextInterface as UserContextInterface;
use MagentoAuthorizationModelAclRoleUser as RoleGroup;
use MagentoFrameworkMessageManagerInterface;
use MedmaMarketPlaceModelProfileFactory;
use MagentoFrameworkAppFilesystemDirectoryList;
use MagentoBackendAppAction;
class Saveprofile extends MagentoFrameworkAppActionAction
/**
* @var MagentoConfigModelConfigFactory
*/
protected $scopeConfig;
/**
* @var MedmaMarketPlaceModelProfileFactory
*/
protected $profile;
/**
* @var MagentoFrameworkMessageManagerInterface
*/
protected $messageManager;
/**
* @var MagentoAuthorizationModelRoleFactory
*/
protected $rolesFactory;
/**
* @var MedmaMarketPlaceHelperData
*/
protected $marketHelper;
/**
* @var MagentoMediaStorageModelFileUploaderFactory
*/
protected $_fileUploaderFactory;
/**
* @var MagentoFrameworkRegistry
*/
protected $coreregistry;
/**
* @var MagentoFrameworkSessionSessionManager
*/
protected $session;
/**
*
* @param MagentoFrameworkAppActionContext $context,
* @param MagentoFrameworkRegistry $coreregistry,
* @param MagentoUserModelUserFactory $adminuser,
* @param MedmaMarketPlaceHelperData $marketHelper,
* @param MagentoAuthorizationModelRoleFactory $rolesFactory,
* @param MagentoMediaStorageModelFileUploaderFactory $fileUploaderFactory,
* @param MagentoFrameworkSessionSessionManager $session,
* @param MedmaMarketPlaceModelProfileFactory $profile,
* @param MagentoConfigModelConfigFactory $scopeConfig,
* @param MagentoFrameworkMessageManagerInterface $messageManager
*
*/
public function __construct(
MagentoFrameworkAppActionContext $context,
MagentoFrameworkRegistry $coreregistry,
MagentoUserModelUserFactory $adminuser,
MedmaMarketPlaceHelperData $marketHelper,
MagentoAuthorizationModelRoleFactory $rolesFactory,
MagentoMediaStorageModelFileUploaderFactory $fileUploaderFactory,
MagentoFrameworkSessionSessionManager $session,
ProfileFactory $profile,
MagentoConfigModelConfigFactory $scopeConfig
)
$this->profile = $profile;
$this->coreregistry = $coreregistry;
$this->session = $session;
$this->rolesFactory = $rolesFactory;
$this->messageManager = $context->getMessageManager();
$this->ModelUser = $adminuser;
$this->marketHelper = $marketHelper;
$this->_fileUploaderFactory = $fileUploaderFactory;
$this->scopeConfig = $scopeConfig;
parent::__construct($context);
public function execute()
$post = $this->getRequest()->getParams();
$this->session->setVendorData($post);
$model = $this->profile->create();
$total_file_upload = $this->getRequest()->getParam('total_file_upload', false);
$h="String";
return $h;
// if ($post)
// try
// $data = [];
// $data = $post;
// if ($data['password']!=$data['confirmation'])
// $this->messageManager->addError(__("Entered confirm password do not matches the password"));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $uploaded_files = [];
// $fileId = 'file';
// /**
// * Check files allowed
// **/
// $file_types = $this->marketHelper->getConfig('vendor_registration', 'files_allowed');
// $file_types = str_replace(' ', '', $file_types);
// $file_types_array = array_map('trim', explode(',', $file_types));
// /*
// * Check max allowed file size
// */
// $max_allowed_file_size = $this->marketHelper->getConfig('vendor_registration', 'max_allowed_file_size');
// $max_allowed_file_size_bytes = ($max_allowed_file_size * 1024 * 1024);
// /*
// * UPLOAD verification proof FILES
// */
// $uploaded_files = [];
// for ($i = 1; $i <= $total_file_upload; $i++)
// $file_control_name = 'varification_proof_' . $i;
// $uploader = $this->_fileUploaderFactory->create(['fileId' => $file_control_name]);
// $arr = $uploader->validateFile();
// $arr[$file_control_name]['name'] = str_replace(' ', '', $arr['name']);
// $arr[$file_control_name]['name'] = date("YmdHis")."-".$arr['name'];
// if (isset($arr[$file_control_name]['name']) && $arr[$file_control_name]['name'] != '')
// if ($arr['size'] > $max_allowed_file_size_bytes)
// $this->messageManager->addError(__('File size should not exceed ' . $max_allowed_file_size . ' Mb'));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// try
// $f_type=$arr['type'];
// if ($f_type!= "image/gif" && $f_type!= "image/png" && $f_type!= "image/jpeg" && $f_type!= "image/JPEG" && $f_type!= "image/PNG" && $f_type!= "image/GIF")
// $this->messageManager->addError(__('Disallowed File Type'));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $dir_path = $this->marketHelper->getImagesDir('varifications');
// $uploader = $this->_fileUploaderFactory->create(['fileId' => $file_control_name]);
// $uploader->setAllowedExtensions(['jpg', 'jpeg', 'gif', 'png']);
// $uploader->addValidateCallback('validate', $this, 'validateFile');
// $uploader->setAllowRenameFiles(false);
// $uploader->setFilesDispersion(false);
// $uploader->save($dir_path, $arr[$file_control_name]['name']);
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $uploaded_files[] = $arr[$file_control_name]['name'];
//
//
// $roleId = $this->marketHelper->getConfig('general', 'vendor_role');
// $varification_files = json_encode($uploaded_files);
// /**
// * Set Data in admin user table
// *
// **/
// $adminuser = $this->ModelUser->create();
// $adminuser = $adminuser->setUsername($data['username'])
// ->setFirstname($data['firstname'])
// ->setLastname($data['lastname'])
// ->setEmail(strtolower($data['email']))
// ->setIsActive(0);
// /**
// * Set Data in authorization table
// *
// **/
// $role=$this->rolesFactory->create();
// $role->setRoleName($data['username'])
// ->setRoleType(RoleGroup::ROLE_TYPE)
// ->setParentId($roleId)
// ->setTreeLevel(2)
// ->setUserType(UserContextInterface::USER_TYPE_ADMIN);
// try
// if ($data['password'])
// $adminuser->setPassword($data['password']);
// $result = $adminuser->validate();
// $adminuser->save();
// $id = $adminuser->getUserId();
// $role->setUserId($id);
// $role->save();
//
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// if (is_array($result))
// $this->adminSession->setUserData($data);
// foreach ($result as $message)
// $this->messageManager->addError($message);
//
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
// else
// /**
// * Set Data in Marketplace Profile Table
// *
// **/
// $data["user_id"] = $id;
// $data["shop_name"] = $post["shop_name"];
// $data["contact_number"] = $post["contact_number"];
// $data["country"] = $post["country"];
// $data["latitude"] = $post["latitude"];
// $data["longitude"] = $post["longitude"];
// // $data["age_name"] = $post["age_name"];
// $data["vendor_industry"] = $post["vendor_industry"];
// $data["vendor_scorecard"] = $post["vendor_scorecard"];
// /**
// * Verification Files Uploaded
// *
// **/
// if (count($uploaded_files)>0)
// $data["proof_type"] = $post["proof_type"];
// $data["varification_files"] = json_encode($uploaded_files);
//
// $data["create_date"] = date("Y-m-d H:i:s");
// $data["total_admin_commission"] = 0;
// $data["total_vendor_amount"] = 0;
// $data["total_vendor_paid"] = 0;
// $model = $this->profile->create();
// $model->setData($data);
// /*
// * Send Email
// * */
// $receiverInfo = [
// 'name' => $data['firstname'],
// 'email' => $data['email']
// ];
// try
// /* Sender Detail */
// if ($this->marketHelper->getConfig('vendor_registration_email', 'enable_registration_email')==1)
// $reciever = $this->marketHelper->getTemplateId('marketplace/vendor_registration_email/email_receiver');
// $receivername = $this->marketHelper->getTemplateId('trans_email/ident_'.$reciever.'/name');
// $receiveremail = $this->marketHelper->getTemplateId('trans_email/ident_'.$reciever.'/email');
// $sendername = $this->marketHelper->getTemplateId('trans_email/ident_general/name');
// $senderemail = $this->marketHelper->getTemplateId('trans_email/ident_general/email');
// $receiverInfo = [
// 'name' => $receivername,
// 'email' => $receiveremail,
// ];
// $senderInfo = [
// 'name' => $sendername,
// 'email' => $senderemail,
// ];
// $emailTemplateVariables = [];
// $emailTempVariables['myvar1'] = $data['firstname'].' '.$data['lastname'];
// $emailTempVariables['myvar2'] = $receivername;
// $this->marketHelper->sendRegistrationEmailToVendor(
// $emailTempVariables,
// $senderInfo,
// $receiverInfo
// );
//
// /**
// * send email to vendor
// */
// if ($this->marketHelper->getConfig('registration_confirmation_email', 'active_vendor_email')==1)
// $vendorSender = $this->marketHelper->getTemplateId('marketplace/registration_confirmation_email/email_sender');
// $vendorsendername = $this->marketHelper->getTemplateId('trans_email/ident_'.$vendorSender.'/name');
// $vendorsenderemail = $this->marketHelper->getTemplateId('trans_email/ident_'.$vendorSender.'/email');
// $vendorReceiverInfo = [
// 'name' => $data['firstname'],
// 'email' => $data['email']
// ];
// $vendorSenderInfo = [
// 'name' => $vendorsendername,
// 'email' => $vendorsenderemail,
// ];
// $vendorEmailTemplateVariables = [];
// $vendorEmailTemplateVariables['vendorname'] = $data['firstname'];
// $this->marketHelper->sendConfirmationEmail(
// $vendorEmailTemplateVariables,
// $vendorSenderInfo,
// $vendorReceiverInfo
// );
//
// catch (Exception $e)
// $this->messageManager->addError($e->getMessage());
//
// $model->save();
// $this->messageManager->addSuccess(__('Request has been sent successfully, we will contact you soon.'));
// $this->_redirect($this->_redirect->getRefererUrl());
//
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
//
// $this->_redirect($this->_redirect->getRefererUrl());
But all ways showing
This page isn’t working www.mg.project.co didn’t send any data.
ERR_EMPTY_RESPONSE
Error not showing on this page
How I can fix the issue
I already tried
1) index.php
error_reporting(E_ALL);
ini_set('display_errors', 1);
2) The project already in developer mode:
Post request not working why???
magento2 error controllers index
see this magento.stackexchange.com/questions/85159/…
– Chirag Patel
Jun 11 at 8:44
You should first check whether your controller execute method getting called or not. You can put all code in comment and just check by printing something that method called or not. If called, try uncommenting code one by one so you can find the culprit. If method is not called then it might be issue with routes.xml file
– Khushbu
Jun 11 at 8:53
@prabhakaran7 check in app/bootstrap.php there you should uncomment ini_set('display_errors', 1);
– Ansar Husain
Jun 11 at 8:56
@Khushbu it's going to that page but when again i remove comment it's not working
– prabhakaran7
Jun 11 at 9:50
@prabhakaran7 you have to debug your code and find out which exact line of code is causing issue. you can share here that line so we can help
– Khushbu
Jun 11 at 10:03
|
show 6 more comments
When I submit data to saveprofile.php (controller).
saveprofile.php
use MagentoAuthorizationModelUserContextInterface as UserContextInterface;
use MagentoAuthorizationModelAclRoleUser as RoleGroup;
use MagentoFrameworkMessageManagerInterface;
use MedmaMarketPlaceModelProfileFactory;
use MagentoFrameworkAppFilesystemDirectoryList;
use MagentoBackendAppAction;
class Saveprofile extends MagentoFrameworkAppActionAction
/**
* @var MagentoConfigModelConfigFactory
*/
protected $scopeConfig;
/**
* @var MedmaMarketPlaceModelProfileFactory
*/
protected $profile;
/**
* @var MagentoFrameworkMessageManagerInterface
*/
protected $messageManager;
/**
* @var MagentoAuthorizationModelRoleFactory
*/
protected $rolesFactory;
/**
* @var MedmaMarketPlaceHelperData
*/
protected $marketHelper;
/**
* @var MagentoMediaStorageModelFileUploaderFactory
*/
protected $_fileUploaderFactory;
/**
* @var MagentoFrameworkRegistry
*/
protected $coreregistry;
/**
* @var MagentoFrameworkSessionSessionManager
*/
protected $session;
/**
*
* @param MagentoFrameworkAppActionContext $context,
* @param MagentoFrameworkRegistry $coreregistry,
* @param MagentoUserModelUserFactory $adminuser,
* @param MedmaMarketPlaceHelperData $marketHelper,
* @param MagentoAuthorizationModelRoleFactory $rolesFactory,
* @param MagentoMediaStorageModelFileUploaderFactory $fileUploaderFactory,
* @param MagentoFrameworkSessionSessionManager $session,
* @param MedmaMarketPlaceModelProfileFactory $profile,
* @param MagentoConfigModelConfigFactory $scopeConfig,
* @param MagentoFrameworkMessageManagerInterface $messageManager
*
*/
public function __construct(
MagentoFrameworkAppActionContext $context,
MagentoFrameworkRegistry $coreregistry,
MagentoUserModelUserFactory $adminuser,
MedmaMarketPlaceHelperData $marketHelper,
MagentoAuthorizationModelRoleFactory $rolesFactory,
MagentoMediaStorageModelFileUploaderFactory $fileUploaderFactory,
MagentoFrameworkSessionSessionManager $session,
ProfileFactory $profile,
MagentoConfigModelConfigFactory $scopeConfig
)
$this->profile = $profile;
$this->coreregistry = $coreregistry;
$this->session = $session;
$this->rolesFactory = $rolesFactory;
$this->messageManager = $context->getMessageManager();
$this->ModelUser = $adminuser;
$this->marketHelper = $marketHelper;
$this->_fileUploaderFactory = $fileUploaderFactory;
$this->scopeConfig = $scopeConfig;
parent::__construct($context);
public function execute()
$post = $this->getRequest()->getParams();
$this->session->setVendorData($post);
$model = $this->profile->create();
$total_file_upload = $this->getRequest()->getParam('total_file_upload', false);
$h="String";
return $h;
// if ($post)
// try
// $data = [];
// $data = $post;
// if ($data['password']!=$data['confirmation'])
// $this->messageManager->addError(__("Entered confirm password do not matches the password"));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $uploaded_files = [];
// $fileId = 'file';
// /**
// * Check files allowed
// **/
// $file_types = $this->marketHelper->getConfig('vendor_registration', 'files_allowed');
// $file_types = str_replace(' ', '', $file_types);
// $file_types_array = array_map('trim', explode(',', $file_types));
// /*
// * Check max allowed file size
// */
// $max_allowed_file_size = $this->marketHelper->getConfig('vendor_registration', 'max_allowed_file_size');
// $max_allowed_file_size_bytes = ($max_allowed_file_size * 1024 * 1024);
// /*
// * UPLOAD verification proof FILES
// */
// $uploaded_files = [];
// for ($i = 1; $i <= $total_file_upload; $i++)
// $file_control_name = 'varification_proof_' . $i;
// $uploader = $this->_fileUploaderFactory->create(['fileId' => $file_control_name]);
// $arr = $uploader->validateFile();
// $arr[$file_control_name]['name'] = str_replace(' ', '', $arr['name']);
// $arr[$file_control_name]['name'] = date("YmdHis")."-".$arr['name'];
// if (isset($arr[$file_control_name]['name']) && $arr[$file_control_name]['name'] != '')
// if ($arr['size'] > $max_allowed_file_size_bytes)
// $this->messageManager->addError(__('File size should not exceed ' . $max_allowed_file_size . ' Mb'));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// try
// $f_type=$arr['type'];
// if ($f_type!= "image/gif" && $f_type!= "image/png" && $f_type!= "image/jpeg" && $f_type!= "image/JPEG" && $f_type!= "image/PNG" && $f_type!= "image/GIF")
// $this->messageManager->addError(__('Disallowed File Type'));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $dir_path = $this->marketHelper->getImagesDir('varifications');
// $uploader = $this->_fileUploaderFactory->create(['fileId' => $file_control_name]);
// $uploader->setAllowedExtensions(['jpg', 'jpeg', 'gif', 'png']);
// $uploader->addValidateCallback('validate', $this, 'validateFile');
// $uploader->setAllowRenameFiles(false);
// $uploader->setFilesDispersion(false);
// $uploader->save($dir_path, $arr[$file_control_name]['name']);
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $uploaded_files[] = $arr[$file_control_name]['name'];
//
//
// $roleId = $this->marketHelper->getConfig('general', 'vendor_role');
// $varification_files = json_encode($uploaded_files);
// /**
// * Set Data in admin user table
// *
// **/
// $adminuser = $this->ModelUser->create();
// $adminuser = $adminuser->setUsername($data['username'])
// ->setFirstname($data['firstname'])
// ->setLastname($data['lastname'])
// ->setEmail(strtolower($data['email']))
// ->setIsActive(0);
// /**
// * Set Data in authorization table
// *
// **/
// $role=$this->rolesFactory->create();
// $role->setRoleName($data['username'])
// ->setRoleType(RoleGroup::ROLE_TYPE)
// ->setParentId($roleId)
// ->setTreeLevel(2)
// ->setUserType(UserContextInterface::USER_TYPE_ADMIN);
// try
// if ($data['password'])
// $adminuser->setPassword($data['password']);
// $result = $adminuser->validate();
// $adminuser->save();
// $id = $adminuser->getUserId();
// $role->setUserId($id);
// $role->save();
//
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// if (is_array($result))
// $this->adminSession->setUserData($data);
// foreach ($result as $message)
// $this->messageManager->addError($message);
//
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
// else
// /**
// * Set Data in Marketplace Profile Table
// *
// **/
// $data["user_id"] = $id;
// $data["shop_name"] = $post["shop_name"];
// $data["contact_number"] = $post["contact_number"];
// $data["country"] = $post["country"];
// $data["latitude"] = $post["latitude"];
// $data["longitude"] = $post["longitude"];
// // $data["age_name"] = $post["age_name"];
// $data["vendor_industry"] = $post["vendor_industry"];
// $data["vendor_scorecard"] = $post["vendor_scorecard"];
// /**
// * Verification Files Uploaded
// *
// **/
// if (count($uploaded_files)>0)
// $data["proof_type"] = $post["proof_type"];
// $data["varification_files"] = json_encode($uploaded_files);
//
// $data["create_date"] = date("Y-m-d H:i:s");
// $data["total_admin_commission"] = 0;
// $data["total_vendor_amount"] = 0;
// $data["total_vendor_paid"] = 0;
// $model = $this->profile->create();
// $model->setData($data);
// /*
// * Send Email
// * */
// $receiverInfo = [
// 'name' => $data['firstname'],
// 'email' => $data['email']
// ];
// try
// /* Sender Detail */
// if ($this->marketHelper->getConfig('vendor_registration_email', 'enable_registration_email')==1)
// $reciever = $this->marketHelper->getTemplateId('marketplace/vendor_registration_email/email_receiver');
// $receivername = $this->marketHelper->getTemplateId('trans_email/ident_'.$reciever.'/name');
// $receiveremail = $this->marketHelper->getTemplateId('trans_email/ident_'.$reciever.'/email');
// $sendername = $this->marketHelper->getTemplateId('trans_email/ident_general/name');
// $senderemail = $this->marketHelper->getTemplateId('trans_email/ident_general/email');
// $receiverInfo = [
// 'name' => $receivername,
// 'email' => $receiveremail,
// ];
// $senderInfo = [
// 'name' => $sendername,
// 'email' => $senderemail,
// ];
// $emailTemplateVariables = [];
// $emailTempVariables['myvar1'] = $data['firstname'].' '.$data['lastname'];
// $emailTempVariables['myvar2'] = $receivername;
// $this->marketHelper->sendRegistrationEmailToVendor(
// $emailTempVariables,
// $senderInfo,
// $receiverInfo
// );
//
// /**
// * send email to vendor
// */
// if ($this->marketHelper->getConfig('registration_confirmation_email', 'active_vendor_email')==1)
// $vendorSender = $this->marketHelper->getTemplateId('marketplace/registration_confirmation_email/email_sender');
// $vendorsendername = $this->marketHelper->getTemplateId('trans_email/ident_'.$vendorSender.'/name');
// $vendorsenderemail = $this->marketHelper->getTemplateId('trans_email/ident_'.$vendorSender.'/email');
// $vendorReceiverInfo = [
// 'name' => $data['firstname'],
// 'email' => $data['email']
// ];
// $vendorSenderInfo = [
// 'name' => $vendorsendername,
// 'email' => $vendorsenderemail,
// ];
// $vendorEmailTemplateVariables = [];
// $vendorEmailTemplateVariables['vendorname'] = $data['firstname'];
// $this->marketHelper->sendConfirmationEmail(
// $vendorEmailTemplateVariables,
// $vendorSenderInfo,
// $vendorReceiverInfo
// );
//
// catch (Exception $e)
// $this->messageManager->addError($e->getMessage());
//
// $model->save();
// $this->messageManager->addSuccess(__('Request has been sent successfully, we will contact you soon.'));
// $this->_redirect($this->_redirect->getRefererUrl());
//
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
//
// $this->_redirect($this->_redirect->getRefererUrl());
But all ways showing
This page isn’t working www.mg.project.co didn’t send any data.
ERR_EMPTY_RESPONSE
Error not showing on this page
How I can fix the issue
I already tried
1) index.php
error_reporting(E_ALL);
ini_set('display_errors', 1);
2) The project already in developer mode:
Post request not working why???
magento2 error controllers index
When I submit data to saveprofile.php (controller).
saveprofile.php
use MagentoAuthorizationModelUserContextInterface as UserContextInterface;
use MagentoAuthorizationModelAclRoleUser as RoleGroup;
use MagentoFrameworkMessageManagerInterface;
use MedmaMarketPlaceModelProfileFactory;
use MagentoFrameworkAppFilesystemDirectoryList;
use MagentoBackendAppAction;
class Saveprofile extends MagentoFrameworkAppActionAction
/**
* @var MagentoConfigModelConfigFactory
*/
protected $scopeConfig;
/**
* @var MedmaMarketPlaceModelProfileFactory
*/
protected $profile;
/**
* @var MagentoFrameworkMessageManagerInterface
*/
protected $messageManager;
/**
* @var MagentoAuthorizationModelRoleFactory
*/
protected $rolesFactory;
/**
* @var MedmaMarketPlaceHelperData
*/
protected $marketHelper;
/**
* @var MagentoMediaStorageModelFileUploaderFactory
*/
protected $_fileUploaderFactory;
/**
* @var MagentoFrameworkRegistry
*/
protected $coreregistry;
/**
* @var MagentoFrameworkSessionSessionManager
*/
protected $session;
/**
*
* @param MagentoFrameworkAppActionContext $context,
* @param MagentoFrameworkRegistry $coreregistry,
* @param MagentoUserModelUserFactory $adminuser,
* @param MedmaMarketPlaceHelperData $marketHelper,
* @param MagentoAuthorizationModelRoleFactory $rolesFactory,
* @param MagentoMediaStorageModelFileUploaderFactory $fileUploaderFactory,
* @param MagentoFrameworkSessionSessionManager $session,
* @param MedmaMarketPlaceModelProfileFactory $profile,
* @param MagentoConfigModelConfigFactory $scopeConfig,
* @param MagentoFrameworkMessageManagerInterface $messageManager
*
*/
public function __construct(
MagentoFrameworkAppActionContext $context,
MagentoFrameworkRegistry $coreregistry,
MagentoUserModelUserFactory $adminuser,
MedmaMarketPlaceHelperData $marketHelper,
MagentoAuthorizationModelRoleFactory $rolesFactory,
MagentoMediaStorageModelFileUploaderFactory $fileUploaderFactory,
MagentoFrameworkSessionSessionManager $session,
ProfileFactory $profile,
MagentoConfigModelConfigFactory $scopeConfig
)
$this->profile = $profile;
$this->coreregistry = $coreregistry;
$this->session = $session;
$this->rolesFactory = $rolesFactory;
$this->messageManager = $context->getMessageManager();
$this->ModelUser = $adminuser;
$this->marketHelper = $marketHelper;
$this->_fileUploaderFactory = $fileUploaderFactory;
$this->scopeConfig = $scopeConfig;
parent::__construct($context);
public function execute()
$post = $this->getRequest()->getParams();
$this->session->setVendorData($post);
$model = $this->profile->create();
$total_file_upload = $this->getRequest()->getParam('total_file_upload', false);
$h="String";
return $h;
// if ($post)
// try
// $data = [];
// $data = $post;
// if ($data['password']!=$data['confirmation'])
// $this->messageManager->addError(__("Entered confirm password do not matches the password"));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $uploaded_files = [];
// $fileId = 'file';
// /**
// * Check files allowed
// **/
// $file_types = $this->marketHelper->getConfig('vendor_registration', 'files_allowed');
// $file_types = str_replace(' ', '', $file_types);
// $file_types_array = array_map('trim', explode(',', $file_types));
// /*
// * Check max allowed file size
// */
// $max_allowed_file_size = $this->marketHelper->getConfig('vendor_registration', 'max_allowed_file_size');
// $max_allowed_file_size_bytes = ($max_allowed_file_size * 1024 * 1024);
// /*
// * UPLOAD verification proof FILES
// */
// $uploaded_files = [];
// for ($i = 1; $i <= $total_file_upload; $i++)
// $file_control_name = 'varification_proof_' . $i;
// $uploader = $this->_fileUploaderFactory->create(['fileId' => $file_control_name]);
// $arr = $uploader->validateFile();
// $arr[$file_control_name]['name'] = str_replace(' ', '', $arr['name']);
// $arr[$file_control_name]['name'] = date("YmdHis")."-".$arr['name'];
// if (isset($arr[$file_control_name]['name']) && $arr[$file_control_name]['name'] != '')
// if ($arr['size'] > $max_allowed_file_size_bytes)
// $this->messageManager->addError(__('File size should not exceed ' . $max_allowed_file_size . ' Mb'));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// try
// $f_type=$arr['type'];
// if ($f_type!= "image/gif" && $f_type!= "image/png" && $f_type!= "image/jpeg" && $f_type!= "image/JPEG" && $f_type!= "image/PNG" && $f_type!= "image/GIF")
// $this->messageManager->addError(__('Disallowed File Type'));
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $dir_path = $this->marketHelper->getImagesDir('varifications');
// $uploader = $this->_fileUploaderFactory->create(['fileId' => $file_control_name]);
// $uploader->setAllowedExtensions(['jpg', 'jpeg', 'gif', 'png']);
// $uploader->addValidateCallback('validate', $this, 'validateFile');
// $uploader->setAllowRenameFiles(false);
// $uploader->setFilesDispersion(false);
// $uploader->save($dir_path, $arr[$file_control_name]['name']);
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// $uploaded_files[] = $arr[$file_control_name]['name'];
//
//
// $roleId = $this->marketHelper->getConfig('general', 'vendor_role');
// $varification_files = json_encode($uploaded_files);
// /**
// * Set Data in admin user table
// *
// **/
// $adminuser = $this->ModelUser->create();
// $adminuser = $adminuser->setUsername($data['username'])
// ->setFirstname($data['firstname'])
// ->setLastname($data['lastname'])
// ->setEmail(strtolower($data['email']))
// ->setIsActive(0);
// /**
// * Set Data in authorization table
// *
// **/
// $role=$this->rolesFactory->create();
// $role->setRoleName($data['username'])
// ->setRoleType(RoleGroup::ROLE_TYPE)
// ->setParentId($roleId)
// ->setTreeLevel(2)
// ->setUserType(UserContextInterface::USER_TYPE_ADMIN);
// try
// if ($data['password'])
// $adminuser->setPassword($data['password']);
// $result = $adminuser->validate();
// $adminuser->save();
// $id = $adminuser->getUserId();
// $role->setUserId($id);
// $role->save();
//
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
// if (is_array($result))
// $this->adminSession->setUserData($data);
// foreach ($result as $message)
// $this->messageManager->addError($message);
//
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
// else
// /**
// * Set Data in Marketplace Profile Table
// *
// **/
// $data["user_id"] = $id;
// $data["shop_name"] = $post["shop_name"];
// $data["contact_number"] = $post["contact_number"];
// $data["country"] = $post["country"];
// $data["latitude"] = $post["latitude"];
// $data["longitude"] = $post["longitude"];
// // $data["age_name"] = $post["age_name"];
// $data["vendor_industry"] = $post["vendor_industry"];
// $data["vendor_scorecard"] = $post["vendor_scorecard"];
// /**
// * Verification Files Uploaded
// *
// **/
// if (count($uploaded_files)>0)
// $data["proof_type"] = $post["proof_type"];
// $data["varification_files"] = json_encode($uploaded_files);
//
// $data["create_date"] = date("Y-m-d H:i:s");
// $data["total_admin_commission"] = 0;
// $data["total_vendor_amount"] = 0;
// $data["total_vendor_paid"] = 0;
// $model = $this->profile->create();
// $model->setData($data);
// /*
// * Send Email
// * */
// $receiverInfo = [
// 'name' => $data['firstname'],
// 'email' => $data['email']
// ];
// try
// /* Sender Detail */
// if ($this->marketHelper->getConfig('vendor_registration_email', 'enable_registration_email')==1)
// $reciever = $this->marketHelper->getTemplateId('marketplace/vendor_registration_email/email_receiver');
// $receivername = $this->marketHelper->getTemplateId('trans_email/ident_'.$reciever.'/name');
// $receiveremail = $this->marketHelper->getTemplateId('trans_email/ident_'.$reciever.'/email');
// $sendername = $this->marketHelper->getTemplateId('trans_email/ident_general/name');
// $senderemail = $this->marketHelper->getTemplateId('trans_email/ident_general/email');
// $receiverInfo = [
// 'name' => $receivername,
// 'email' => $receiveremail,
// ];
// $senderInfo = [
// 'name' => $sendername,
// 'email' => $senderemail,
// ];
// $emailTemplateVariables = [];
// $emailTempVariables['myvar1'] = $data['firstname'].' '.$data['lastname'];
// $emailTempVariables['myvar2'] = $receivername;
// $this->marketHelper->sendRegistrationEmailToVendor(
// $emailTempVariables,
// $senderInfo,
// $receiverInfo
// );
//
// /**
// * send email to vendor
// */
// if ($this->marketHelper->getConfig('registration_confirmation_email', 'active_vendor_email')==1)
// $vendorSender = $this->marketHelper->getTemplateId('marketplace/registration_confirmation_email/email_sender');
// $vendorsendername = $this->marketHelper->getTemplateId('trans_email/ident_'.$vendorSender.'/name');
// $vendorsenderemail = $this->marketHelper->getTemplateId('trans_email/ident_'.$vendorSender.'/email');
// $vendorReceiverInfo = [
// 'name' => $data['firstname'],
// 'email' => $data['email']
// ];
// $vendorSenderInfo = [
// 'name' => $vendorsendername,
// 'email' => $vendorsenderemail,
// ];
// $vendorEmailTemplateVariables = [];
// $vendorEmailTemplateVariables['vendorname'] = $data['firstname'];
// $this->marketHelper->sendConfirmationEmail(
// $vendorEmailTemplateVariables,
// $vendorSenderInfo,
// $vendorReceiverInfo
// );
//
// catch (Exception $e)
// $this->messageManager->addError($e->getMessage());
//
// $model->save();
// $this->messageManager->addSuccess(__('Request has been sent successfully, we will contact you soon.'));
// $this->_redirect($this->_redirect->getRefererUrl());
//
// catch (MagentoFrameworkValidatorException $e)
// $this->messageManager->addError($e->getMessage());
// $this->_redirect($this->_redirect->getRefererUrl());
// return;
//
//
// $this->_redirect($this->_redirect->getRefererUrl());
But all ways showing
This page isn’t working www.mg.project.co didn’t send any data.
ERR_EMPTY_RESPONSE
Error not showing on this page
How I can fix the issue
I already tried
1) index.php
error_reporting(E_ALL);
ini_set('display_errors', 1);
2) The project already in developer mode:
Post request not working why???
magento2 error controllers index
magento2 error controllers index
edited Jun 17 at 5:15
Aasim Goriya
3,2371 gold badge11 silver badges43 bronze badges
3,2371 gold badge11 silver badges43 bronze badges
asked Jun 11 at 8:34
prabhakaran7prabhakaran7
36913 bronze badges
36913 bronze badges
see this magento.stackexchange.com/questions/85159/…
– Chirag Patel
Jun 11 at 8:44
You should first check whether your controller execute method getting called or not. You can put all code in comment and just check by printing something that method called or not. If called, try uncommenting code one by one so you can find the culprit. If method is not called then it might be issue with routes.xml file
– Khushbu
Jun 11 at 8:53
@prabhakaran7 check in app/bootstrap.php there you should uncomment ini_set('display_errors', 1);
– Ansar Husain
Jun 11 at 8:56
@Khushbu it's going to that page but when again i remove comment it's not working
– prabhakaran7
Jun 11 at 9:50
@prabhakaran7 you have to debug your code and find out which exact line of code is causing issue. you can share here that line so we can help
– Khushbu
Jun 11 at 10:03
|
show 6 more comments
see this magento.stackexchange.com/questions/85159/…
– Chirag Patel
Jun 11 at 8:44
You should first check whether your controller execute method getting called or not. You can put all code in comment and just check by printing something that method called or not. If called, try uncommenting code one by one so you can find the culprit. If method is not called then it might be issue with routes.xml file
– Khushbu
Jun 11 at 8:53
@prabhakaran7 check in app/bootstrap.php there you should uncomment ini_set('display_errors', 1);
– Ansar Husain
Jun 11 at 8:56
@Khushbu it's going to that page but when again i remove comment it's not working
– prabhakaran7
Jun 11 at 9:50
@prabhakaran7 you have to debug your code and find out which exact line of code is causing issue. you can share here that line so we can help
– Khushbu
Jun 11 at 10:03
see this magento.stackexchange.com/questions/85159/…
– Chirag Patel
Jun 11 at 8:44
see this magento.stackexchange.com/questions/85159/…
– Chirag Patel
Jun 11 at 8:44
You should first check whether your controller execute method getting called or not. You can put all code in comment and just check by printing something that method called or not. If called, try uncommenting code one by one so you can find the culprit. If method is not called then it might be issue with routes.xml file
– Khushbu
Jun 11 at 8:53
You should first check whether your controller execute method getting called or not. You can put all code in comment and just check by printing something that method called or not. If called, try uncommenting code one by one so you can find the culprit. If method is not called then it might be issue with routes.xml file
– Khushbu
Jun 11 at 8:53
@prabhakaran7 check in app/bootstrap.php there you should uncomment ini_set('display_errors', 1);
– Ansar Husain
Jun 11 at 8:56
@prabhakaran7 check in app/bootstrap.php there you should uncomment ini_set('display_errors', 1);
– Ansar Husain
Jun 11 at 8:56
@Khushbu it's going to that page but when again i remove comment it's not working
– prabhakaran7
Jun 11 at 9:50
@Khushbu it's going to that page but when again i remove comment it's not working
– prabhakaran7
Jun 11 at 9:50
@prabhakaran7 you have to debug your code and find out which exact line of code is causing issue. you can share here that line so we can help
– Khushbu
Jun 11 at 10:03
@prabhakaran7 you have to debug your code and find out which exact line of code is causing issue. you can share here that line so we can help
– Khushbu
Jun 11 at 10:03
|
show 6 more comments
4 Answers
4
active
oldest
votes
if you're using Apache as a web server you can display error from apache error.log to your browser with adding this line code to your root .htaccess
.
php_flag display_errors on
php_flag display_startup_errors on
controller not working bro
– prabhakaran7
Jun 11 at 12:59
when i click on submit showing this error ERR_EMPTY_RESPONSE
– prabhakaran7
Jun 11 at 13:01
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:27
I always use this method to show error when php execution get error and it's work for me, but you could check the error log manually on/var/log/apache2/error.log
file to make sure what issue you are having.
– mrfizh
Jun 11 at 16:28
updated one image (post req)
– prabhakaran7
Jun 12 at 4:34
|
show 1 more comment
You are doing wrong in the following line
$h="String";
return $h;
You should redirect this page to any destination or you should print the response.
Solution 1.
Change return $h;
to echo $h;
Solution 2.
Change return $h;
to $this->_redirect($this->_redirect->getRefererUrl());
Please mark the answer if it works for you.
$this->_redirect($this->_redirect->getRefererUrl()); what is this line actully do
– prabhakaran7
Jun 11 at 12:02
This will redirect the page to the referrer page (page from you hit the controller).You can pass your own url to redirect to specific page like home page or any thank you page.
– Ashvini Marwal
Jun 11 at 12:04
are you running company w3ctrl ........
– prabhakaran7
Jun 11 at 12:06
i was working with w3ctrl.please mark answer if it's working for you.
– Ashvini Marwal
Jun 11 at 12:07
when i uncomment all code it's not working
– prabhakaran7
Jun 11 at 12:17
|
show 3 more comments
Go to your root directory and open .htaccess file.
Add the following code:
php_flag display_errors on
php_flag display_startup_errors on
var/log/system.log Here, you can check the error which you are facing.
max_execution_time 180 is that ok
– prabhakaran7
Jun 11 at 9:37
@prabhakaran7, max_execution_time 2400. go for it and check with it
– Teja Bhagavan Kollepara
Jun 11 at 10:14
still i'm facing that issue bro.....
– prabhakaran7
Jun 11 at 10:21
Restart server, clear cache, reindex all
– Teja Bhagavan Kollepara
Jun 11 at 10:22
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:28
add a comment |
Magento_Root/app/bootstrap.php
Line no. 12
remove #
from this line:
ini_set('display_errors', 1);
After this you will get the error
in log file: ::::: AH01797: client denied by server configuration: /home/bbppco/mg.project.co/vendor/saveprofile –
– prabhakaran7
Jun 12 at 4:55
httpd.apache.org/docs/2.4/upgrading.html#access
– Saphal Jha
Jun 12 at 4:56
i don't understand this document...............
– prabhakaran7
Jun 12 at 5:05
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f277934%2fmagento2-how-to-fix-error-not-showing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
if you're using Apache as a web server you can display error from apache error.log to your browser with adding this line code to your root .htaccess
.
php_flag display_errors on
php_flag display_startup_errors on
controller not working bro
– prabhakaran7
Jun 11 at 12:59
when i click on submit showing this error ERR_EMPTY_RESPONSE
– prabhakaran7
Jun 11 at 13:01
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:27
I always use this method to show error when php execution get error and it's work for me, but you could check the error log manually on/var/log/apache2/error.log
file to make sure what issue you are having.
– mrfizh
Jun 11 at 16:28
updated one image (post req)
– prabhakaran7
Jun 12 at 4:34
|
show 1 more comment
if you're using Apache as a web server you can display error from apache error.log to your browser with adding this line code to your root .htaccess
.
php_flag display_errors on
php_flag display_startup_errors on
controller not working bro
– prabhakaran7
Jun 11 at 12:59
when i click on submit showing this error ERR_EMPTY_RESPONSE
– prabhakaran7
Jun 11 at 13:01
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:27
I always use this method to show error when php execution get error and it's work for me, but you could check the error log manually on/var/log/apache2/error.log
file to make sure what issue you are having.
– mrfizh
Jun 11 at 16:28
updated one image (post req)
– prabhakaran7
Jun 12 at 4:34
|
show 1 more comment
if you're using Apache as a web server you can display error from apache error.log to your browser with adding this line code to your root .htaccess
.
php_flag display_errors on
php_flag display_startup_errors on
if you're using Apache as a web server you can display error from apache error.log to your browser with adding this line code to your root .htaccess
.
php_flag display_errors on
php_flag display_startup_errors on
edited Jun 11 at 8:49
Teja Bhagavan Kollepara
3,0024 gold badges20 silver badges51 bronze badges
3,0024 gold badges20 silver badges51 bronze badges
answered Jun 11 at 8:43
mrfizhmrfizh
9692 gold badges7 silver badges24 bronze badges
9692 gold badges7 silver badges24 bronze badges
controller not working bro
– prabhakaran7
Jun 11 at 12:59
when i click on submit showing this error ERR_EMPTY_RESPONSE
– prabhakaran7
Jun 11 at 13:01
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:27
I always use this method to show error when php execution get error and it's work for me, but you could check the error log manually on/var/log/apache2/error.log
file to make sure what issue you are having.
– mrfizh
Jun 11 at 16:28
updated one image (post req)
– prabhakaran7
Jun 12 at 4:34
|
show 1 more comment
controller not working bro
– prabhakaran7
Jun 11 at 12:59
when i click on submit showing this error ERR_EMPTY_RESPONSE
– prabhakaran7
Jun 11 at 13:01
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:27
I always use this method to show error when php execution get error and it's work for me, but you could check the error log manually on/var/log/apache2/error.log
file to make sure what issue you are having.
– mrfizh
Jun 11 at 16:28
updated one image (post req)
– prabhakaran7
Jun 12 at 4:34
controller not working bro
– prabhakaran7
Jun 11 at 12:59
controller not working bro
– prabhakaran7
Jun 11 at 12:59
when i click on submit showing this error ERR_EMPTY_RESPONSE
– prabhakaran7
Jun 11 at 13:01
when i click on submit showing this error ERR_EMPTY_RESPONSE
– prabhakaran7
Jun 11 at 13:01
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:27
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:27
I always use this method to show error when php execution get error and it's work for me, but you could check the error log manually on
/var/log/apache2/error.log
file to make sure what issue you are having.– mrfizh
Jun 11 at 16:28
I always use this method to show error when php execution get error and it's work for me, but you could check the error log manually on
/var/log/apache2/error.log
file to make sure what issue you are having.– mrfizh
Jun 11 at 16:28
updated one image (post req)
– prabhakaran7
Jun 12 at 4:34
updated one image (post req)
– prabhakaran7
Jun 12 at 4:34
|
show 1 more comment
You are doing wrong in the following line
$h="String";
return $h;
You should redirect this page to any destination or you should print the response.
Solution 1.
Change return $h;
to echo $h;
Solution 2.
Change return $h;
to $this->_redirect($this->_redirect->getRefererUrl());
Please mark the answer if it works for you.
$this->_redirect($this->_redirect->getRefererUrl()); what is this line actully do
– prabhakaran7
Jun 11 at 12:02
This will redirect the page to the referrer page (page from you hit the controller).You can pass your own url to redirect to specific page like home page or any thank you page.
– Ashvini Marwal
Jun 11 at 12:04
are you running company w3ctrl ........
– prabhakaran7
Jun 11 at 12:06
i was working with w3ctrl.please mark answer if it's working for you.
– Ashvini Marwal
Jun 11 at 12:07
when i uncomment all code it's not working
– prabhakaran7
Jun 11 at 12:17
|
show 3 more comments
You are doing wrong in the following line
$h="String";
return $h;
You should redirect this page to any destination or you should print the response.
Solution 1.
Change return $h;
to echo $h;
Solution 2.
Change return $h;
to $this->_redirect($this->_redirect->getRefererUrl());
Please mark the answer if it works for you.
$this->_redirect($this->_redirect->getRefererUrl()); what is this line actully do
– prabhakaran7
Jun 11 at 12:02
This will redirect the page to the referrer page (page from you hit the controller).You can pass your own url to redirect to specific page like home page or any thank you page.
– Ashvini Marwal
Jun 11 at 12:04
are you running company w3ctrl ........
– prabhakaran7
Jun 11 at 12:06
i was working with w3ctrl.please mark answer if it's working for you.
– Ashvini Marwal
Jun 11 at 12:07
when i uncomment all code it's not working
– prabhakaran7
Jun 11 at 12:17
|
show 3 more comments
You are doing wrong in the following line
$h="String";
return $h;
You should redirect this page to any destination or you should print the response.
Solution 1.
Change return $h;
to echo $h;
Solution 2.
Change return $h;
to $this->_redirect($this->_redirect->getRefererUrl());
Please mark the answer if it works for you.
You are doing wrong in the following line
$h="String";
return $h;
You should redirect this page to any destination or you should print the response.
Solution 1.
Change return $h;
to echo $h;
Solution 2.
Change return $h;
to $this->_redirect($this->_redirect->getRefererUrl());
Please mark the answer if it works for you.
answered Jun 11 at 11:54
Ashvini MarwalAshvini Marwal
16016 bronze badges
16016 bronze badges
$this->_redirect($this->_redirect->getRefererUrl()); what is this line actully do
– prabhakaran7
Jun 11 at 12:02
This will redirect the page to the referrer page (page from you hit the controller).You can pass your own url to redirect to specific page like home page or any thank you page.
– Ashvini Marwal
Jun 11 at 12:04
are you running company w3ctrl ........
– prabhakaran7
Jun 11 at 12:06
i was working with w3ctrl.please mark answer if it's working for you.
– Ashvini Marwal
Jun 11 at 12:07
when i uncomment all code it's not working
– prabhakaran7
Jun 11 at 12:17
|
show 3 more comments
$this->_redirect($this->_redirect->getRefererUrl()); what is this line actully do
– prabhakaran7
Jun 11 at 12:02
This will redirect the page to the referrer page (page from you hit the controller).You can pass your own url to redirect to specific page like home page or any thank you page.
– Ashvini Marwal
Jun 11 at 12:04
are you running company w3ctrl ........
– prabhakaran7
Jun 11 at 12:06
i was working with w3ctrl.please mark answer if it's working for you.
– Ashvini Marwal
Jun 11 at 12:07
when i uncomment all code it's not working
– prabhakaran7
Jun 11 at 12:17
$this->_redirect($this->_redirect->getRefererUrl()); what is this line actully do
– prabhakaran7
Jun 11 at 12:02
$this->_redirect($this->_redirect->getRefererUrl()); what is this line actully do
– prabhakaran7
Jun 11 at 12:02
This will redirect the page to the referrer page (page from you hit the controller).You can pass your own url to redirect to specific page like home page or any thank you page.
– Ashvini Marwal
Jun 11 at 12:04
This will redirect the page to the referrer page (page from you hit the controller).You can pass your own url to redirect to specific page like home page or any thank you page.
– Ashvini Marwal
Jun 11 at 12:04
are you running company w3ctrl ........
– prabhakaran7
Jun 11 at 12:06
are you running company w3ctrl ........
– prabhakaran7
Jun 11 at 12:06
i was working with w3ctrl.please mark answer if it's working for you.
– Ashvini Marwal
Jun 11 at 12:07
i was working with w3ctrl.please mark answer if it's working for you.
– Ashvini Marwal
Jun 11 at 12:07
when i uncomment all code it's not working
– prabhakaran7
Jun 11 at 12:17
when i uncomment all code it's not working
– prabhakaran7
Jun 11 at 12:17
|
show 3 more comments
Go to your root directory and open .htaccess file.
Add the following code:
php_flag display_errors on
php_flag display_startup_errors on
var/log/system.log Here, you can check the error which you are facing.
max_execution_time 180 is that ok
– prabhakaran7
Jun 11 at 9:37
@prabhakaran7, max_execution_time 2400. go for it and check with it
– Teja Bhagavan Kollepara
Jun 11 at 10:14
still i'm facing that issue bro.....
– prabhakaran7
Jun 11 at 10:21
Restart server, clear cache, reindex all
– Teja Bhagavan Kollepara
Jun 11 at 10:22
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:28
add a comment |
Go to your root directory and open .htaccess file.
Add the following code:
php_flag display_errors on
php_flag display_startup_errors on
var/log/system.log Here, you can check the error which you are facing.
max_execution_time 180 is that ok
– prabhakaran7
Jun 11 at 9:37
@prabhakaran7, max_execution_time 2400. go for it and check with it
– Teja Bhagavan Kollepara
Jun 11 at 10:14
still i'm facing that issue bro.....
– prabhakaran7
Jun 11 at 10:21
Restart server, clear cache, reindex all
– Teja Bhagavan Kollepara
Jun 11 at 10:22
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:28
add a comment |
Go to your root directory and open .htaccess file.
Add the following code:
php_flag display_errors on
php_flag display_startup_errors on
var/log/system.log Here, you can check the error which you are facing.
Go to your root directory and open .htaccess file.
Add the following code:
php_flag display_errors on
php_flag display_startup_errors on
var/log/system.log Here, you can check the error which you are facing.
edited Jun 11 at 10:15
answered Jun 11 at 8:52
Teja Bhagavan KolleparaTeja Bhagavan Kollepara
3,0024 gold badges20 silver badges51 bronze badges
3,0024 gold badges20 silver badges51 bronze badges
max_execution_time 180 is that ok
– prabhakaran7
Jun 11 at 9:37
@prabhakaran7, max_execution_time 2400. go for it and check with it
– Teja Bhagavan Kollepara
Jun 11 at 10:14
still i'm facing that issue bro.....
– prabhakaran7
Jun 11 at 10:21
Restart server, clear cache, reindex all
– Teja Bhagavan Kollepara
Jun 11 at 10:22
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:28
add a comment |
max_execution_time 180 is that ok
– prabhakaran7
Jun 11 at 9:37
@prabhakaran7, max_execution_time 2400. go for it and check with it
– Teja Bhagavan Kollepara
Jun 11 at 10:14
still i'm facing that issue bro.....
– prabhakaran7
Jun 11 at 10:21
Restart server, clear cache, reindex all
– Teja Bhagavan Kollepara
Jun 11 at 10:22
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:28
max_execution_time 180 is that ok
– prabhakaran7
Jun 11 at 9:37
max_execution_time 180 is that ok
– prabhakaran7
Jun 11 at 9:37
@prabhakaran7, max_execution_time 2400. go for it and check with it
– Teja Bhagavan Kollepara
Jun 11 at 10:14
@prabhakaran7, max_execution_time 2400. go for it and check with it
– Teja Bhagavan Kollepara
Jun 11 at 10:14
still i'm facing that issue bro.....
– prabhakaran7
Jun 11 at 10:21
still i'm facing that issue bro.....
– prabhakaran7
Jun 11 at 10:21
Restart server, clear cache, reindex all
– Teja Bhagavan Kollepara
Jun 11 at 10:22
Restart server, clear cache, reindex all
– Teja Bhagavan Kollepara
Jun 11 at 10:22
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:28
In my post request has no status code (like 404,500)
– prabhakaran7
Jun 11 at 14:28
add a comment |
Magento_Root/app/bootstrap.php
Line no. 12
remove #
from this line:
ini_set('display_errors', 1);
After this you will get the error
in log file: ::::: AH01797: client denied by server configuration: /home/bbppco/mg.project.co/vendor/saveprofile –
– prabhakaran7
Jun 12 at 4:55
httpd.apache.org/docs/2.4/upgrading.html#access
– Saphal Jha
Jun 12 at 4:56
i don't understand this document...............
– prabhakaran7
Jun 12 at 5:05
add a comment |
Magento_Root/app/bootstrap.php
Line no. 12
remove #
from this line:
ini_set('display_errors', 1);
After this you will get the error
in log file: ::::: AH01797: client denied by server configuration: /home/bbppco/mg.project.co/vendor/saveprofile –
– prabhakaran7
Jun 12 at 4:55
httpd.apache.org/docs/2.4/upgrading.html#access
– Saphal Jha
Jun 12 at 4:56
i don't understand this document...............
– prabhakaran7
Jun 12 at 5:05
add a comment |
Magento_Root/app/bootstrap.php
Line no. 12
remove #
from this line:
ini_set('display_errors', 1);
After this you will get the error
Magento_Root/app/bootstrap.php
Line no. 12
remove #
from this line:
ini_set('display_errors', 1);
After this you will get the error
answered Jun 12 at 4:54
Saphal JhaSaphal Jha
1,2677 silver badges17 bronze badges
1,2677 silver badges17 bronze badges
in log file: ::::: AH01797: client denied by server configuration: /home/bbppco/mg.project.co/vendor/saveprofile –
– prabhakaran7
Jun 12 at 4:55
httpd.apache.org/docs/2.4/upgrading.html#access
– Saphal Jha
Jun 12 at 4:56
i don't understand this document...............
– prabhakaran7
Jun 12 at 5:05
add a comment |
in log file: ::::: AH01797: client denied by server configuration: /home/bbppco/mg.project.co/vendor/saveprofile –
– prabhakaran7
Jun 12 at 4:55
httpd.apache.org/docs/2.4/upgrading.html#access
– Saphal Jha
Jun 12 at 4:56
i don't understand this document...............
– prabhakaran7
Jun 12 at 5:05
in log file: ::::: AH01797: client denied by server configuration: /home/bbppco/mg.project.co/vendor/saveprofile –
– prabhakaran7
Jun 12 at 4:55
in log file: ::::: AH01797: client denied by server configuration: /home/bbppco/mg.project.co/vendor/saveprofile –
– prabhakaran7
Jun 12 at 4:55
httpd.apache.org/docs/2.4/upgrading.html#access
– Saphal Jha
Jun 12 at 4:56
httpd.apache.org/docs/2.4/upgrading.html#access
– Saphal Jha
Jun 12 at 4:56
i don't understand this document...............
– prabhakaran7
Jun 12 at 5:05
i don't understand this document...............
– prabhakaran7
Jun 12 at 5:05
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f277934%2fmagento2-how-to-fix-error-not-showing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
see this magento.stackexchange.com/questions/85159/…
– Chirag Patel
Jun 11 at 8:44
You should first check whether your controller execute method getting called or not. You can put all code in comment and just check by printing something that method called or not. If called, try uncommenting code one by one so you can find the culprit. If method is not called then it might be issue with routes.xml file
– Khushbu
Jun 11 at 8:53
@prabhakaran7 check in app/bootstrap.php there you should uncomment ini_set('display_errors', 1);
– Ansar Husain
Jun 11 at 8:56
@Khushbu it's going to that page but when again i remove comment it's not working
– prabhakaran7
Jun 11 at 9:50
@prabhakaran7 you have to debug your code and find out which exact line of code is causing issue. you can share here that line so we can help
– Khushbu
Jun 11 at 10:03