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. :)


All times are GMT. The time now is 05:10 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
  • Page Generation 0.01132 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete