Search and Candy
I have been struggling with search while candy is on.
I know that in August you fixed the bug (different number of columns) while search.
I believe this is a problem again.
Search now reports, on return that there are different number of columns in 3 tables used by candy.
Here is the start of the error message
"The used SELECT statements have a different number of columns"
When I look more closely into the error message, it appears that the mismatch is between the number of columns in vanilla tables
GDN_Discussion and GDN_Comment on one end and candy tables GDN_Section, GDN_Page and GDN_Chunk.
If needed, I can reproduce the entire error message.
Sorry to bring this up again but the search code is much too complex for me to try to fix this.
However, if you give me specific instructions on what to do, I'll be more than happy to do it myself.
Apart from this small issue, candy is a great app!
Thanks,
Zvonko
Comments
Sorry, but I did not found the problem. Please, provide screenshot (error stack trace).
All works for me.
I uploaded last version (from github) to Vanilla addons page.
No problem,
I am adding a screen shot of the error message. If I post it as code it comes out looking as crap.
I did the count of search fields and it is not the same.
I am using vanilla 2.0.8.14
Thanks for taking time to look into it.
I can repair that crap for you
Do you have any other plugins active? I can't count those columns from the screenshot, but I believe you when you say the column counts are not the same. That's what the error message says too :-)
There was an error rendering this rich post.
Lol Lol lol and awesome !
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
OK, I'll take your offer. Thanks.
Here is a breakdown (the best I can figure out to make it readable) of the error message (query that fails). Count the number of "as" which I believe constructs columns.
I hope the code I pose comes out readable. - It didn't so I had to edit the post.
Beginning of the Error message:
The used SELECT statements have a different number of columns
|Gdn_Database|Query|
There are 5 select statements
select * from (
--------- Dashes inserted to make the code readable - I think there are 9 columns constructed ------
--------- Dashes inserted to make the code readable - I think there are 9 columns constructed ------
--------- Dashes inserted to make the code readable - I think there are 10 columns constructed ------
--------- Dashes inserted to make the code readable - I think there are 10 columns constructed ------
--------- Dashes inserted to make the code readable - I think there are 9 columns constructed ------
--------------- The end part of the query ---------
order by s.DateInserted desc
limit 20`
There are 10 columns from "GDN_Chunk query part".
1. Relavence
2. PrimaryID
3. Title
4. Summary
5. Format
6. CategoryID
7. Url
8. DateInserted
9. UserID
10. RecordType
Extra column is "RecordType" goes from Candy application.
In vanilla new column was added on 02.04.2012 https://github.com/vanillaforums/Garden/commit/1b20547dec07332dbe6114eeb5ec901c86654f9d.
Looks like this commit is not from master branch.
Update: No, it does.
Hello S,
Thank you on our answer.
I am using 2.0.8.14 downloaded from the site - not the github version.
I'd appreciate if you could point me to the specific release you mention that does no have a search issue.
Thanks
Zhlousek