Fix Error: Notice: Array to string conversion


The site is using the Amasty Product Feed extension. If you set the Schedule and trying to save feed profiles:

Unable to save feed with ID xx. Error: Notice: Array to string conversion in /magento_dir/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php on line 3105

My environment:

  • PHP 7.2
  • Magento 2.3.3
  • Amasty Product Feed 2.5.1


Although I updated the extension to the latest version, the error is still there. After debugged the extension, I figure out that it’s trying to store cron_day & cron_time values into DB with longtext type.

I’m running out of time, so I modified the extension to make it work. This is my customized file app/code/Amasty/Feed/Controller/Adminhtml/Feed/Save.php. Let me know if you need me to explain the customized part.


Leave a Reply