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???
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityTo 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;
With new code:
case 'longtext':
if(!is_array($value)) $value = (string)$value;
else $value = '';
if ($column['NULLABLE'] && $value == '') {
$value = null;
}
break;
same error came to me now it solved
You have to treat the data as an array instead of an object. For example, you want to access the title of an article. If you treat the article as an object you will use getter like $article->getTitle. So, in this case, you have to access it by this way $article['title']