vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   FAQ Page is missing due to plugin? (https://vborg.vbsupport.ru/showthread.php?t=173639)

owlbill 03-20-2008 08:56 PM

FAQ Page is missing due to plugin?
 
The folks on the VB forum suggested that my error is due to an add-on I am using. I have been through all their suggestions 2 times and still have this error. The trouble is I can't see where it is telling me the error is.........anyone here seen this type of thing before?

These are the errors I get when I try to access http://thescubaforum.com/faq.php

Warning: Unknown( ): failed to open stream: No such file or directory in /faq.php(306) : eval()'d code on line 3

Warning: Unknown( ): failed to open stream: No such file or directory in /faq.php(306) : eval()'d code on line 3

Warning: (null)() [function.include]: Failed opening ' ' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /faq.php(306) : eval()'d code on line 3
=1

Lynne 03-20-2008 09:07 PM

What is on line 306 of your faq.php file? (Mine evals the template 'FAQ', but right above it is a hook for 'faq_complete' which may be what is causing your problems.)

King Kovifor 03-20-2008 09:16 PM

Disable all your plugins and then try to reload your FAQ page. If you are able to load it you have narrowed down your errors to a plugin.

The next step would be to turn your plugins back on, and disable any plugins (manually) that are on faq_complete for there hook.

After that, reload the page. If it loads you know that for sure one of those are to blame. Now manually turn each faq_complete hook plugins back on one by one until the page stops working again. You want to refresh and reload the page after each turn on.

Once you have found the plugin that causes your FAQ page to give you that error message, you will be able to correct the bad include. If you need help with that you can post the plugin code within this thread.

owlbill 03-20-2008 09:27 PM

Quote:

Originally Posted by Lynne (Post 1470092)
What is on line 306 of your faq.php file? (Mine evals the template 'FAQ', but right above it is a hook for 'faq_complete' which may be what is causing your problems.)

This is my line 306

eval('print_output("' . fetch_template('FAQ') . '");');

King Kovifor 03-20-2008 09:28 PM

Quote:

Originally Posted by owlbill (Post 1470113)
This is my line 306

eval('print_output("' . fetch_template('FAQ') . '");');

This pretty much confirms that it is a plugin that is causing this. Please follow the steps in my last post to figure out which plugin it is. This is the only way to help you remove this problem.

owlbill 03-20-2008 09:36 PM

Quote:

Originally Posted by King Kovifor (Post 1470103)
Disable all your plugins and then try to reload your FAQ page. If you are able to load it you have narrowed down your errors to a plugin.

The next step would be to turn your plugins back on, and disable any plugins (manually) that are on faq_complete for there hook.

After that, reload the page. If it loads you know that for sure one of those are to blame. Now manually turn each faq_complete hook plugins back on one by one until the page stops working again. You want to refresh and reload the page after each turn on.

Once you have found the plugin that causes your FAQ page to give you that error message, you will be able to correct the bad include. If you need help with that you can post the plugin code within this thread.

If I go to Plugin Manager and check plugins are using what hooks, there are none using anthing with "faq_" at all.

King Kovifor 03-20-2008 09:38 PM

Can you post a screenshot? And this does indeed make a very odd case.

Jase2 03-20-2008 09:39 PM

To troubleshoot this, first reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':

Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions


[Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]

Next, disable all plugins.

Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

Then if you still have this problem, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it. Do you have the same problem?

Regards Jason :)

owlbill 03-20-2008 09:41 PM

Quote:

Originally Posted by Jase2 (Post 1470126)
To troubleshoot this, first reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':

Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions


[Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]

Next, disable all plugins.

Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

Then if you still have this problem, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it. Do you have the same problem?

Regards Jason :)

I have done all of this twice no with no results. Screenshot coming.......

--------------- Added [DATE]1206052910[/DATE] at [TIME]1206052910[/TIME] ---------------

Quote:

Originally Posted by King Kovifor (Post 1470125)
Can you post a screenshot? And this does indeed make a very odd case.

What exactly would be the most helpful screen?

Jase2 03-20-2008 09:46 PM

What's the database like?

If you remove all hacks, and disable the plugin/hook system, then I cannot see how you can receive this error. When did this start happening? After you installed an hack? If so, what was the latest hack you installed?

Regards Jason :)


All times are GMT. The time now is 01:07 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.01044 seconds
  • Memory Usage 1,749KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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