Jump to content

Bank wire fatal error


Recommended Posts

commented the code as below out...dint help also. registered new customer--> problem same

 

 

1. In PrestaShop 1.4x, the method of ValidationOrder() in PaymentModule class has been modified to validate the secure key. The secure key is generated when customer is registered.

if ($secure_key !== false AND $secure_key != $cart->secure_key)

die(Tools::displayError());

 

From above code, you can see that if secure key passed to this method does not match the one saved in cart,then the Fatal Error will occur.

Link to comment
Share on other sites

This is the code on screen after i alteed defines.inc ( changed false into true)

define('_PS_MODE_DEV_', true);

 

Array

(

[0] => Array

(

[file] => /home/p39807/domains/creaonline.nl/public_html/prestashop/classes/ObjectModel.php

[line] => 407

[function] => displayError

[class] => ToolsCore

[type] => ::

[args] => Array

(

)

 

)

 

[1] => Array

(

[file] => /home/p39807/domains/creaonline.nl/public_html/prestashop/classes/Order.php

[line] => 193

[function] => validateFields

[class] => ObjectModelCore

[object] => Order Object

(

[id_address_delivery] => 12

[id_address_invoice] => 12

[id_cart] => 57

[id_currency] => 1

[id_lang] => 6

[id_customer] => 12

[id_carrier] => 21

[secure_key] =>

[payment] => Overschrijving

[module] => bankwire

[conversion_rate] => 1.000000

[recyclable] => 0

[gift] => 0

[gift_message] =>

[shipping_number] =>

[total_discounts] => 0

[total_paid] => 3,5

[total_paid_real] => 3,5

[total_products] => 1,26

[total_products_wt] => 1,5

[total_shipping] => 2

[carrier_tax_rate] => 0

[total_wrapping] => 0

[invoice_number] =>

[delivery_number] =>

[invoice_date] => 0000-00-00 00:00:00

[delivery_date] => 0000-00-00 00:00:00

[valid] =>

[date_add] => 2011-11-20 17:13:58

[date_upd] => 2011-11-20 17:13:58

[tables:protected] => Array

(

[0] => orders

)

 

[fieldsRequired:protected] => Array

(

[0] => conversion_rate

[1] => id_address_delivery

[2] => id_address_invoice

[3] => id_cart

[4] => id_currency

[5] => id_lang

[6] => id_customer

[7] => id_carrier

[8] => payment

[9] => total_paid

[10] => total_paid_real

[11] => total_products

[12] => total_products_wt

)

 

[fieldsValidate:protected] => Array

(

[id_address_delivery] => isUnsignedId

[id_address_invoice] => isUnsignedId

[id_cart] => isUnsignedId

[id_currency] => isUnsignedId

[id_lang] => isUnsignedId

[id_customer] => isUnsignedId

[id_carrier] => isUnsignedId

[secure_key] => isMd5

[payment] => isGenericName

[recyclable] => isBool

[gift] => isBool

[gift_message] => isMessage

[total_discounts] => isPrice

[total_paid] => isPrice

[total_paid_real] => isPrice

[total_products] => isPrice

[total_products_wt] => isPrice

[total_shipping] => isPrice

[carrier_tax_rate] => isFloat

[total_wrapping] => isPrice

[shipping_number] => isUrl

[conversion_rate] => isFloat

)

 

[webserviceParameters:protected] => Array

(

[objectMethods] => Array

(

[add] => addWs

)

 

[objectNodeName] => order

[objectsNodeName] => orders

[fields] => Array

(

[id_address_delivery] => Array

(

[xlink_resource] => addresses

)

 

[id_address_invoice] => Array

(

[xlink_resource] => addresses

)

 

[id_cart] => Array

(

[xlink_resource] => carts

)

 

[id_currency] => Array

(

[xlink_resource] => currencies

)

 

[id_lang] => Array

(

[xlink_resource] => languages

)

 

[id_customer] => Array

(

[xlink_resource] => customers

)

 

[id_carrier] => Array

(

[xlink_resource] => carriers

)

 

[module] => Array

(

[required] => 1

)

 

[invoice_number] => Array

(

)

 

[invoice_date] => Array

(

)

 

[delivery_number] => Array

(

)

 

[delivery_date] => Array

(

)

 

[valid] => Array

(

)

 

[current_state] => Array

(

[getter] => getCurrentState

[setter] => setCurrentState

[xlink_resource] => order_states

)

 

[date_add] => Array

(

)

 

[date_upd] => Array

(

)

 

)

 

[associations] => Array

(

[order_rows] => Array

(

[resource] => order_row

[setter] =>

[virtual_entity] => 1

[fields] => Array

(

[id] => Array

(

)

 

[product_id] => Array

(

[required] => 1

)

 

[product_attribute_id] => Array

(

[required] => 1

)

 

[product_quantity] => Array

(

[required] => 1

)

 

[product_name] => Array

(

[setter] =>

)

 

[product_price] => Array

(

[setter] =>

)

 

)

 

)

 

)

 

)

 

[table:protected] => orders

[identifier:protected] => id_order

[_taxCalculationMethod:protected] => 0

[id] =>

[fieldsSize:protected] => Array

(

)

 

[fieldsRequiredLang:protected] => Array

(

)

 

[fieldsSizeLang:protected] => Array

(

)

 

[fieldsValidateLang:protected] => Array

(

)

 

[image_dir:protected] =>

[image_format:protected] => jpg

)

 

[type] => ->

[args] => Array

(

)

 

)

 

[2] => Array

(

[file] => /home/p39807/domains/creaonline.nl/public_html/prestashop/classes/ObjectModel.php

[line] => 202

[function] => getFields

[class] => OrderCore

[object] => Order Object

(

[id_address_delivery] => 12

[id_address_invoice] => 12

[id_cart] => 57

[id_currency] => 1

[id_lang] => 6

[id_customer] => 12

[id_carrier] => 21

[secure_key] =>

[payment] => Overschrijving

[module] => bankwire

[conversion_rate] => 1.000000

[recyclable] => 0

[gift] => 0

[gift_message] =>

[shipping_number] =>

[total_discounts] => 0

[total_paid] => 3,5

[total_paid_real] => 3,5

[total_products] => 1,26

[total_products_wt] => 1,5

[total_shipping] => 2

[carrier_tax_rate] => 0

[total_wrapping] => 0

[invoice_number] =>

[delivery_number] =>

[invoice_date] => 0000-00-00 00:00:00

[delivery_date] => 0000-00-00 00:00:00

[valid] =>

[date_add] => 2011-11-20 17:13:58

[date_upd] => 2011-11-20 17:13:58

[tables:protected] => Array

(

[0] => orders

)

 

[fieldsRequired:protected] => Array

(

[0] => conversion_rate

[1] => id_address_delivery

[2] => id_address_invoice

[3] => id_cart

[4] => id_currency

[5] => id_lang

[6] => id_customer

[7] => id_carrier

[8] => payment

[9] => total_paid

[10] => total_paid_real

[11] => total_products

[12] => total_products_wt

)

 

[fieldsValidate:protected] => Array

(

[id_address_delivery] => isUnsignedId

[id_address_invoice] => isUnsignedId

[id_cart] => isUnsignedId

[id_currency] => isUnsignedId

[id_lang] => isUnsignedId

[id_customer] => isUnsignedId

[id_carrier] => isUnsignedId

[secure_key] => isMd5

[payment] => isGenericName

[recyclable] => isBool

[gift] => isBool

[gift_message] => isMessage

[total_discounts] => isPrice

[total_paid] => isPrice

[total_paid_real] => isPrice

[total_products] => isPrice

[total_products_wt] => isPrice

[total_shipping] => isPrice

[carrier_tax_rate] => isFloat

[total_wrapping] => isPrice

[shipping_number] => isUrl

[conversion_rate] => isFloat

)

 

[webserviceParameters:protected] => Array

(

[objectMethods] => Array

(

[add] => addWs

)

 

[objectNodeName] => order

[objectsNodeName] => orders

[fields] => Array

(

[id_address_delivery] => Array

(

[xlink_resource] => addresses

)

 

[id_address_invoice] => Array

(

[xlink_resource] => addresses

)

 

[id_cart] => Array

(

[xlink_resource] => carts

)

 

[id_currency] => Array

(

[xlink_resource] => currencies

)

 

[id_lang] => Array

(

[xlink_resource] => languages

)

 

[id_customer] => Array

(

[xlink_resource] => customers

)

 

[id_carrier] => Array

(

[xlink_resource] => carriers

)

 

[module] => Array

(

[required] => 1

)

 

[invoice_number] => Array

(

)

 

[invoice_date] => Array

(

)

 

[delivery_number] => Array

(

)

 

[delivery_date] => Array

(

)

 

[valid] => Array

(

)

 

[current_state] => Array

(

[getter] => getCurrentState

[setter] => setCurrentState

[xlink_resource] => order_states

)

 

[date_add] => Array

(

)

 

[date_upd] => Array

(

)

 

)

 

[associations] => Array

(

[order_rows] => Array

(

[resource] => order_row

[setter] =>

[virtual_entity] => 1

[fields] => Array

(

[id] => Array

(

)

 

[product_id] => Array

(

[required] => 1

)

 

[product_attribute_id] => Array

(

[required] => 1

)

 

[product_quantity] => Array

(

[required] => 1

)

 

[product_name] => Array

(

[setter] =>

)

 

[product_price] => Array

(

[setter] =>

)

 

)

 

)

 

)

 

)

 

[table:protected] => orders

[identifier:protected] => id_order

[_taxCalculationMethod:protected] => 0

[id] =>

[fieldsSize:protected] => Array

(

)

 

[fieldsRequiredLang:protected] => Array

(

)

 

[fieldsSizeLang:protected] => Array

(

)

 

[fieldsValidateLang:protected] => Array

(

)

 

[image_dir:protected] =>

[image_format:protected] => jpg

)

 

[type] => ->

[args] => Array

(

)

 

)

 

[3] => Array

(

[file] => /home/p39807/domains/creaonline.nl/public_html/prestashop/classes/PaymentModule.php

[line] => 141

[function] => add

[class] => ObjectModelCore

[object] => Order Object

(

[id_address_delivery] => 12

[id_address_invoice] => 12

[id_cart] => 57

[id_currency] => 1

[id_lang] => 6

[id_customer] => 12

[id_carrier] => 21

[secure_key] =>

[payment] => Overschrijving

[module] => bankwire

[conversion_rate] => 1.000000

[recyclable] => 0

[gift] => 0

[gift_message] =>

[shipping_number] =>

[total_discounts] => 0

[total_paid] => 3,5

[total_paid_real] => 3,5

[total_products] => 1,26

[total_products_wt] => 1,5

[total_shipping] => 2

[carrier_tax_rate] => 0

[total_wrapping] => 0

[invoice_number] =>

[delivery_number] =>

[invoice_date] => 0000-00-00 00:00:00

[delivery_date] => 0000-00-00 00:00:00

[valid] =>

[date_add] => 2011-11-20 17:13:58

[date_upd] => 2011-11-20 17:13:58

[tables:protected] => Array

(

[0] => orders

)

 

[fieldsRequired:protected] => Array

(

[0] => conversion_rate

[1] => id_address_delivery

[2] => id_address_invoice

[3] => id_cart

[4] => id_currency

[5] => id_lang

[6] => id_customer

[7] => id_carrier

[8] => payment

[9] => total_paid

[10] => total_paid_real

[11] => total_products

[12] => total_products_wt

)

 

[fieldsValidate:protected] => Array

(

[id_address_delivery] => isUnsignedId

[id_address_invoice] => isUnsignedId

[id_cart] => isUnsignedId

[id_currency] => isUnsignedId

[id_lang] => isUnsignedId

[id_customer] => isUnsignedId

[id_carrier] => isUnsignedId

[secure_key] => isMd5

[payment] => isGenericName

[recyclable] => isBool

[gift] => isBool

[gift_message] => isMessage

[total_discounts] => isPrice

[total_paid] => isPrice

[total_paid_real] => isPrice

[total_products] => isPrice

[total_products_wt] => isPrice

[total_shipping] => isPrice

[carrier_tax_rate] => isFloat

[total_wrapping] => isPrice

[shipping_number] => isUrl

[conversion_rate] => isFloat

)

 

[webserviceParameters:protected] => Array

(

[objectMethods] => Array

(

[add] => addWs

)

 

[objectNodeName] => order

[objectsNodeName] => orders

[fields] => Array

(

[id_address_delivery] => Array

(

[xlink_resource] => addresses

)

 

[id_address_invoice] => Array

(

[xlink_resource] => addresses

)

 

[id_cart] => Array

(

[xlink_resource] => carts

)

 

[id_currency] => Array

(

[xlink_resource] => currencies

)

 

[id_lang] => Array

(

[xlink_resource] => languages

)

 

[id_customer] => Array

(

[xlink_resource] => customers

)

 

[id_carrier] => Array

(

[xlink_resource] => carriers

)

 

[module] => Array

(

[required] => 1

)

 

[invoice_number] => Array

(

)

 

[invoice_date] => Array

(

)

 

[delivery_number] => Array

(

)

 

[delivery_date] => Array

(

)

 

[valid] => Array

(

)

 

[current_state] => Array

(

[getter] => getCurrentState

[setter] => setCurrentState

[xlink_resource] => order_states

)

 

[date_add] => Array

(

)

 

[date_upd] => Array

(

)

 

)

 

[associations] => Array

(

[order_rows] => Array

(

[resource] => order_row

[setter] =>

[virtual_entity] => 1

[fields] => Array

(

[id] => Array

(

)

 

[product_id] => Array

(

[required] => 1

)

 

[product_attribute_id] => Array

(

[required] => 1

)

 

[product_quantity] => Array

(

[required] => 1

)

 

[product_name] => Array

(

[setter] =>

)

 

[product_price] => Array

(

[setter] =>

)

 

)

 

)

 

)

 

)

 

[table:protected] => orders

[identifier:protected] => id_order

[_taxCalculationMethod:protected] => 0

[id] =>

[fieldsSize:protected] => Array

(

)

 

[fieldsRequiredLang:protected] => Array

(

)

 

[fieldsSizeLang:protected] => Array

(

)

 

[fieldsValidateLang:protected] => Array

(

)

 

[image_dir:protected] =>

[image_format:protected] => jpg

)

 

[type] => ->

[args] => Array

(

)

 

)

 

[4] => Array

(

[file] => /home/p39807/domains/creaonline.nl/public_html/prestashop/modules/bankwire/validation.php

[line] => 61

[function] => validateOrder

[class] => PaymentModuleCore

[object] => BankWire Object

(

[_html:BankWire:private] =>

[_postErrors:BankWire:private] => Array

(

)

 

[details] => Rekening nummer: 9519935

[owner] => MJM Verhoeven

[address] => ING

[currentOrder] =>

[currencies] => 1

[currencies_mode] => checkbox

[id] => 141

[version] => 0.5

[name] => bankwire

[displayName] => Overschrijving

[description] => Accept payments by bank wire.

[author] => PrestaShop

[need_instance] => 1

[tab] => payments_gateways

[active] => 1

[_lang:protected] => Array

(

)

 

[_path:protected] => /prestashop/modules/bankwire/

[warning] =>

[beforeUninstall] =>

[_errors:protected] =>

[table:protected] => module

[identifier:protected] => id_module

[limited_countries] => Array

(

)

 

[confirmUninstall] => Weet u zeker dat u uw gegevens wilt verwijderen ?

)

 

[type] => ->

[args] => Array

(

[0] => 57

[1] => 10

[2] => 3,5

[3] => Overschrijving

[4] =>

[5] => Array

(

[{bankwire_owner}] => MJM Verhoeven

[{bankwire_details}] => Rekening nummer: 9519935

[{bankwire_address}] => ING

)

 

[6] => 1

[7] =>

[8] =>

)

 

)

 

)

 

