-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 error when attempting to add term into taxonomic name term field #6621
Comments
Wondering if these are related: #6622 This looks like as a result of the release 2.11.1 and in particular I'd say it is the standard Drupal core update. My guess is that our custom Scratchpads code made some assumptions about the core code and these assumptions don't now apply with the core update. This on the basis of the error above which references a custom Scratchpads code file. Core updates are important and there is a limitation to how we can give test coverage before releasing, to avoid such issues. |
In 2.11.1 release, when one attempts to add a term to the Taxonomy Name field, a 500 error is displayed as a pop up, because the autocomplete failed. The cause is something wrong with this query to provide the list of suggestions as you type (called autocomplete). This is being done in
The above query causes this error:
Observations so far are that in several places in that query, variables and SQL operands aren't separated by spaces, e.g. We could run this same analysis on 2.10.1 which doesn't have this issue and see if the query as string is similar with variables and operands without spaces, if that was the case then I'd regard this as a glitch with how the query is output as a string and not the real query being run (and perhaps raise a Drupal core issue about it?). My current thinking that the cause of this issue is that The comments above the function say:
So I'm guessing that this custom function is a copy of a core function (from a core release earlier than 7.82, in our last release) modified to work with paranthesis like brackets My analysis above was done by temporarily adding some extra lines of code on my local developer personal copy to
|
update
seen on several sites:
Therefore this is a common issue, changed title to reflect that.
Error so far seen on more than on place where Taxonomic Name field present: attempting to add terms in taxonomic name field associated with an image, and with the field associated with Bibliographic content. Conclusion so far on that basis is that the error will occur for all instances of Taxonomic Name field where attempt to add term.
raised on this site:
https://agromyzidae.myspecies.info/ - "500 error when editing image taxonomic name term field".
problem seen by Barry (site owner) here:
confirming I can recreate error scenario:
https://agromyzidae.myspecies.info/taxonomy/term/70#overlay=file/50/edit%3Fdestination%3Dtaxonomy/term/70
but fine here:
https://myriatrix.myspecies.info/#overlay=file/8829/edit%3Fdestination%3Dscratchpads-front
This site is running 2.11.1 like Barry's latest release, so I would not necessarily expect the release to have caused regression. The particular part of the release where I might have thought there would be an issue would be the update of Drupal core, because taxonomy is part of core. But given that another site running 2.11.1 doesn't show the issue could discount that issue somewhat.
Going back to site where issue seen, from web browser console log if I use the URI endpoint involved in doing the autocomplete in the taxonomic name field: https://agromyzidae.myspecies.info/taxonomy/autocomplete/field_taxonomic_name/h
I can see the fatal error:
db log / database logging switched on
can see this error directly related to issue:
The text was updated successfully, but these errors were encountered: