The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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? |
#2
|
||||
|
||||
![]()
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.
|
#3
|
|||
|
|||
![]()
Tried this:
PHP Code:
Error: Quote:
Quote:
|
#4
|
||||
|
||||
![]()
And where is that function defined? You need to include that file with the function also.
|
#5
|
|||
|
|||
![]()
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'); |
#6
|
|||
|
|||
![]()
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? |
#7
|
||||
|
||||
![]() 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. You need to do something to make sure those plugins are not called on the CMS page (which is why I was suggesting using THIS_SCRIPT) |
#8
|
|||
|
|||
![]()
But see above: I tried using the conditional for THIS_SCRIPT and that didn't help.
Quote:
PHP Code:
|
#9
|
||||
|
||||
![]()
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} |
#10
|
|||||
|
|||||
![]() 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. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|