(Order -> total_paid = 3,5)

Link to comment
Share on other sites

  • 3 months later...

Please look :

 

Array

(

[0] => Array

(

[file] => /home/benignus/public_html/uau.bg/classes/ObjectModel.php

[line] => 381

[function] => displayError

[class] => ToolsCore

[type] => ::

[args] => Array

(

)

 

)

 

[1] => Array

(

[file] => /home/benignus/public_html/uau.bg/classes/Order.php

[line] => 194

[function] => validateFields

[class] => ObjectModelCore

[object] => Order Object

(

[id_address_delivery] => 160

[id_address_invoice] => 160

[id_cart] => 1721

[id_currency] => 4

[id_lang] => 6

[id_customer] => 151

[id_carrier] => 13

[secure_key] => 1bce39d3fa31f2252840f5cea19ac664

[payment] => Заплащане при доставка

[module] => cashondelivery

[conversion_rate] => 1.000000

[recyclable] => 0

[gift] => 0

[gift_message] =>

[shipping_number] =>

[total_discounts] => 0

[total_paid] => 6,6

[total_paid_real] => 6,6

[total_products] => 0,6

[total_products_wt] => 0,6

[total_shipping] => 6

[carrier_tax_rate] => 0

[total_wrapping] => 0

[invoice_number] =>

[delivery_number] =>

[invoice_date] => 0000-00-00 00:00:00

[delivery_date] => 0000-00-00 00:00:00

[valid] =>

[date_add] => 2012-03-04 16:20:34

[date_upd] => 2012-03-04 16:20:34

[tables:protected] => Array

(

[0] => orders

)

 

[fieldsRequired:protected] => Array

(

[0] => conversion_rate

[1] => id_address_delivery

[2] => id_address_invoice

[3] => id_cart

[4] => id_currency

[5] => id_lang

[6] => id_customer

[7] => id_carrier

[8] => payment

[9] => total_paid

[10] => total_paid_real

[11] => total_products

[12] => total_products_wt

)

 

[fieldsSize:protected] => Array

(

[payment] => 32

)

 

[fieldsValidate:protected] => Array

(

[id_address_delivery] => isUnsignedId

[id_address_invoice] => isUnsignedId

[id_cart] => isUnsignedId

[id_currency] => isUnsignedId

[id_lang] => isUnsignedId

[id_customer] => isUnsignedId

[id_carrier] => isUnsignedId

[secure_key] => isMd5

[payment] => isGenericName

[recyclable] => isBool

[gift] => isBool

[gift_message] => isMessage

[total_discounts] => isPrice

[total_paid] => isPrice

[total_paid_real] => isPrice

[total_products] => isPrice

[total_products_wt] => isPrice

[total_shipping] => isPrice

[carrier_tax_rate] => isFloat

[total_wrapping] => isPrice

[shipping_number] => isUrl

[conversion_rate] => isFloat

)

 

[webserviceParameters:protected] => Array

(

[objectMethods] => Array

(

[add] => addWs

)

 

[objectNodeName] => order

[objectsNodeName] => orders

[fields] => Array

(

[id_address_delivery] => Array

(

[xlink_resource] => addresses

)

 

[id_address_invoice] => Array

(

[xlink_resource] => addresses

)

 

[id_cart] => Array

(

[xlink_resource] => carts

)

 

[id_currency] => Array

(

[xlink_resource] => currencies

)

 

[id_lang] => Array

(

[xlink_resource] => languages

)

 

[id_customer] => Array

(

[xlink_resource] => customers

)

 

[id_carrier] => Array

(

[xlink_resource] => carriers

)

 

[module] => Array

(

)

 

[invoice_number] => Array

(

)

 

[delivery_number] => Array

(

)

 

[invoice_date] => Array

(

)

 

[delivery_date] => Array

(

)

 

[valid] => Array

(

)

 

[current_state] => Array

(

[getter] => getCurrentState

[setter] => setCurrentState

[xlink_resource] => order_states

)

 

[date_add] => Array

(

)

 

[date_upd] => Array

(

)

 

)

 

[associations] => Array

(

[order_rows] => Array

(

[resource] => order_row

[setter] =>

[fields] => Array

(

[id] => Array

(

)

 

[product_id] => Array

(

[required] => 1

)

 

[product_attribute_id] => Array

(

[required] => 1

)

 

[product_quantity] => Array

(

[required] => 1

)

 

[product_name] => Array

(

[setter] =>

)

 

[product_price] => Array

(

[setter] =>

)

 

)

 

)

 

)

 

)

 

[table:protected] => orders

[identifier:protected] => id_order

[_taxCalculationMethod:protected] => 0

[id] =>

[fieldsRequiredLang:protected] => Array

(

)

 

[fieldsSizeLang:protected] => Array

(

)

 

[fieldsValidateLang:protected] => Array

(

)

 

)

 

[type] => ->

[args] => Array

(

)

 

)

 

[2] => Array

(

[file] => /home/benignus/public_html/uau.bg/classes/ObjectModel.php

[line] => 183

[function] => getFields

[class] => OrderCore

[object] => Order Object

(

[id_address_delivery] => 160

[id_address_invoice] => 160

[id_cart] => 1721

[id_currency] => 4

[id_lang] => 6

[id_customer] => 151

[id_carrier] => 13

[secure_key] => 1bce39d3fa31f2252840f5cea19ac664

[payment] => Заплащане при доставка

[module] => cashondelivery

[conversion_rate] => 1.000000

[recyclable] => 0

[gift] => 0

[gift_message] =>

[shipping_number] =>

[total_discounts] => 0

[total_paid] => 6,6

[total_paid_real] => 6,6

[total_products] => 0,6

[total_products_wt] => 0,6

[total_shipping] => 6

[carrier_tax_rate] => 0

[total_wrapping] => 0

[invoice_number] =>

[delivery_number] =>

[invoice_date] => 0000-00-00 00:00:00

[delivery_date] => 0000-00-00 00:00:00

[valid] =>

[date_add] => 2012-03-04 16:20:34

[date_upd] => 2012-03-04 16:20:34

[tables:protected] => Array

(

[0] => orders

)

 

[fieldsRequired:protected] => Array

(

[0] => conversion_rate

[1] => id_address_delivery

[2] => id_address_invoice

[3] => id_cart

[4] => id_currency

[5] => id_lang

[6] => id_customer

[7] => id_carrier

[8] => payment

[9] => total_paid

[10] => total_paid_real

[11] => total_products

[12] => total_products_wt

)

 

[fieldsSize:protected] => Array

(

[payment] => 32

)

 

[fieldsValidate:protected] => Array

(

[id_address_delivery] => isUnsignedId

[id_address_invoice] => isUnsignedId

[id_cart] => isUnsignedId

[id_currency] => isUnsignedId

[id_lang] => isUnsignedId

[id_customer] => isUnsignedId

[id_carrier] => isUnsignedId

[secure_key] => isMd5

[payment] => isGenericName

[recyclable] => isBool

[gift] => isBool

[gift_message] => isMessage

[total_discounts] => isPrice

[total_paid] => isPrice

[total_paid_real] => isPrice

[total_products] => isPrice

[total_products_wt] => isPrice

[total_shipping] => isPrice

[carrier_tax_rate] => isFloat

[total_wrapping] => isPrice

[shipping_number] => isUrl

[conversion_rate] => isFloat

)

 

[webserviceParameters:protected] => Array

(

[objectMethods] => Array

(

[add] => addWs

)

 

[objectNodeName] => order

[objectsNodeName] => orders

[fields] => Array

(

[id_address_delivery] => Array

(

[xlink_resource] => addresses

)

 

[id_address_invoice] => Array

(

[xlink_resource] => addresses

)

 

[id_cart] => Array

(

[xlink_resource] => carts

)

 

[id_currency] => Array

(

[xlink_resource] => currencies

)

 

[id_lang] => Array

(

[xlink_resource] => languages

)

 

[id_customer] => Array

(

[xlink_resource] => customers

)

 

[id_carrier] => Array

(

[xlink_resource] => carriers

)

 

[module] => Array

(

)

 

[invoice_number] => Array

(

)

 

[delivery_number] => Array

(

)

 

[invoice_date] => Array

(

)

 

[delivery_date] => Array

(

)

 

[valid] => Array

(

)

 

[current_state] => Array

(

[getter] => getCurrentState

[setter] => setCurrentState

[xlink_resource] => order_states

)

 

[date_add] => Array

(

)

 

[date_upd] => Array

(

)

 

)

 

[associations] => Array

(

[order_rows] => Array

(

[resource] => order_row

[setter] =>

[fields] => Array

(

[id] => Array

(

)

 

[product_id] => Array

(

[required] => 1

)

 

[product_attribute_id] => Array

(

[required] => 1

)

 

[product_quantity] => Array

(

[required] => 1

)

 

[product_name] => Array

(

[setter] =>

)

 

[product_price] => Array

(

[setter] =>

)

 

)

 

)

 

)

 

)

 

[table:protected] => orders

[identifier:protected] => id_order

[_taxCalculationMethod:protected] => 0

[id] =>

[fieldsRequiredLang:protected] => Array

(

)

 

[fieldsSizeLang:protected] => Array

(

)

 

[fieldsValidateLang:protected] => Array

(

)

 

)

 

[type] => ->

[args] => Array

(

)

 

)

 

[3] => Array

(

[file] => /home/benignus/public_html/uau.bg/classes/PaymentModule.php

[line] => 139

[function] => add

[class] => ObjectModelCore

[object] => Order Object

(

[id_address_delivery] => 160

[id_address_invoice] => 160

[id_cart] => 1721

[id_currency] => 4

[id_lang] => 6

[id_customer] => 151

[id_carrier] => 13

[secure_key] => 1bce39d3fa31f2252840f5cea19ac664

[payment] => Заплащане при доставка

[module] => cashondelivery

[conversion_rate] => 1.000000

[recyclable] => 0

[gift] => 0

[gift_message] =>

[shipping_number] =>

[total_discounts] => 0

[total_paid] => 6,6

[total_paid_real] => 6,6

[total_products] => 0,6

[total_products_wt] => 0,6

[total_shipping] => 6

[carrier_tax_rate] => 0

[total_wrapping] => 0

[invoice_number] =>

[delivery_number] =>

[invoice_date] => 0000-00-00 00:00:00

[delivery_date] => 0000-00-00 00:00:00

[valid] =>

[date_add] => 2012-03-04 16:20:34

[date_upd] => 2012-03-04 16:20:34

[tables:protected] => Array

(

[0] => orders

)

 

[fieldsRequired:protected] => Array

(

[0] => conversion_rate

[1] => id_address_delivery

[2] => id_address_invoice

[3] => id_cart

[4] => id_currency

[5] => id_lang

[6] => id_customer

[7] => id_carrier

[8] => payment

[9] => total_paid

[10] => total_paid_real

[11] => total_products

[12] => total_products_wt

)

 

[fieldsSize:protected] => Array

(

[payment] => 32

)

 

[fieldsValidate:protected] => Array

(

[id_address_delivery] => isUnsignedId

[id_address_invoice] => isUnsignedId

[id_cart] => isUnsignedId

[id_currency] => isUnsignedId

[id_lang] => isUnsignedId

[id_customer] => isUnsignedId

[id_carrier] => isUnsignedId

[secure_key] => isMd5

[payment] => isGenericName

[recyclable] => isBool

[gift] => isBool

[gift_message] => isMessage

[total_discounts] => isPrice

[total_paid] => isPrice

[total_paid_real] => isPrice

[total_products] => isPrice

[total_products_wt] => isPrice

[total_shipping] => isPrice

[carrier_tax_rate] => isFloat

[total_wrapping] => isPrice

[shipping_number] => isUrl

[conversion_rate] => isFloat

)

 

[webserviceParameters:protected] => Array

(

[objectMethods] => Array

(

[add] => addWs

)

 

[objectNodeName] => order

[objectsNodeName] => orders

[fields] => Array

(

[id_address_delivery] => Array

(

[xlink_resource] => addresses

)

 

[id_address_invoice] => Array

(

[xlink_resource] => addresses

)

 

[id_cart] => Array

(

[xlink_resource] => carts

)

 

[id_currency] => Array

(

[xlink_resource] => currencies

)

 

[id_lang] => Array

(

[xlink_resource] => languages

)

 

[id_customer] => Array

(

[xlink_resource] => customers

)

 

[id_carrier] => Array

(

[xlink_resource] => carriers

)

 

[module] => Array

(

)

 

[invoice_number] => Array

(

)

 

[delivery_number] => Array

(

)

 

[invoice_date] => Array

(

)

 

[delivery_date] => Array

(

)

 

[valid] => Array

(

)

 

[current_state] => Array

(

[getter] => getCurrentState

[setter] => setCurrentState

[xlink_resource] => order_states

)

 

[date_add] => Array

(

)

 

[date_upd] => Array

(

)

 

)

 

[associations] => Array

(

[order_rows] => Array

(

[resource] => order_row

[setter] =>

[fields] => Array

(

[id] => Array

(

)

 

[product_id] => Array

(

[required] => 1

)

 

[product_attribute_id] => Array

(

[required] => 1

)

 

[product_quantity] => Array

(

[required] => 1

)

 

[product_name] => Array

(

[setter] =>

)

 

[product_price] => Array

(

[setter] =>

)

 

)

 

)

 

)

 

)

 

[table:protected] => orders

[identifier:protected] => id_order

[_taxCalculationMethod:protected] => 0

[id] =>

[fieldsRequiredLang:protected] => Array

(

)

 

[fieldsSizeLang:protected] => Array

(

)

 

[fieldsValidateLang:protected] => Array

(

)

 

)

 

[type] => ->

[args] => Array

(

)

 

)

 

[4] => Array

(

[file] => /home/benignus/public_html/uau.bg/modules/cashondelivery/validation.php

[line] => 47

[function] => validateOrder

[class] => PaymentModuleCore

[object] => CashOnDelivery Object

(

[currentOrder] =>

[currencies] =>

[currencies_mode] => checkbox

[id] => 94

[version] => 0.3

[name] => cashondelivery

[displayName] => Заплащане при доставка

[description] => Приемане на заплащания при доставка

[author] => PrestaShop

[tab] => payments_gateways

[active] => 1

[_lang:protected] => Array

(

)

 

[_path:protected] => /modules/cashondelivery/

[warning] =>

[beforeUninstall] =>

[_errors] =>

[table:protected] => module

[identifier:protected] => id_module

)

 

[type] => ->

[args] => Array

(

[0] => 1721

[1] => 3

[2] => 6,6

[3] => Заплащане при доставка

[4] =>

[5] => Array

(

)

 

[6] =>

[7] =>

[8] => 1bce39d3fa31f2252840f5cea19ac664

)

 

)

 

)

 

