Notice: Array to string conversion in
/home/pacifi48/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php
on line 2999 Magento 2 Version 2.2.2
How to solve???
Best Answer
To solve please do modification in below paths
Path : vendor/magento/framework/DB/Adapter/Pdo/Mysql.php
Under --> public function prepareColumnValue(array $column, $value)
Replace old code:
case 'longtext':
$value = (string)$value;
if ($column['NULLABLE'] && $value == '') {
$value = null;
}
break;
As of PHP 7.2 this is a warning about a non-Countable object being passed to count():
count() will now yield a warning on invalid countable types passed to the array_or_countable parameter.
Without any further code to look at (e.g. the code that defines the $list variable) or knowing what $list contains, I would guess that however $list is defined one of the valid results is null. You have two options:
Check the value of $list before that line and redefine it if necessary:
Best Answer
To solve please do modification in below paths
Path : vendor/magento/framework/DB/Adapter/Pdo/Mysql.php
Under --> public function prepareColumnValue(array $column, $value)
Replace old code:
With new code:
same error came to me now it solved