Magento 2.3 - Cómo resolver el error Mysql de la página de pago Eway de múltiples sitios

Aug 15 2020

Cómo solucionar el siguiente error,

Error de red :

trace: "# 0 /var/www/html/test/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento \ Checkout \ Model \ PaymentInformationManagement-> savePaymentInformationAndPlaceOrder (9400, Object (Magento \ Quote \ Modelo \ Cotización \ Pago), Objeto (Magento \ Cotización \ Modelo \ Cotización \ Dirección)) ↵ # 1 /var/www/html/test/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento \ Checkout \ Model \ PaymentInformationManagement \ Interceptor -> ___ callParent ('savePaymentInfo ...', Array) ↵ # 2 /var/www/html/test/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento \ Checkout \ Model \ PaymentInformationManagement \ Interceptor-> Magento \ Framework \ Interception {cierre} (9400, Object (Magento \ Quote \ Model \ Quote \ Payment), Object (Magento \ Quote \ Model \ Quote \ Address)) ↵ # 3 /var/www/html/test/generated/code/Magento/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): Magento \ Checkout \ Model \ PaymentInformationManagement \ Interceptor -> ___ callPlugins ('savePaymentInfo ...', Array , Array) ↵ # 4 [función interna ción]: Magento \ Checkout \ Model \ PaymentInformationManagement \ Interceptor-> savePaymentInformationAndPlaceOrder (9400, Object (Magento \ Quote \ Model \ Quote \ Payment), Object (Magento \ Quote \ Model \ Quote \ Address)) ↵ # 5 / var / www / html / test / app / code / Magento / Webapi / Controller / Rest / SynchronousRequestProcessor.php (95): call_user_func_array (Array, Array) ↵ # 6 / var / www / html / test / app / code / Magento / Webapi /Controller/Rest.php(188): Magento \ Webapi \ Controller \ Rest \ SynchronousRequestProcessor-> process (Object (Magento \ Framework \ Webapi \ Rest \ Request \ Proxy)) ↵ # 7 / var / www / html / test / lib / internal / Magento / Framework / Interception / Interceptor.php (58): Magento \ Webapi \ Controller \ Rest-> dispatch (Object (Magento \ Framework \ App \ Request \ Http)) ↵ # 8 / var / www / html /test/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento \ Webapi \ Controller \ Rest \ Interceptor -> ___ callParent ('dispatch', Array) ↵ # 9 / var / www / html / test /lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento \ Webapi \ Controller \ Rest \ Interceptor-> Mage nto \ Framework \ Interception {cierre} (Objeto (Magento \ Framework \ App \ Request \ Http)) ↵ # 10 /var/www/html/test/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php ( 26): Magento \ Webapi \ Controller \ Rest \ Interceptor -> ___ callPlugins ('despacho', Array, Array) ↵ # 11 /var/www/html/test/lib/internal/Magento/Framework/App/Http.php ( 116): Magento \ Webapi \ Controller \ Rest \ Interceptor-> dispatch (Object (Magento \ Framework \ App \ Request \ Http)) ↵ # 12 / var / www / html / test / lib / internal / Magento / Framework / App /Bootstrap.php(261): Magento \ Framework \ App \ Http-> launch () ↵ # 13 /var/www/html/test/pub/index.php(44): Magento \ Framework \ App \ Bootstrap-> ejecutar (Objeto (Magento \ Framework \ App \ Http \ Interceptor)) ↵ # 14 {principal} "

Respuestas

3 CoderKubeTechnologies Aug 25 2020 at 10:25

Para resolver este problema, realice los cambios a continuación.

Camino :vendor/magento/framework/DB/Adapter/Pdo/Mysql.php

Busque ->public function prepareColumnValue(array $column, $value)

Reemplace el código anterior a continuación:

case 'longtext':
    $value = (string)$value;
    if ($column['NULLABLE'] && $value == '') {
        $value = null;
    }
 break;

Con nuevo código:

case 'longtext':
    if(!is_array($value)) $value = (string)$value;
    else $value = ''; if ($column['NULLABLE'] && $value == '') { $value = null;
    }
   break;

Avísame si este resuelve tu problema.

arpit2011 Aug 26 2020 at 14:42

Intente degradar su versión de PHP de PHP7.3 a PHP7.1.x

Magento 2.3.4 es compatible con PHP7.1.x