(Order -> total_paid = 6,6)

Link to comment
Share on other sites

It looks like the problem is due to , in the price, that is not a valid price and is causing the error you see (it fails the isPrice validation).

 

Did you modify the module? make sure the numbers are in the correct format (only 0-9 and .)

Link to comment
Share on other sites

It looks like the problem is due to , in the price, that is not a valid price and is causing the error you see (it fails the isPrice validation).

 

Did you modify the module? make sure the numbers are in the correct format (only 0-9 and .)

 

 

I don`t change the module ( i hope ), i don`t know for wich module we speak, please tell me and i can download basic module and trial again.

Link to comment
Share on other sites

Whichever module you use that produces this error is the problem.

Contact the developer and ask him to look into it...

 

I am developer..and i really don`t know what i need to do, .. i upload the basic payment by delivery but the problem is same!

The problem is different

Link to comment
Share on other sites

I am developer..and i really don`t know what i need to do, .. i upload the basic payment by delivery but the problem is same! The problem is different

wait, is the problem the same, or different? it can't be both.

 

this topic was opened for the bank wire module. you are asking about a different module, and you haven't even provided the error you are having.

 

Please open a separate topic and post the specific details about

1) the version of prestashop you are using

2) the exact name of the module causing the problem. if it is a third party module, go talk to the author of the module.

