PDA

View Full Version : Warning: fetch_template() calls should be replaced by the vB_Template class.


FalconSpy
02-05-2015, 01:05 AM
When I go to visit anything but the frontpage of my site I get the following warning:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: FORUMDISPLAY_Separate2 in ..../includes/functions.php on line 4597

Not really sure how to fix it. I disabled a few plugins associated to Styles I have installed thinking it would help, but it did not.

Started to show after a forum upgrade and plugin. I tried uninstalling the plugin but an error appeared. So I went in and manually deleted the plugin files.

Not sure if that has anything to do with it.

ozzy47
02-05-2015, 01:10 AM
It is most likely from a mod, that is vB3 code.

Lets do this, disable plugins via the includes/config.php file.

To do that open your includes/config.php file and below <?php add the following.

define('DISABLE_HOOKS', true);

So it looks like this:
<?php
define('DISABLE_HOOKS', true);
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 4.2.2

Use a editor like notepad++ (http://notepad-plus-plus.org/download/v6.6.8.html) to edit any files, don't use Notepad or Wordpad.

If that fixes the issue enable plugins again by adding // before the line you added, then navigate to ACP --> Plugins & Products --> Manage Products and disable one mod at a time until you find the one causing the issue.

Once you find the culprit, post in that mods thread what the issue is, and maybe someone in that thread can help. :)

FalconSpy
02-05-2015, 01:15 AM
ozzy47! Thanks for your help! I'll give it a shot

ozzy47
02-05-2015, 01:16 AM
No problem, let us know how it goes.

FalconSpy
02-05-2015, 01:32 AM
So its a plugin it seems.

So what if its one that says it can't be deleted for whatever reason?

ozzy47
02-05-2015, 01:35 AM
Huh? I never seen a mod say it can't be deleted. Did you find out which mod it is?

FalconSpy
02-05-2015, 02:17 AM
I figured out which one. It was not the one that "can't be deleted"

Despite I already deleted the files assosciated with the cant be deleted one but still shows in Plugin product section.

It was this mod: Separate Sticky and Normal Threads

ozzy47
02-05-2015, 02:24 AM
Well if you removed the files, before attempting to delete it, that may cause issues. You should delete it in the ACP first, then remove the files.

squidsk
02-05-2015, 03:09 AM
You not be using the vb4 version of the mod if you're getting that error.

ozzy47
02-05-2015, 03:11 AM
Right, I sad that was from vB3 code in the second post. :)

satsat
11-20-2016, 01:31 PM
I have installed Moderator Statistics v2 which is for vb3, and it's giving me the same error while visiting page: misc.php?do=moderator_stats
I need this plugin because it gives a lot more information that VSA one, how can I fix it ?

MarkFL
11-20-2016, 05:13 PM
I have installed Moderator Statistics v2 which is for vb3, and it's giving me the same error while visiting page: misc.php?do=moderator_stats
I need this plugin because it gives a lot more information that VSA one, how can I fix it ?

In general, you shouldn't install vB 3.x products onto a vB 4.x site, unless you know how to port the product to vB 4.x. Porting between versions can sometimes be easy, and sometimes it can be a great deal of work.

satsat
11-23-2016, 07:05 PM
In general, you shouldn't install vB 3.x products onto a vB 4.x site, unless you know how to port the product to vB 4.x. Porting between versions can sometimes be easy, and sometimes it can be a great deal of work.

Would you please port this (https://vborg.vbsupport.ru/showthread.php?threadid=139248) for vb4.2 ?
I really need such a complete moderator stats for vb4, but none of them give much information about mods activities. The one which is implemented in vb4.2.3 just shows me smilies page instead of mod stats.
I appreciate it.

MarkFL
11-23-2016, 07:19 PM
Would you please port this (https://vborg.vbsupport.ru/showthread.php?threadid=139248) for vb4.2 ?
I really need such a complete moderator stats for vb4, but none of them give much information about mods activities. The one which is implemented in vb4.2.3 just shows me smilies page instead of mod stats.
I appreciate it.

That product is quarantined, and so there are no files available for download. Even if it weren't quarantined, it is not marked as reusable, so porting it for use by others would require the consent of the author.

You mentioned trying the VSA Moderating Stats product, but found it lacking in information. What additional information are you wanting?

satsat
11-24-2016, 03:13 AM
That product is quarantined, and so there are no files available for download. Even if it weren't quarantined, it is not marked as reusable, so porting it for use by others would require the consent of the author.

You mentioned trying the VSA Moderating Stats product, but found it lacking in information. What additional information are you wanting?

The threads and post that mods approve, unapprove, delete, move or any other actions.
I have VSA and it's only giving me the names of mods, no of posts, and how many actions each mod has taken and their recent activity time. and none is clickable except no of posts and mods' names.

MarkFL
11-24-2016, 03:31 AM
The threads and post that mods approve, unapprove, delete, move or any other actions.
I have VSA and it's only giving me the names of mods, no of posts, and how many actions each mod has taken and their recent activity time. and none is clickable except no of posts and mods' names.

When I want information that detailed, I look at the "Moderator Log." :)