The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Thanks, guys! That was really useful. I think that has helped me narrow it down to two possible culprits.
The bad news is that both were mods written by people in the paid work section here at vBulletin.org, and almost without exception, 100% of people hired there flake out and disappear. Which leaves me in something of a pickle... What would you advise I do next? Try to hire someone to look at those two mods and see if they can figure out the issue? Edit - confirmed; deactivating one of the two culprits fixes the issue, so at least is has been identified! The plugin itself is pretty short. Is it likely that the error is there in that short plugin, or will someone have to examine the entire mod? |
#12
|
||||
|
||||
What was the code in the offending plugin?
|
#13
|
|||
|
|||
Here we go. Hopefully this will display OK. It's part of aa mod which counts the number of times an article is viewed in preview mode, since I always use full article display in sections.
Code:
if (self::VIEW_PREVIEW == $viewtype) { if ($increment_count) { if (PreviewViewCount::$content->isSection() && PreviewViewCount::display()) { ExtendedDatabases_Query::write(array( 'query' => 'UPDATE `%1$scms_nodeinfo` SET `preview_view_list` = `preview_view_list` + 1 WHERE `nodeid` = %2$d', 'params' => $this->content->getNodeId() )); if (!defined('PREVIEW_COUNT_FIRST')) { ExtendedDatabases_Query::write(array( 'query' => 'UPDATE `%1$scms_nodeinfo` SET `preview_view_first` = `preview_view_first` + 1 WHERE `nodeid` = %2$d', 'params' => $this->content->getNodeId() )); define('PREVIEW_COUNT_FIRST', true); } } } } |
#14
|
|||
|
|||
Unfortunately that doesn't help a lot. It must be that PreviewViewCount::$content is not an object, but we'd have to see more of the code to have any chance of knowing why that is. You might be able to change the third line to something like:
Code:
if (is_object(PreviewViewCount::$content) && PreviewViewCount::$content->isSection() && PreviewViewCount::display()) { (the part in red is added), and it might make the error message go away, but without understanding more of the code I can't tell you what effect that would have on the preview counting. |
#15
|
|||
|
|||
Thank you! That may have worked! I'll keep an eye on it, but at first glance it looks like the preview counts are still incrementing and the category links are now working.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|