3) what error message you are getting. talk to your host about the location of the php error log.

Link to comment
Share on other sites

wait, is the problem the same, or different? it can't be both.

 

this topic was opened for the bank wire module. you are asking about a different module, and you haven't even provided the error you are having.

 

Please open a separate topic and post the specific details about

1) the version of prestashop you are using

2) the exact name of the module causing the problem. if it is a third party module, go talk to the author of the module.

3) what error message you are getting. talk to your host about the location of the php error log.

 

 

It`s same problem.

I say is different, becouse the problem is not module.

 

I had absolute same problem like : "verhoej" And that's why I write here.

 

I have : PrestaShop™ 1.4.0.17

The problem is at the last step of paying with delivery i get a fatal error in shop - > Fatal error (Order -> total_paid = 10,45)

 

This Order Fatal error is same with paying with bankwire module !!!

 

This Order Fatal error is same with 1.4.5.1

 

I don`t getting error message, i check my error log.

Link to comment
Share on other sites

I conducted various tests and saw the following things!

Where there are different products in the cart, the ERROR appears. No matter the amount.

However, when the item is only one and the amount is bigger than 90 - the order was successfully done.

If I add another item of the same model - accepted it. But if I add other different items - not accepted it.

I did a lot of tests, I think the problem is not in a module. I think the problem somewhere is in the orders file. Somehow the calculation is problematic.

Please help if you have an idea where to get this.

Link to comment
Share on other sites

I posted the reason for the problem, and what you should do to fix, please read my original answer carefully.

It has nothing to do with bankwire, it is the way the price is being passed, and would affect any payment module that is doing it the same way.

Link to comment
Share on other sites

  • 2 months later...

Hi all,

 

I read all the messages and unfortunately still have the same issue.

 

Seems like it's an sql error where the point is replaced by a coma.

 

I checked the price format. The decimal separator is a point and not a coma. Anyway, if I put a coma, it is automatically updated into a point in Back office.

 

Can't find the solution. I really need your help !! thanks in advance for your replies.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...