![]() |
Plugins for Forum Postbit generate errors in CMS?
I adapted the Latest Blog Using Carp add-on to vB4 here: https://vborg.vbsupport.ru/showthread.php?t=234254
At the time, I was using only the Forum (CMS and Blog disabled in the Suite) and it worked fine, displaying the title of the latest (external) blog feed in the postbit for any forum post by that member. The add-on uses two small plug-ins: 1. Carp Configuration, attached to the "global_start" hook location (I realize this should now be changed to global_bootstrap_init_start but doing that makes no difference - I still get the errors). PHP Code:
2. Get Users Blog Entry, attached to postbit_display_start PHP Code:
Quote:
What do I need to do to eliminate these errors? |
If you only want it to work on the showthread page, then wrap the plugin at the global_start location with a THIS_SCRIPT == 'showthread' condition otherwise it is evaled on every single page.
|
Tried this:
PHP Code:
Error: Quote:
Quote:
|
And where is that function defined? You need to include that file with the function also.
|
What function? I've shown you the entire contents of the plug-ins. The only additional code is in postbit which displays the custom field:
PHP Code:
The referenced line 13 in class_postbit.php in the first error is: Code:
if (!isset($GLOBALS['vbulletin']->db)) Code:
require_once(DIR . '/includes/class_bbcode.php'); |
I'm still unable to get this to stop throwing errors in CMS.
Any suggestions on how to proceed to locate the source of the errors? |
Quote:
Code:
Fatal error: Call to undefined function CarpCacheShow() in /path/to/forum/includes/class_postbit.php(284) : eval()'d code on line 13 PHP Code:
But look at the error... "Call to undefined function CarpCacheShow()" A function is being called that doesn't exist on that page. That is why I asked where the function is defined. Cuz wherever that is, you need to make sure that file is included at that point. Quote:
|
But see above: I tried using the conditional for THIS_SCRIPT and that didn't help.
Quote:
PHP Code:
|
I think I'm misunderstanding something here. You say when you enable the CMS you get those errors, I had assumed you meant on the CMS page, but think I'm wrong. *What* exact page are you getting the errors on?
Are you sure $post[field6] is valid? Try entering something else and see if it works. And this is not valid - {vb:raw post[field7]} - it's {vb:raw post.field7} |
Quote:
Quote:
Quote:
--------------- Added [DATE]1282234229[/DATE] at [TIME]1282234229[/TIME] --------------- Examples of pages with errors: http://forum.psychlinks.ca/content.p...ew-server/edit Quote:
Quote:
OK. The errors also show on the actual article page: e.g., http://forum.psychlinks.ca/content/2...ew-server.html They do NOT show on the CMS Home page. Other information: Reported elsewhere and still no fix yet for this - it just occurred to me that it might be related rather than a separate issue: Articles created or promoted from forum threads show as Unpublished although all the correct checks are there to make it Published. |
I can't think of why you would get those errors on those pages when the hook isn't even being called on those pages in default vbulletin (at least not in 4.0.6). Have you tried turning off ALL other plugins/products except the CMS and your product and seeing if you still get the error?
Have you tried commenting out lines of the code to figure out which one it is having problems with? |
Thanks, Lynne. Your comments pointed me in the right direction.
I made some changes in the plug-ins but was still seeing errors. I don't fully understand why but went looking for other products and plugins that might be attaching to postbit hooks. I found an old 3.x add-on (product) that was working fine in the forums but had never been tried in CMS. When I disabled that, the errors disappeared, so obviously there was a conflict at that hook location. |
Glad you found it. :)
|
This was the culprit in my case: https://vborg.vbsupport.ru/showthread.php?t=150761
|
All times are GMT. The time now is 04:55 PM. |
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:
|