Hello,
have you upgraded Magento?
if yes then maybe old address does not contain some filed,
please add a new address and check it
Hi Sunil
Thanks for the replay. i didn't upgraded.before two days it was working good.
Hello,
error come from src/vendor/magento/module-checkout/Model/ShippingInformationManagement.php so you can add debug that where is issue
sir this code i can see in ShippingInformationManagement.php
how to debug that
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Checkout\Model;
use Magento\Framework\Model\AbstractExtensibleModel;
use Magento\Checkout\Api\Data\ShippingInformationInterface;
/**
* @codeCoverageIgnoreStart
*/
class ShippingInformation extends AbstractExtensibleModel implements ShippingInformationInterface
{
/**
* {@inheritdoc}
*/
public function getShippingAddress()
{
return $this->getData(self:HIPPING_ADDRESS);
}
Hello @anandbc
src/vendor/magento/module-checkout/Model/ShippingInformationManagement.php
you see the wrong file
also it is adding into log as well so you can check log as well
Is this correct sir
/var/www/html/ffsecom/vendor/magento/module-checkout/Model$ vi ShippingInformationManagement.php
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Checkout\Model;
use Magento\Framework\Exception\InputException;
use Magento\Framework\Exception\StateException;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Quote\Api\Data\AddressInterface;
use Magento\Quote\Api\Data\CartInterface;
use Psr\Log\LoggerInterface as Logger;
use Magento\Quote\Model\QuoteAddressValidator;
use Magento\Quote\Api\Data\CartExtensionFactory;
use Magento\Quote\Model\ShippingAssignmentFactory;
use Magento\Quote\Model\ShippingFactory;
use Magento\Framework\App\ObjectManager;
/**
* Class ShippingInformationManagement
*
* @package Magento\Checkout\Model
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class ShippingInformationManagement implements \Magento\Checkout\Api\ShippingInformationManagementInterface
{
/**
* @var \Magento\Quote\Api\PaymentMethodManagementInterface
*/
protected $paymentMethodManagement;
/**
* @var PaymentDetailsFactory
*/
protected $paymentDetailsFactory;
/**
* @var \Magento\Quote\Api\CartTotalRepositoryInterface
*/
protected $cartTotalsRepository;