Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: A non-numeric value encountered (quando add_prazo é nulo na config) #436

Open
r-martins opened this issue Jul 16, 2019 · 0 comments · May be fixed by #438
Open

Warning: A non-numeric value encountered (quando add_prazo é nulo na config) #436

r-martins opened this issue Jul 16, 2019 · 0 comments · May be fixed by #438

Comments

@r-martins
Copy link

r-martins commented Jul 16, 2019

Se o add_prazo não estiver preenchido nas configs do módulo, teremos algo como:

Warning: A non-numeric value encountered in ...//app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php on line 386

#0 ...//app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php(386): mageCoreErrorHandler(2, 'A non-numeric v...', '/Users/martins/...', 386, Array)
#1 ...//app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php(196): PedroTeixeira_Correios_Model_Carrier_CorreiosMethod->_appendShippingReturn(Object(SimpleXMLElement))
#2 ...//app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php(121): PedroTeixeira_Correios_Model_Carrier_CorreiosMethod->_getQuotes()
#3 ...//app/code/core/Mage/Shipping/Model/Shipping.php(209): PedroTeixeira_Correios_Model_Carrier_CorreiosMethod->collectRates(Object(Mage_Shipping_Model_Rate_Request))
#4 ...//app/code/core/Mage/Shipping/Model/Shipping.php(129): Mage_Shipping_Model_Shipping->collectCarrierRates('pedroteixeira_c...', Object(Mage_Shipping_Model_Rate_Request))
#5 ...//app/code/core/Mage/Sales/Model/Quote/Address.php(944): Mage_Shipping_Model_Shipping->collectRates(Object(Mage_Shipping_Model_Rate_Request))
#6 ...//app/code/core/Mage/Sales/Model/Quote/Address.php(875): Mage_Sales_Model_Quote_Address->requestShippingRates()
#7 ...//app/code/core/Mage/Sales/Model/Quote/Address/Total/Shipping.php(155): Mage_Sales_Model_Quote_Address->collectShippingRates()
#8 ...//app/code/core/Mage/Sales/Model/Quote/Address.php(1013): Mage_Sales_Model_Quote_Address_Total_Shipping->collect(Object(Mage_Sales_Model_Quote_Address))
#9 ...//app/code/core/Mage/Sales/Model/Quote.php(1331): Mage_Sales_Model_Quote_Address->collectTotals()
#10 ...//app/code/core/Mage/Checkout/Model/Cart.php(461): Mage_Sales_Model_Quote->collectTotals()
#11 ...//app/code/core/Mage/Checkout/controllers/CartController.php(162): Mage_Checkout_Model_Cart->save()
#12 ...//app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_CartController->indexAction()
#13 ...//app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#14 ...//app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#15 ...//app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#16 ...//app/Mage.php(686): Mage_Core_Model_App->run(Array)
#17 ...//index.php(83): Mage::run('', 'store')
#18 {main}

image

r-martins added a commit to r-martins/correios that referenced this issue Jul 16, 2019
Evita que a pessoa apague o add_prazo ocasionando erro (pedro-teixeira#436)
r-martins added a commit to r-martins/correios that referenced this issue Jul 16, 2019
Evita que a mensagem de erro ocorra quando o add_prazo for nulo, convertendo o número em inteiro
@r-martins r-martins linked a pull request Jul 16, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant