Icewind Dale RP Total Forum Thread Views [Deleted]

Can we expect that fix? (please)

1.02 is uploaded here. Again you do not need to download the whole package, if already installed.
Download the Thread.zip file, extract it and upload Thread.php to:
yourXenForo/library/IcewindDaleRP/ForumThreadViews/ControllerPublic/

Also included is a change to Template.php. I removed "Message Views:" for forums with no messages.
Download the template.zip file , extract it and upload template.php to yourXenForo/library/IcewindDaleRP/ForumThreadViews/Listener/
 

Attachments

I'm noticing some errors so thought I would mention it here.

ErrorException: Undefined index: forum - library/IcewindDaleRP/ForumThreadViews/ControllerPublic/Thread.php:13
Generated By: Unknown Account, Friday at 5:58 PM
Stack Trace
#0 /home/xxxx/public_html/library/IcewindDaleRP/ForumThreadViews/ControllerPublic/Thread.php(13): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/jfuqua/pu...', 13, Array)
#1 /home/xxxx/public_html/library/XenForo/FrontController.php(310): IcewindDaleRP_ForumThreadViews_ControllerPublic_Thread->actionIndex()
#2 /home/xxxx/public_html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /home/xxxx/public_html/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
["url"] => string(55) "http://www.gotitans.com/threads/titans-pick-10th.85606/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
I'm noticing some errors so thought I would mention it here.

ErrorException: Undefined index: forum - library/IcewindDaleRP/ForumThreadViews/ControllerPublic/Thread.php:13
Generated By: Unknown Account, Friday at 5:58 PM
Stack Trace
#0 /home/xxxx/public_html/library/IcewindDaleRP/ForumThreadViews/ControllerPublic/Thread.php(13): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/jfuqua/pu...', 13, Array)
#1 /home/xxxx/public_html/library/XenForo/FrontController.php(310): IcewindDaleRP_ForumThreadViews_ControllerPublic_Thread->actionIndex()
#2 /home/xxxx/public_html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /home/xxxx/public_html/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
["url"] => string(55) "http://www.gotitans.com/threads/titans-pick-10th.85606/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

Thanks for the report, it is well appreciated. I tried for the last couple of days to reproduce this and I couldn't. When viewing a thread, the forum key (as far as I knew) should always be set. I'll add a check to the method and that should eliminate the error.
 
Thanks for looking into it. I'm still getting the error so let me know if there is any info I can give you.

I am on Chrome for mac.
 
Lawrence updated Icewind Dale RP Total Forum Thread Views with a new update entry:

Bug fix and added 2 options

v1.1 addresses a bug reported by Jeff Fuqua, thanks Jeff for reporting it. It also adds two new options:

Options -> IwDRP Total Forum Thread Views -> Display 'Message Views' for Forums with no Views
Select to display Message Views: 0 for forums which has no view count.

Options -> IwDRP Total Forum Thread Views -> Display the Grand Total Only
Select to remove Message Views from the forum list. Only the Message Views grand total will be displayed in the side bar.
Note total message views count...

Read the rest of this update entry...
 
Quick question, I installed this and it is working great with one exception, the total is not displaying in the sidebar. I am sure I am overlooking something, just wondering if you had any ideas.
 
Quick question, I installed this and it is working great with one exception, the total is not displaying in the sidebar. I am sure I am overlooking something, just wondering if you had any ideas.

It may be because of another addon that modified the html that it looks for to do the string replace. You can try changing the template_hook callback order to give it a higher priority. You will need to be in development mode to do this though. If you PC me a link to your site, I'll take a look at the source for your forum home.
 
I'm noticing some errors so thought I would mention it here.

ErrorException: Undefined index: forum - library/IcewindDaleRP/ForumThreadViews/ControllerPublic/Thread.php:13
Generated By: Unknown Account, Friday at 5:58 PM
Stack Trace
#0 /home/xxxx/public_html/library/IcewindDaleRP/ForumThreadViews/ControllerPublic/Thread.php(13): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/jfuqua/pu...', 13, Array)
#1 /home/xxxx/public_html/library/XenForo/FrontController.php(310): IcewindDaleRP_ForumThreadViews_ControllerPublic_Thread->actionIndex()
#2 /home/xxxx/public_html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /home/xxxx/public_html/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State

array(3) {
["url"] => string(55) "http://www.gotitans.com/threads/titans-pick-10th.85606/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

I'm getting the same error. I updated and still had the error. I deleted it to see if it was what was causing my "Please enter a valid message." error and I thought it did it but I just had the error appear two more times. So it looks like I have more then one issue.

James
 
I'm getting the same error. I updated and still had the error. I deleted it to see if it was what was causing my "Please enter a valid message." error and I thought it did it but I just had the error appear two more times. So it looks like I have more then one issue.

James

Does the error happen for a thread that has been redirected or deleted? I can't reproduce this and checked all my logs to see if it appeared on my site since version 1.1 was released, and it hasn't. I moved a thread to another forum with a redirection message and still could not reproduce the error. Can you post or PC me more details (if possible) for I can try to reproduce this?

This add-on won't cause an Invalid Message error as it only runs when a thread has been viewed.
 
This is the error I'm getting.

ErrorException: Undefined index: forum - library/IcewindDaleRP/ForumThreadViews/ControllerPublic/Thread.php:13
Generated By: Unknown Account, Jun 5, 2013
Stack Trace
#0 /home/gearhead/public_html/library/IcewindDaleRP/ForumThreadViews/ControllerPublic/Thread.php(13): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/gearhead/...', 13, Array)
#1 /home/gearhead/public_html/library/XenForo/FrontController.php(310): IcewindDaleRP_ForumThreadViews_ControllerPublic_Thread->actionIndex()
#2 /home/gearhead/public_html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /home/gearhead/public_html/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
["url"] => string(111) "http://www.gearheadcentral.com/inde...ion-sanctuary-of-truth-pattaya-thailand.2541/"
["_GET"] => array(1) {
["threads/roadtrip-destination-sanctuary-of-truth-pattaya-thailand_2541/"] => string(0) ""
}
["_POST"] => array(0) {
}
}

I'm not sure if it has anything do with my invalid message error. I could just be running into a few problems all at once. I noticed errors from xenporta form a week or two ago as well. For now I tried to disable all my add ons (two won't for some reason) and I'm on a posting frenzy to try to see if the problem comes back. It was there after only half were disabled. I thought they all were but refreshed and noticed that half were checked again.

Here is my thread on my error. http://xenforo.com/community/threads/please-enter-a-valid-message.52422/#post-560793 It might not be your add on (which I love by the way) which is doing it but I do see errors so I would like to fix that and any other I can.

James
 
I have 5 at the top of my list in the server logs. Jun 4th and 5th. I decided to check back father and there is one on the 2nd.

Error Info
ErrorException: Undefined property: XenForo_ControllerResponse_Redirect::$params - library/IcewindDaleRP/ForumThreadViews/ControllerPublic/Thread.php:13
Generated By: Unknown Account, Jun 2, 2013
Stack Trace
#0 /home/gearhead/public_html/library/IcewindDaleRP/ForumThreadViews/ControllerPublic/Thread.php(13): XenForo_Application::handlePhpError(8, 'Undefined prope...', '/home/gearhead/...', 13, Array)
#1 /home/gearhead/public_html/library/ThreadWatchers/ControllerPublic/Thread.php(7): IcewindDaleRP_ForumThreadViews_ControllerPublic_Thread->actionIndex()
#2 /home/gearhead/public_html/library/EWRporta/ControllerPublic/Thread.php(9): ThreadWatchers_ControllerPublic_Thread->actionIndex()
#3 /home/gearhead/public_html/library/XenForo/FrontController.php(310): EWRporta_ControllerPublic_Thread->actionIndex()
#4 /home/gearhead/public_html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /home/gearhead/public_html/index.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
["url"] => string(111) "http://www.gearheadcentral.com/inde...ion-sanctuary-of-truth-pattaya-thailand.2541/"
["_GET"] => array(1) {
["threads/roadtrip-destination-sanctuary-of-truth-pattaya-thailand_2541/"] => string(0) ""
}
["_POST"] => array(0) {
}
}

It looks like they are all for the same thread. Now that I think about it, that thread was moved. That member talked about starting the thread and I told him he could post it in on section and I would create a Road Trip section later and move it. I did that later that night. So maybe that is where it is coming from?

James
 
Ok. I found just over 10 errors for this add on I would say. Stopped counting. Then looked at the date of the thread. The thread was posted on May 27th. I went back as far as May 21st and didn't see a error before May 27th. I believe I moved it the day it was posted. So that must be the issue.

James
 
I just made another thread and moved it. I posted in both without a problem and without an error in the server log.

James
 
I'll troubleshoot this shortly. In the meantime can you post here each time you find the error, and if it was a redirect? I say shortly as I will be going part time soon and that will free up a lot of my time that I can dedicate to my add-ons.
 
Hi Lawrence,

Are you planning on updating this for 1.2? Or does it work?

Thanks,
oman
 
Back
Top Bottom