Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Enabled or not ? (and! categories problem)
Pamela
✭✭
Hi,
Thanks for this advanced version but when I click on "Enabled" (at your "Tagging" page, not "Plugins" page) then this "Bonk" page is displayed !
Note: after back (using browser button) and refresh... I can see my tags (and so your plugin is enabled...)
Categories are broken (this "Bonk" appears again...) using “Pretty” URL's or not
My server config... Linux, Apache 1.3, PHP 5.2, MySQL 5.0 with Vanilla 2.1.6
Pleasen how could I fix this ?
Thanks for this advanced version but when I click on "Enabled" (at your "Tagging" page, not "Plugins" page) then this "Bonk" page is displayed !
Note: after back (using browser button) and refresh... I can see my tags (and so your plugin is enabled...)
Categories are broken (this "Bonk" appears again...) using “Pretty” URL's or not
My server config... Linux, Apache 1.3, PHP 5.2, MySQL 5.0 with Vanilla 2.1.6
Pleasen how could I fix this ?
0
Comments
Some questions to help me debug your error.
1. Did you disable and remove the old tagging plugin before adding this plugin?
2. Did you enable categories before adding this plugin?
If the answer is yes to the above:
1. Can you go to your config.php in the CONF directory, and switch on your error pages (for debugging) to the following:
$Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php';
This should spit out the real error messages instead of having "BONK" page.
After doign this, please paste what you see and I will look through it.
Thanks!
Fatal Error in Gdn_Database.Query(); Table 'xxx.GDN_TagCategoryCount' doesn't exist select t.Name as `Name`, tcc.CountDiscussions as `CountDiscussions` from GDN_Tag t join GDN_TagCategoryCount tcc on t.TagID = tcc.TagID where tcc.CountDiscussions > :tccCountDiscussions and tcc.CategoryID = :tccCategoryID order by tcc.CountDiscussions desc limit 25 The error occurred on or near: /home/xxx/library/database/class.database.php 225: 226: if (!is_object($PDOStatement)) { 227: trigger_error(ErrorMessage('PDO Statement failed to prepare', $this->ClassName, 'Query', $this->GetPDOErrorMessage($this->Connection()->errorInfo())), E_USER_ERROR); 228: } else if ($PDOStatement->execute($InputParameters) === FALSE) { 229: trigger_error(ErrorMessage($this->GetPDOErrorMessage($PDOStatement->errorInfo()), $this->ClassName, 'Query', $Sql), E_USER_ERROR); 230: } 231: } else { 232: $PDOStatement = $this->Connection()->query($Sql); 233: } Backtrace:
(...)
Do you need more info ?
I suspect your database login / password doesn't allow you to create / drop tables?
This should probably explains why the script "hangs" when you try to "enable" tagging....
Have you checked that the database login / password you are using with vanilla has full create / drop table rights?
Fatal Error in Gdn_Database.Query(); Table 'xxx.GDN_discussion' doesn't exist update GDN_tagdiscussion tagdiscussion inner join GDN_discussion discussion on tagdiscussion.DiscussionID = discussion.DiscussionID set tagdiscussion.CategoryID = discussion.CategoryID
and ! (...)
and ;-) in phpMyAdmin I can see these tables, so it seems there is a probleme between uppercase and lowercase:
* GDN_Tag (23)
* GDN_tagcategorycount (0)
* GDN_tagdiscussion (0)
* GDN_TagDiscussion (123) Yes, my used login and password user has full table privileges ;-) dixit cPanel
I did not realize this as my development environment is windows...
since you are running on Linux hence the error!
let me update the code with proper casing for the SQL statements and I think it shd be ok...
1. Disable old tagging enhanced plugin
2. Remove old tagging enhanced plugin
3. Copy in new tagging enhanced plugin
4. Enable plugin
5. Enable Tagging
Let me know if this works
thx...
after you disable and remove the old plugin, can you
1. delete the tagcategorycount table
2. remove the categoryID column in the tagdiscussion table
after you do this add back the new plugin and re enable the tagging...
you need to do this because the old tables from the old version are still in the system...
2. Ok, I remove the categoryID column but in the TagDiscussion table ;-) of course ?
2. Yes, remove categoryID column, ONLY in the tagdiscussion table (which you do not delete!)
So, I'd deleted this tagdiscussion table and! removed categoryID column in the TagDiscussion :-( then, it was not worked! of course
May be it's too late to try to repair it and a best way will be to erase all these tables and re-install these 2 plugins
Its ok... actualy, the cleanest way is to just
1. reinstall vanilla
2. remove old tagging plugin
3. install new tagging plugin
If you do not have any data in your forum, you can do the above, it will be the best
Many thanks for all your help ;-)) and happy new year 2011