XF 1.2 Forum Watch Error

DRE

Well-known member
I clicked on a subforum and got a forum watch error that would not let me view the subforum.

Disabled all listeners and I still get this same error.



Server Error

Mysqli prepare error: Unknown column 'forum_watch.node_id' in 'on clause'

  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 753
  5. Zend_Db_Adapter_Abstract->fetchRow() in XenForo/Model/Forum.php at line 29
  6. XenForo_Model_Forum->getForumById() in XenForo/ControllerHelper/ForumThreadPost.php at line 177
  7. XenForo_ControllerHelper_ForumThreadPost->getForumOrError() in XenForo/ControllerHelper/ForumThreadPost.php at line 38
  8. XenForo_ControllerHelper_ForumThreadPost->assertForumValidAndViewable() in XenForo/ControllerPublic/Forum.php at line 88
  9. XenForo_ControllerPublic_Forum->actionForum() in XenForo/FrontController.php at line 335
  10. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  11. XenForo_FrontController->run() in abadelabhaha/index.php at line 13
 
Yeah, that's not our version. The previous post applies.

What about doing a DROP TABLE IF EXISTS before creating it?
Or ... renaming the table if exists.

For a popular add-on that might be better than answering the question over and over again.

(Yes, if the add-on is not disabled, the add-on might fail since it will not be expecting that table structure, but at least the installer would succeed)
 
I get this error when I click the 'Watched Forums' link so I'm going to remove the Watched Forums link from the site.

Code:
An exception occurred: Invalid argument supplied for foreach() in /var/www/vhosts/8thos.com/httpdocs/library/XenForo/ViewPublic/Watched/Forums.php on line 21


XenForo_Application::handlePhpError() in XenForo/ViewPublic/Watched/Forums.php at line 21
XenForo_ViewPublic_Watched_Forums->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 220
XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 569
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
XenForo_FrontController->run() in blahblahblah/index.php at line 13
 
I get this error when I click the 'Watched Forums' link so I'm going to remove the Watched Forums link from the site.

Code:
An exception occurred: Invalid argument supplied for foreach() in /var/www/vhosts/8thos.com/httpdocs/library/XenForo/ViewPublic/Watched/Forums.php on line 21


XenForo_Application::handlePhpError() in XenForo/ViewPublic/Watched/Forums.php at line 21
XenForo_ViewPublic_Watched_Forums->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 220
XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 569
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
XenForo_FrontController->run() in blahblahblah/index.php at line 13
Mine, After running this query:
Error Fixed
Code:
    CREATE TABLE xf_forum_watch (
        `user_id` int(10) unsigned NOT NULL,
        `node_id` int(10) unsigned NOT NULL,
        `notify_on` enum('','thread','message') NOT NULL,
        `send_alert` tinyint(3) unsigned NOT NULL,
        `send_email` tinyint(3) unsigned NOT NULL,
        PRIMARY KEY (`user_id`,`node_id`),
        KEY `node_id_notify_on` (`node_id`,`notify_on`)
    ) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci
 
I get this error when I click the 'Watched Forums' link so I'm going to remove the Watched Forums link from the site.

Code:
An exception occurred: Invalid argument supplied for foreach() in /var/www/vhosts/8thos.com/httpdocs/library/XenForo/ViewPublic/Watched/Forums.php on line 21


XenForo_Application::handlePhpError() in XenForo/ViewPublic/Watched/Forums.php at line 21
XenForo_ViewPublic_Watched_Forums->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 220
XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 569
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
XenForo_FrontController->run() in blahblahblah/index.php at line 13
I've got this error too today. Never install [bd] forum watch.

login to phpMyAdmin, I had xf_forum_watch table.

http://xenforo.com/community/goto/post?id=565823#post-565823 Can I use this?
 
Code:
    CREATE TABLE xf_forum_watch (
        `user_id` int(10) unsigned NOT NULL,
        `node_id` int(10) unsigned NOT NULL,
        `notify_on` enum('','thread','message') NOT NULL,
        `send_alert` tinyint(3) unsigned NOT NULL,
        `send_email` tinyint(3) unsigned NOT NULL,
        PRIMARY KEY (`user_id`,`node_id`),
        KEY `node_id_notify_on` (`node_id`,`notify_on`)
    ) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci
Umm how would one go about executing this little dittiy?? :oops:
 
How do you dot that, I receive #1050 - Table 'xf_forum_watch' already exists?
OK, tried again by renaming old forum watch table, so now suceeeded. Still seing those errors the main admin page, though

Mysqli prepare error: Unknown column 'template_map.template_final' in 'field list'
  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in XenForo/Model.php at line 219
  5. XenForo_Model->fetchAllKeyed() in TMS/Model/Template.php at line 228
  6. TMS_Model_Template->fetchAllKeyed() in XenForo/Model/Template.php at line 431
  7. XenForo_Model_Template->getOutdatedTemplates() in XenForo/ControllerAdmin/Home.php at line 26
  8. XenForo_ControllerAdmin_Home->actionIndex() in XenForo/FrontController.php at line 337
  9. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  10. XenForo_FrontController->run() in /home/euinfo/public_html/usanet.dk/admin.php at line 13
 
OK, tried again by renaming old forum watch table, so now suceeeded. Still seing those errors the main admin page, though

Mysqli prepare error: Unknown column 'template_map.template_final' in 'field list'
  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in XenForo/Model.php at line 219
  5. XenForo_Model->fetchAllKeyed() in TMS/Model/Template.php at line 228
  6. TMS_Model_Template->fetchAllKeyed() in XenForo/Model/Template.php at line 431
  7. XenForo_Model_Template->getOutdatedTemplates() in XenForo/ControllerAdmin/Home.php at line 26
  8. XenForo_ControllerAdmin_Home->actionIndex() in XenForo/FrontController.php at line 337
  9. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  10. XenForo_FrontController->run() in /home/euinfo/public_html/usanet.dk/admin.php at line 13
That is the Template Modification System add-on causing that error:

http://xenforo.com/community/threads/template-modification-system-tms.27973/page-30#post-592896

Uninstall it.
 
Code:
    CREATE TABLE xf_forum_watch (
        `user_id` int(10) unsigned NOT NULL,
        `node_id` int(10) unsigned NOT NULL,
        `notify_on` enum('','thread','message') NOT NULL,
        `send_alert` tinyint(3) unsigned NOT NULL,
        `send_email` tinyint(3) unsigned NOT NULL,
        PRIMARY KEY (`user_id`,`node_id`),
        KEY `node_id_notify_on` (`node_id`,`notify_on`)
    ) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci
Thx... you saved my day :D
 
I currently have this error and I have ran the Query and still no luck. The error still occurs?
Code:
An exception occurred: Invalid argument supplied for foreach() in /library/XenForo/ViewPublic/Watched/Forums.php on line 21

XenForo_Application::handlePhpError() in XenForo/ViewPublic/Watched/Forums.php at line 21
XenForo_ViewPublic_Watched_Forums->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 227
XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 572
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
XenForo_FrontController->run() in /index.php at line 13
 
This has only been known to happen with the forum watch add-on. If you still have it installed, you need to uninstall it.
 
I currently have this error and I have ran the Query and still no luck. The error still occurs?
Code:
An exception occurred: Invalid argument supplied for foreach() in /library/XenForo/ViewPublic/Watched/Forums.php on line 21

XenForo_Application::handlePhpError() in XenForo/ViewPublic/Watched/Forums.php at line 21
XenForo_ViewPublic_Watched_Forums->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 227
XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 572
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
XenForo_FrontController->run() in /index.php at line 13

I've just noticed this server error myself. I've never used the forum watch add-on.

I do use Widget Framework though.
 
Top Bottom