Originally Posted by
waterbender
Hi,
I tried updating the image and description of existing categories using the CategoriesMeta-EP file. The file import was complete and the image and description were inserted. However, there is an error:
"An SQL error has occured. Please check your input data for tabs within fields and delete these. If this error continues, please forward your error log to the Easy Populate maintainer"
The debug error log shows:
MySQLi error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '
categories_id = 10387,
language_id ...' at line 1
When executing:
INSERT INTO zen_meta_tags_categories_description SET ,
categories_id = 10387,
language_id = 1
How can this error be fixed please?
Thanks
Either of three ways:
1. Since appears that only updating v_categories_name_ related fields, then name the file with the prefix format of "category-ep", it appears though that to update categories_description that for now it should use the "categorymeta-ep" file format and one of the below would apply. I am not 100% sure why the "category-ep" file format never included the categories_description field into the "category-ep" file format. Trying to review to see what if any issues might be expected by including the description in the general category file or a similar file.
2. Add any (or all) of the following three fields to the import file that has the filename format of categorymeta-ep:
a. v_metatags_title_
b. v_metatags_keywords_
c. v_metatags_description_
3. Modify the file admin/includes/modules/easypopulate_4_import_categorymeta_ep.php to incorporate the following code change:
changing lines 165-166 https://github.com/mc12345678/EasyPo....php#L165-L166 from:
to
Code:
if ($update_count) {
$sql .= ",
";
}
Though this last "fix" should also include a notification that effectively nothing is being done as there is no meta data that has been provided, just category name information...
If there remain issues, then it may also be helpful to identify the admin->configuration->Easy Populate 4 settings for:
1. Import Language Override
2. Export Language Identifier
Bookmarks