I received this error when bulk updating some url aliases.
I deleted all aliases then bulk updated them, 34 aliases were created:
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 ') LIMIT 0, 50' at line 1 query: SELECT tid, vid, name, src, dst FROM term_data LEFT JOIN url_alias ON CONCAT('taxonomy/term/', CAST(tid AS CHAR)) = src WHERE src IS NULL AND vid <> 0 ) LIMIT 0, 50 in /drupal/sites/all/modules/pathauto/pathauto_taxonomy.inc on line 84.
It looks like a taxonomy issue, I do not have any vocabs setup, but did select the box. Just thought you might like to know the error.
Thanks!
Comments
Comment #1
Freso commentedLooks like there's a parentheses-end too much. Whether it's in Pathauto or Taxonomy or somewhere else, I can't tell from this... and I don't have time to investigate. But now I posted my immediate observation in case someone else goes to dig into this. :)
Comment #2
bsherwood commentedI am not sure were the error came from but I figured I would add it to see if anyone else was getting it and if there is a fix.
Comment #3
gregglesIf you run bulk generate again does the error happen again?
Comment #4
bsherwood commentedOk I tried it again. Here are the steps that I took:
1. Deleted ALL aliases (no errors)
2. Bulk updated node path urls (no errors)
3. Bulk updated user path urls (no errors)
4. Bulk updated taxonomy term path setting (error)
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 ') LIMIT 0, 50' at line 1 query: SELECT tid, vid, name, src, dst FROM term_data LEFT JOIN url_alias ON CONCAT('taxonomy/term/', CAST(tid AS CHAR)) = src WHERE src IS NULL AND vid <> 0 ) LIMIT 0, 50 in /drupal/sites/all/modules/pathauto/pathauto_taxonomy.inc on line 84.
Granted, I don't have any vocabs setup, but should this return an error? Maybe a "No vocabularies set up" message would be more appropriate.
I hope this helps.
Comment #5
gregglesAha. In the original report you said 34 aliases were created which made me think that those were 34 taxonomy aliases that were created...
I think this is a duplicate of #286845: Bulk Update of Category Path with no existing categories AND/OR remove bulk generate checkbox?
Comment #6
hankinstrio commentedI am new to drupal and I got the exact same error message. I just downloaded and enabled pathauto and checked all the bulk generate aliases boxes and this error came up. I comment because bsherwood's comment seems to indicate that there is not really any error to worry about. Is there any more help on this?