Can't Save A Forum Post
Forum » Wikidot version 1 / Bugs » Can't Save A Forum Post
started by: Ed JohnsonEd Johnson
on: 1204856549|%e %b %Y, %H:%M %Z|agohover
number of posts: 3
rss icon RSS: new posts
summary:
I just went live and the one thing I didn't test...
Can't Save A Forum Post
Ed JohnsonEd Johnson 1204856549|%e %b %Y, %H:%M %Z|agohover

I just finished setting up my new Wikidot server at my workplace and everything was going fantastic until I activated the Forum and tried to create my first post. I was able to edit and preview my post just fine, but, when I hit the "Save" button, I get this error:
Forum_Error2.jpg


I can hold off making the Forums visible to my users, but I could really use some help decoding this error message and getting this one fixed quickly.

Thanks in advance for any help.

-Ed

last edited on 1204929183|%e %b %Y, %H:%M %Z|agohover by Ed Johnson + show more
unfold Can't Save A Forum Post by Ed JohnsonEd Johnson, 1204856549|%e %b %Y, %H:%M %Z|agohover
Re: Can't Save A Forum Post
Ed JohnsonEd Johnson 1204926529|%e %b %Y, %H:%M %Z|agohover

Found and Fixed


I just tracked down this bug and fixed it.

In the file /var/www/wikidot/php/utils/Indexer.php there is a small typo on line 118:

$ie->setVector("setweight( to_tsvector($title'), 'C') || setweight( to_tsvector('$description'), 'C') || to_tsvector('".db_escape_string($text)."')", true);

After adding an ' to "to_tsvector('$title')" the problem was solved.

Can someone update the wikidot1 SVN trunk folder with this fix?

Thanks!
-Ed

last edited on 1204944622|%e %b %Y, %H:%M %Z|agohover by Ed Johnson + show more
unfold Re: Can't Save A Forum Post by Ed JohnsonEd Johnson, 1204926529|%e %b %Y, %H:%M %Z|agohover
Re: Can't Save A Forum Post
GabrysGabrys 1206363003|%e %b %Y, %H:%M %Z|agohover

Fixed now in SVN. Thanks for pointing that out. :)


Piotr Gabryjeluk
visit my Dev blog

unfold Re: Can't Save A Forum Post by GabrysGabrys, 1206363003|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License