Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2008, 08:56 PM
owlbill owlbill is offline
 
Join Date: Apr 2007
Location: Ottawa ON Canada
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 03-20-2008, 09:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #3  
Old 03-20-2008, 09:16 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-20-2008, 09:27 PM
owlbill owlbill is offline
 
Join Date: Apr 2007
Location: Ottawa ON Canada
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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') . '");');
Reply With Quote
  #5  
Old 03-20-2008, 09:28 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by owlbill View Post
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.
Reply With Quote
  #6  
Old 03-20-2008, 09:36 PM
owlbill owlbill is offline
 
Join Date: Apr 2007
Location: Ottawa ON Canada
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
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.
Reply With Quote
  #7  
Old 03-20-2008, 09:38 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you post a screenshot? And this does indeed make a very odd case.
Reply With Quote
  #8  
Old 03-20-2008, 09:39 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 03-20-2008, 09:41 PM
owlbill owlbill is offline
 
Join Date: Apr 2007
Location: Ottawa ON Canada
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jase2 View Post
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 View Post
Can you post a screenshot? And this does indeed make a very odd case.
What exactly would be the most helpful screen?
Reply With Quote
  #10  
Old 03-20-2008, 09:46 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07508 seconds
  • Memory Usage 2,284KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete