Originally Posted by
Speak394
Filename is Full-EP2023Apr25-201651.csv.
I am trying to download my products from a previous version of zencart 1.5.4 using Easy Populate 4.0.30 - Beta 06-27-2015, into my new zencart using Easy Populate 4.0.37.13 - 05-03-2021.
OK, here's my thought, though haven't been able to test all this out.
First, I suspect that the table definition for products_description has been altered from the Zen Cart default. It is possible that it has not been altered.
Identifying the table's definition would likely help resolving this issue.
My guess is that there is a field included that doesn't have a default value and because the query described below doesn't also provide a value for that field, the query fails. As such, if a field does exist without a default value, the below suggestion won't resolve the issue either.
Second is that for whatever reason the query syntax used to insert some data, appears to not be acceptable in this instance. So, I would suggest in admin/easypopulate_4.php modifying lines 1141-1145 from:
Code:
$sql = "INSERT INTO " . TABLE_CATEGORIES_DESCRIPTION . " SET
categories_id = :categories_id:,
language_id = :language_id:,
categories_name = :categories_name:,
categories_description = :categories_description:";
To:
Code:
$sql = "INSERT INTO " . TABLE_CATEGORIES_DESCRIPTION . " (categories_id, language_id, categories_name, categories_description) VALUES (
:categories_id:,
:language_id:,
:categories_name:,
:categories_description:)";
Really, some more data should be collected about what issue really is experienced in the query.
Bookmarks