Jump to content
  • 0

Nie działają płatności - błąd 500


piotr0

Question

Witam,

 

Mam problem dotyczący płatności, zarówno transferuj jak i bankwire przy wybraniu metody i próby jej przejścia dalej pojawia się błąd 500. W preście była wcześniej przenoszona cała baza, sprawdzałem bazę i ich ID odnośnie statusów płatności ale niby są te same. Chmody ustawiałem na 755 - to samo. 

 

Pomoże ktoś? Sprawa dość pilna! Mogę zapłacić 4pakiem w postaci przelewu za pomoc! :)

 

 

 

[PrestaShopDatabaseException]

 
Unknown column 'round_mode' in 'field list'
 
INSERT INTO `ps_orders` (`id_address_delivery`, `id_address_invoice`, `id_cart`, `id_currency`, `id_shop_group`, `id_shop`, `id_lang`, `id_customer`, `id_carrier`, `current_state`, `secure_key`, `payment`, `module`, `recyclable`, `gift`, `gift_message`, `mobile_theme`, `total_discounts`, `total_discounts_tax_incl`, `total_discounts_tax_excl`, `total_paid`, `total_paid_tax_incl`, `total_paid_tax_excl`, `total_paid_real`, `total_products`, `total_products_wt`, `total_shipping`, `total_shipping_tax_incl`, `total_shipping_tax_excl`, `carrier_tax_rate`, `total_wrapping`, `total_wrapping_tax_incl`, `total_wrapping_tax_excl`, `round_mode`, `shipping_number`, `conversion_rate`, `invoice_number`, `delivery_number`, `invoice_date`, `delivery_date`, `valid`, `reference`, `date_add`, `date_upd`) VALUES ('57', '57', '215', '1', '1', '1', '1', '60', '9', '0', 'c5caf1e4adee8ea97d53df13fcc3ac27', 'przelew na konto', 'bankwire', '0', '0', NULL, '0', '0', '0', '0', '389', '389', '389', '0', '372', '372', '16.99', '16.99', '16.99', '0', '0', '0', '0', '2', NULL, '1', '0', '0', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0', 'UEGHVJUAS', '2015-05-04 19:54:41', '2015-05-04 19:54:41')
 
 
at line 639 in file classes/db/Db.php
 
634. WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
635. }
636. elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
637. {
638. if ($sql)
639. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
640. throw new PrestaShopDatabaseException($this->getMsgError());
641. }
642. }
643. 
644. /**
 
    DbCore->displayError - [line 333 - classes/db/Db.php] - [1 Arguments]
    DbCore->query - [line 613 - classes/db/Db.php] - [1 Arguments]
    DbCore->q - [line 398 - classes/db/Db.php] - [2 Arguments]
    DbCore->insert - [line 480 - classes/ObjectModel.php] - [3 Arguments]
    ObjectModelCore->add - [line 304 - classes/order/Order.php] - [2 Arguments]
    OrderCore->add - [line 335 - classes/PaymentModule.php]
    PaymentModuleCore->validateOrder - [line 64 - modules/bankwire/controllers/front/validation.php] - [9 Arguments]
 
    59. '{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'),
    60. '{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')),
    61. '{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS'))
    62. );
    63. 
    64. $this->module->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);
    65. Tools::redirect('index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key);
    66. }
    67. }
 
    BankwireValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]
 
    166. // setMedia MUST be called before postProcess
    167. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
    168. $this->setMedia();
    169. 
    170. // postProcess handles ajaxProcess
    171. $this->postProcess();
    172. 
    173. if (!empty($this->redirect_after))
    174. $this->redirect();
    175. 
    176. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
    ControllerCore->run - [line 374 - classes/Dispatcher.php]
 
    DispatcherCore->dispatch - [line 28 - index.php]
Edited by piotr0 (see edit history)
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

przy włączonym pokazywaniu błędów na etapie takim jak powyżej i kliknięciu w ten drugi żółty przycisk pojawiają się takie błędy:

 

 

 

Notice: Undefined offset: 0 in /home/b/public_html/classes/Cart.php on line 1440

[PrestaShopException]
 
Property Order->payment is empty
at line 866 in file classes/ObjectModel.php
 
861. 
862. $message = $this->validateField($field, $this->$field);
863. if ($message !== true)
864. {
865. if ($die)
866. throw new PrestaShopException($message);
867. return $error_return ? $message : false;
868. }
869. }
870. 
871. return true;
 
    ObjectModelCore->validateFields - [line 272 - classes/ObjectModel.php]
 
    267. *
    268. * @return array All object fields
    269. */
    270. public function getFields()
    271. {
    272. $this->validateFields();
    273. $fields = $this->formatFields(self::FORMAT_COMMON);
    274. 
    275. // For retro compatibility
    276. if (Shop::isTableAssociated($this->def['table']))
    277. $fields = array_merge($fields, $this->getFieldsShop());
 
    ObjectModelCore->getFields - [line 299 - classes/order/Order.php]
 
    294. public function getFields()
    295. {
    296. if (!$this->id_lang)
    297. $this->id_lang = Configuration::get('PS_LANG_DEFAULT', null, null, $this->id_shop);
    298. 
    299. return parent::getFields();
    300. }
    301. 
    302. public function add($autodate = true, $null_values = true)
    303. {
    304. if (parent::add($autodate, $null_values))
 
    OrderCore->getFields - [line 480 - classes/ObjectModel.php]
 
    475. }
    476. 
    477. // Database insertion
    478. if (Shop::checkIdShopDefault($this->def['table']))
    479. $this->id_shop_default = min($id_shop_list);
    480. if (!$result = ObjectModel::$db->insert($this->def['table'], $this->getFields(), $null_values))
    481. return false;
    482. 
    483. // Get object id in database
    484. $this->id = ObjectModel::$db->Insert_ID();
    485. 
 
    ObjectModelCore->add - [line 304 - classes/order/Order.php] - [2 Arguments]
 
    299. return parent::getFields();
    300. }
    301. 
    302. public function add($autodate = true, $null_values = true)
    303. {
    304. if (parent::add($autodate, $null_values))
    305. return SpecificPrice::deleteByIdCart($this->id_cart);
    306. return false;
    307. }
    308. 
    309. public function getTaxCalculationMethod()
 
    OrderCore->add - [line 335 - classes/PaymentModule.php]
 
    330. 
    331. if (self::DEBUG_MODE)
    332. PrestaShopLogger::addLog('PaymentModule::validateOrder - Order is about to be added', 1, null, 'Cart', (int)$id_cart, true);
    333. 
    334. // Creating order
    335. $result = $order->add();
    336. 
    337. if (!$result)
    338. {
    339. PrestaShopLogger::addLog('PaymentModule::validateOrder - Order cannot be created', 3, null, 'Cart', (int)$id_cart, true);
    340. throw new PrestaShopException('Can\'t save Order');
 
    PaymentModuleCore->validateOrder - [line 46 - modules/transferuj/controllers/front/validation.php] - [9 Arguments]
 
    41. }
    42. }
    43.
    44.
    45. $cart_id = base64_decode($_POST['cart']);
    46. $this->module->validateOrder((int)$cart_id, Configuration::get('TRANSFERUJ_NEW_ORDER'), $amount, $this->module->displayName, NULL, array(), NULL, false,$customer->secure_key);
    47. $_POST['opis'] = "Zamówienie nr: ".$this->module->currentOrder;
    48. $_POST['crc'] = base64_encode($this->module->currentOrder);
    49.          $_POST['kwota'] = $amount;
    50. $_POST['md5sum'] = md5(Configuration::get('TRANSFERUJ_SID').$_POST['kwota'].$_POST['crc'].Configuration::get('TRANSFERUJ_COD'));
    51.
 
    TransferujValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]
 
    166. // setMedia MUST be called before postProcess
    167. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
    168. $this->setMedia();
    169. 
    170. // postProcess handles ajaxProcess
    171. $this->postProcess();
    172. 
    173. if (!empty($this->redirect_after))
    174. $this->redirect();
    175. 
    176. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
 
    ControllerCore->run - [line 374 - classes/Dispatcher.php]
 
    369. // Execute hook dispatcher
    370. if (isset($params_hook_action_dispatcher))
    371. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    372. 
    373. // Running controller
    374. $controller->run();
    375. }
    376. catch (PrestaShopException $e)
    377. {
    378. $e->displayMessage();
    379. }
 
    DispatcherCore->dispatch - [line 28 - index.php]
 
    23. *  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
    24. *  International Registered Trademark & Property of PrestaShop SA
    25. */
    26. 
    27. require(dirname(__FILE__).'/config/config.inc.php');
    28. Dispatcher::getInstance()->dispatch();
 
 
Pomoże ktoś? musiałem płatności wyłączyć a głównie polegałem na tych automatycznych - pilna sprawa :((
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...