vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Warning: fetch_template() calls should be replaced by the vB_Template class. (https://vborg.vbsupport.ru/showthread.php?t=317163)

FalconSpy 02-05-2015 01:05 AM

Warning: fetch_template() calls should be replaced by the vB_Template class.
 
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.

PHP Code:

define('DISABLE_HOOKS'true); 

So it looks like this:
PHP Code:

<?php
define
('DISABLE_HOOKS'true);
/*=================================================  =====================*\
|| ##################################################  ################## ||
|| # vBulletin 4.2.2

Use a editor like notepad++ 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

Quote:

Originally Posted by satsat (Post 2578477)
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

Quote:

Originally Posted by MarkFL (Post 2578501)
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 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

Quote:

Originally Posted by satsat (Post 2578601)
Would you please port this 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

Quote:

Originally Posted by MarkFL (Post 2578602)
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

Quote:

Originally Posted by satsat (Post 2578619)
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." :)


All times are GMT. The time now is 05:52 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
  • Page Generation 0.03895 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete