Jump to content

Error al realizar el pedido


Recommended Posts

Hola, cuando hago un pedido en mi tienda todo se procesa bien, recibo un correo con el pedido y demás, pero me salta este error.post-1230696-0-48181300-1462184238_thumb.jpg

(por si acaso lo copio que creo que se ve muy pequeño)

 

You can't specify target table 'leo_order_invoice' for update in FROM clause
 
UPDATE `leo_order_invoice` SET number =(SELECT new_number FROM (SELECT (MAX(`number`) + 1) AS new_number
FROM `leo_order_invoice`) AS result) WHERE `id_order_invoice` = 5
 
 
at line 791 in file classes/db/Db.php
 
786.         if ($webservice_call && $errno) {
787.             $dbg = debug_backtrace();
788.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789.         } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790.             if ($sql) {
791.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792.             }
793. 
794.             throw new PrestaShopDatabaseException($this->getMsgError());
795.         }
796.     }
 

 

 
Link to comment
Share on other sites

¿Ha intentado utilizar otro módulo de pago así? Puede ser que el módulo de pago no es compatible o no en su entorno (PHP y MySQL versión).

 

Have you tried to use another payment module as well? Can be that the payment module is not compatible or fails in your environment (PHP & MySQL version).

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