user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'custom menu added by XML Sitemap: Menu module, which can optionally be ' at line 1 query: UPDATE db_menu_custom SET description =A custom menu added by XML Sitemap: Menu module, which can optionally be used as a source for menu links in the sitemap for more fine-grained control. WHERE menu_name = 'menu-xmlsitemap' in ./xmlsitemap/xmlsitemap_menu/xmlsitemap_menu.install on line 126.

The following queries were executed
xmlsitemap_menu module
Update #6108

* Failed: UPDATE {menu_custom} SET description =A custom menu added by XML Sitemap: Menu module, which can optionally be used as a source for menu links in the sitemap for more fine-grained control. WHERE menu_name = 'menu-xmlsitemap'

CommentFileSizeAuthor
#4 xmlsitemap-issue-442062.patch1.19 KBAnonymous (not verified)

Comments

Elan Hasson’s picture

I have same issue.
It seems that 's were missing around the value to set the description column's value.
"drup_menu_custom" below was what i substituted the {menu_custom} variable for.

I believe the correct query to be executed should be:

UPDATE drup_menu_custom SET description ='A custom menu added by XML Sitemap: Menu module, which can optionally be used as a source for menu links in the sitemap for more fine-grained control.' WHERE menu_name = 'menu-xmlsitemap'

Elan Hasson’s picture

Component: xmlsitemap.module » xmlsitemap_menu.module
strikehawkecomm’s picture

MySQL 4.1.x also throws this issue with Apache 2.x

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

Try this patch.

dave reid’s picture

Status: Needs review » Needs work

update_sql does not support placeholders

avpaderno’s picture

Title: sql error xmlsitemap_menu module » SQL error for xmlsitemap_menu module
Assigned: Unassigned » avpaderno

The SQL query clearly misses the delimiters for the string, and that is the only thing that needs to be corrected. I will do it, later.

Anonymous’s picture

update_sql does not support placeholders

I love consistency. A flaw of the API.

avpaderno’s picture

Title: SQL error for xmlsitemap_menu module » Missing string delimiter for an SQL query
Status: Needs work » Fixed

This has been fixed in CVS.
Thanks for the report.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.