![]() |
Error message - any ideas?
I'm hoping this is something simple. This error occurs when clicking in a CMS category or article author using vBulletin 4.2.2. My Google-fu failed me!
Quote:
|
It looks like it's coming from an add-on product. If you can figure out which one it is, you should ask in the thread for that mod. You can try turning off products one at a time, but you might be able to guess which one it is, if you have someting installed that has to do with cms articles.
|
Quote:
I was hoping there was an obvious thing in the error message (I don't speak code) that I could fix. Hoping I don't have to pay someone to diagnose and fix it! |
($hook = vBulletinHook::fetch_hook('vbcms_article_populate_ start')) ? eval($hook) : false;
check all plugins being used for cms |
Quote:
|
If you go to the Plugin Manager, you can look at the Hook Location column and look for a plugin using that hook. You can also sort by hook by clicking on Hook Location.
|
Quote:
|
Quote:
And assuming I am able to look a list of plugins and determine they are using said hook, what do I do about that? |
vbcms_article_populate_start is the hook location. Disable each one one at a time till you find the culprit.
|
Quote:
Quote:
Otherwise we don't know how to help you (unless someone else happens to recognize the error). |
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? |
What was the code in the offending plugin?
|
Quote:
Code:
if (self::VIEW_PREVIEW == $viewtype) { |
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. |
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.
|
All times are GMT. The time now is 07:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|