Jump to content
thirty bees forum
  • 0

Custom payment method validation error


koraledrewniane

Question

Hello, my customers receive an error while processing checkout with CoD. It's strange because custompaymentmmodule works fine until this week. Can someone help?
 

[ThirtyBeesDatabaseException]

Unknown column 'cpmc.id_custom_payment_method' in 'on clause'
 

SELECT DISTINCT cpm.*, cpml.`id_lang`, cpms.`id_shop`,
cpmg.`id_group`,
cpml.`name`, cpml.`description`, cpml.`description_success`, cpml.`description_short`
FROM `tb_custom_payment_method` cpm
LEFT JOIN `tb_custom_payment_method_lang` `cpml` ON cpml.`id_custom_payment_method` = cpm.`id_custom_payment_method` AND cpml.`id_lang` = 2
LEFT JOIN `tb_custom_payment_method_shop` `cpms` ON cpms.`id_custom_payment_method` = cpm.`id_custom_payment_method` AND cpms.`id_shop` = 1
INNER JOIN `tb_custom_payment_method_group` cpmg ON cpmc.`id_custom_payment_method` = cpm.`id_custom_payment_method` AND cpmg.`id_group` IN (3)
WHERE (`active` = 1)


at line 844 in file classes/db/Db.php

 

839.         if ($webserviceCall && $errno) {
840.             $dbg = debug_backtrace();
841.             WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
842.         } elseif (_PS_DEBUG_SQL_ && $errno && !defined('TB_INSTALLATION_IN_PROGRESS')) {
843.             if ($sql) {
844.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
845.             }
846. 
847.             throw new PrestaShopDatabaseException($this->getMsgError());
848.         }
849.     }
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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...