Jump to content

Backoffice warning on orders after changing shop to another host and domain


Pr0wleR

Recommended Posts

Hi.

I've configured a 1.7.2 shop on a test host and now I moved it to another host and domain.

Copied the files, Database and uploaded them into new host. Configured the file to link to the new database.

Everything is working but when I turn the debug mode on, I get several warnings when I click an order.

Ex:

Warning na linha 2748 do ficheiro /home/z02u12to/public_html/app/cache/dev/smarty/compile/b9/5e/8d/b95e8d4dcbcc9b7475fa728a8a0493a8289ca958.file.view.tpl.php
[2] A non-numeric value encountered

 

Also, when I'm shopping, I get this error after adding something to the cart:

ContextErrorException in CartPresenter.php line 84: Notice: Undefined offset: 1

  1. in CartPresenter.php line 84
  2. at ErrorHandler->handleError('8', 'Undefined offset: 1', '/home/z02u12to/public_html/src/Adapter/Cart/CartPresenter.php', '84', array('rawProduct' => array('id_product_attribute' => '10394', 'id_product' => '91', 'cart_quantity' => '1', 'id_shop' => '1', 'id_customization' => null, 'name' => 'PortEco Z100 - Módulo Seguinte', 'is_virtual' => '0', 'description_short' => '<p><strong>ESTANTES INDUSTRIAIS POLIVALENTES PARA CARGAS PESADAS E VOLUMOSAS.</strong></p><br /><p><strong><span style="color:#000000;">Até 800Kg por nível</span>.</strong></p><br /><p><strong>Cores</strong></p><br /><p>Pilares e suportes de fixação: Azul RAL 5005</p><br /><p>Espaçadores e longarinas: cinza RAL 7035</p><br /><p><strong>GARANTIA: 5 anos.</strong></p>', 'available_now' => '', 'available_later' => '', 'id_category_default' => '43', 'id_supplier' => '0', 'id_manufacturer' => '2', 'manufacturer_name' => 'Evoracks', 'on_sale' => '0', 'ecotax' => '0.000000', 'additional_shipping_cost' => '0.00', 'available_for_order' => '1', 'show_price' => '1', 'price' => '109.1', 'active' => '1', 'unity' => '', 'unit_price_ratio' => '0.000000', 'quantity_available' => '0', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'out_of_stock' => '2', 'weight' => '0', 'available_date' => '0000-00-00', 'date_add' => '2018-04-13 23:07:37', 'date_upd' => '2018-06-09 12:54:25', 'quantity' => '1', 'link_rewrite' => 'porteco-z100-modulo-seguinte', 'category' => 'carga-media', 'unique_id' => '0000000091000001039400', 'id_address_delivery' => '0', 'advanced_stock_management' => '0', 'supplier_reference' => null, 'customization_quantity' => null, 'price_attribute' => '109.100000', 'ecotax_attr' => '0.000000', 'reference' => '', 'weight_attribute' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'minimal_quantity' => '1', 'wholesale_price' => '0.000000', 'id_image' => '[spam-filter]194', 'legend' => '', 'reduction_type' => '0', 'is_gift' => false, 'reduction' => '0', 'price_without_reduction' => '134.193', 'specific_prices' => array(), 'stock_quantity' => '0', 'price_with_reduction' => '134.193', 'price_with_reduction_without_tax' => '109.1', 'total' => '109.1', 'total_wt' => '134.19', 'price_wt' => '134.193', 'reduction_applies' => false, 'quantity_discount_applies' => false, 'allow_oosp' => '1', 'features' => array(), 'attributes' => array('Níveis : 2', ' Bastidor (altura/profundidade) : 2000x500', ' Viga (comprimento) : 1500', ' Tampo (comprimento/profundidade) : Aglomerado ', ' 1500x500'), 'attributes_small' => '2- 2000x500- 1500- Aglomerado - 1500x500', 'rate' => '23', 'tax_name' => 'IVA PT 23%'), 'settings' => object(ProductPresentationSettings), 'attributesArray' => array('Níveis' => '2', 'Bastidor (altura/profundidade)' => '2000x500', 'Viga (comprimento)' => '1500', 'Tampo (comprimento/profundidade)' => 'Aglomerado '), 'attribute' => ' 1500x500', 'key' => ' 1500x500', 'value' => ' Aglomerado ')) in CartPresenter.php line 84
  3. at CartPresenter->presentProduct(array('id_product_attribute' => '10394', 'id_product' => '91', 'cart_quantity' => '1', 'id_shop' => '1', 'id_customization' => null, 'name' => 'PortEco Z100 - Módulo Seguinte', 'is_virtual' => '0', 'description_short' => '<p><strong>ESTANTES INDUSTRIAIS POLIVALENTES PARA CARGAS PESADAS E VOLUMOSAS.</strong></p><br /><p><strong><span style="color:#000000;">Até 800Kg por nível</span>.</strong></p><br /><p><strong>Cores</strong></p><br /><p>Pilares e suportes de fixação: Azul RAL 5005</p><br /><p>Espaçadores e longarinas: cinza RAL 7035</p><br /><p><strong>GARANTIA: 5 anos.</strong></p>', 'available_now' => '', 'available_later' => '', 'id_category_default' => '43', 'id_supplier' => '0', 'id_manufacturer' => '2', 'manufacturer_name' => 'Evoracks', 'on_sale' => '0', 'ecotax' => '0.000000', 'additional_shipping_cost' => '0.00', 'available_for_order' => '1', 'show_price' => '1', 'price' => '109.1', 'active' => '1', 'unity' => '', 'unit_price_ratio' => '0.000000', 'quantity_available' => '0', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'out_of_stock' => '2', 'weight' => '0', 'available_date' => '0000-00-00', 'date_add' => '2018-04-13 23:07:37', 'date_upd' => '2018-06-09 12:54:25', 'quantity' => '1', 'link_rewrite' => 'porteco-z100-modulo-seguinte', 'category' => 'carga-media', 'unique_id' => '0000000091000001039400', 'id_address_delivery' => '0', 'advanced_stock_management' => '0', 'supplier_reference' => null, 'customization_quantity' => null, 'price_attribute' => '109.100000', 'ecotax_attr' => '0.000000', 'reference' => '', 'weight_attribute' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'minimal_quantity' => '1', 'wholesale_price' => '0.000000', 'id_image' => '[spam-filter]194', 'legend' => '', 'reduction_type' => '0', 'is_gift' => false, 'reduction' => '0', 'price_without_reduction' => '134.193', 'specific_prices' => array(), 'stock_quantity' => '0', 'price_with_reduction' => '134.193', 'price_with_reduction_without_tax' => '109.1', 'total' => '109.1', 'total_wt' => '134.19', 'price_wt' => '134.193', 'reduction_applies' => false, 'quantity_discount_applies' => false, 'allow_oosp' => '1', 'features' => array(), 'attributes' => array('Níveis : 2', ' Bastidor (altura/profundidade) : 2000x500', ' Viga (comprimento) : 1500', ' Tampo (comprimento/profundidade) : Aglomerado ', ' 1500x500'), 'attributes_small' => '2- 2000x500- 1500- Aglomerado - 1500x500', 'rate' => '23', 'tax_name' => 'IVA PT 23%'))
  4. at array_map(array(object(CartPresenter), 'presentProduct'), array(array('id_product_attribute' => '10394', 'id_product' => '91', 'cart_quantity' => '1', 'id_shop' => '1', 'id_customization' => null, 'name' => 'PortEco Z100 - Módulo Seguinte', 'is_virtual' => '0', 'description_short' => '<p><strong>ESTANTES INDUSTRIAIS POLIVALENTES PARA CARGAS PESADAS E VOLUMOSAS.</strong></p><br /><p><strong><span style="color:#000000;">Até 800Kg por nível</span>.</strong></p><br /><p><strong>Cores</strong></p><br /><p>Pilares e suportes de fixação: Azul RAL 5005</p><br /><p>Espaçadores e longarinas: cinza RAL 7035</p><br /><p><strong>GARANTIA: 5 anos.</strong></p>', 'available_now' => '', 'available_later' => '', 'id_category_default' => '43', 'id_supplier' => '0', 'id_manufacturer' => '2', 'manufacturer_name' => 'Evoracks', 'on_sale' => '0', 'ecotax' => '0.000000', 'additional_shipping_cost' => '0.00', 'available_for_order' => '1', 'show_price' => '1', 'price' => '109.1', 'active' => '1', 'unity' => '', 'unit_price_ratio' => '0.000000', 'quantity_available' => '0', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'out_of_stock' => '2', 'weight' => '0', 'available_date' => '0000-00-00', 'date_add' => '2018-04-13 23:07:37', 'date_upd' => '2018-06-09 12:54:25', 'quantity' => '1', 'link_rewrite' => 'porteco-z100-modulo-seguinte', 'category' => 'carga-media', 'unique_id' => '0000000091000001039400', 'id_address_delivery' => '0', 'advanced_stock_management' => '0', 'supplier_reference' => null, 'customization_quantity' => null, 'price_attribute' => '109.100000', 'ecotax_attr' => '0.000000', 'reference' => '', 'weight_attribute' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'minimal_quantity' => '1', 'wholesale_price' => '0.000000', 'id_image' => '[spam-filter]194', 'legend' => '', 'reduction_type' => '0', 'is_gift' => false, 'reduction' => '0', 'price_without_reduction' => '134.193', 'specific_prices' => array(), 'stock_quantity' => '0', 'price_with_reduction' => '134.193', 'price_with_reduction_without_tax' => '109.1', 'total' => '109.1', 'total_wt' => '134.19', 'price_wt' => '134.193', 'reduction_applies' => false, 'quantity_discount_applies' => false, 'allow_oosp' => '1', 'features' => array(), 'attributes' => 'Níveis : 2- Bastidor (altura/profundidade) : 2000x500- Viga (comprimento) : 1500- Tampo (comprimento/profundidade) : Aglomerado - 1500x500', 'attributes_small' => '2- 2000x500- 1500- Aglomerado - 1500x500', 'rate' => '23', 'tax_name' => 'IVA PT 23%'))) in CartPresenter.php line 290
  5. at CartPresenter->present(object(Cart)) in FrontController.php line 500
  6. at FrontControllerCore->assignGeneralPurposeVariables() in FrontController.php line 536
  7. at FrontControllerCore->initContent() in AuthController.php line 89
  8. at AuthControllerCore->initContent() in Controller.php line 205
  9. at ControllerCore->run() in Dispatcher.php line 379
  10. at DispatcherCore->dispatch() in index.php line 28

 

 

Any ideas?

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...