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

King Kovifor 03-20-2008 09:48 PM

Quote:

Originally Posted by owlbill (Post 1470127)
What exactly would be the most helpful screen?

The plugin screen. So that I can look at what plugins you have and what hooks they are on. That way I can see if any might be effecting your FAQ page.

Lynne 03-20-2008 09:48 PM

Have you modified your FAQ template at all? Or how about your headinclude template?

owlbill 03-20-2008 09:52 PM

Quote:

Originally Posted by Jase2 (Post 1470133)
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 :)

Database is clean and fine AFAIK. I am not sure when this started actually, seems nobody ever goes the the FAQ page so I never heard about it. I have thought about just changing the link from FAQ to something else altogether.

Quote:

Originally Posted by King Kovifor (Post 1470136)
The plugin screen. So that I can look at what plugins you have and what hooks they are on. That way I can see if any might be effecting your FAQ page.

Ok, screen caps on the way.

https://vborg.vbsupport.ru/external/2008/03/10.gif
http://i246.photobucket.com/albums/g...ll/plugin1.gif

https://vborg.vbsupport.ru/external/2008/03/11.gif
http://i246.photobucket.com/albums/g...ll/plugin2.gif

https://vborg.vbsupport.ru/external/2008/03/12.gif
http://i246.photobucket.com/albums/g...ll/plugin3.gif

Quote:

Originally Posted by Lynne (Post 1470138)
Have you modified your FAQ template at all? Or how about your headinclude template?

No, neither of those has been modified at all.

Jase2 03-20-2008 10:04 PM

Have you looked in the database? Anything you can spot that looks strange? How does the faq table look?

If you just use the native vBulletin code, this cannot happen. Definitely caused by an hack.

Regards Jason :)

King Kovifor 03-20-2008 10:07 PM

When you disabled the plugins, did this problem go away?

SEOvB 03-20-2008 10:09 PM

adv forum rules

King Kovifor 03-20-2008 10:11 PM

Quote:

Originally Posted by FRDS (Post 1470169)
adv forum rules

Is this a known problem with that hack, have you experienced this problem, or is this just a guess?

owlbill 03-20-2008 10:11 PM

Quote:

Originally Posted by Jase2 (Post 1470161)
Have you looked in the database? Anything you can spot that looks strange? How does the faq table look?

If you just use the native vBulletin code, this cannot happen. Definitely caused by an hack.

Regards Jason :)

I will check into the database more on Saturday, it is closing time now and I only do backend forum work when I am at work. No access from home yet.

Quote:

Originally Posted by King Kovifor (Post 1470166)
When you disabled the plugins, did this problem go away?

No, it did not. I am wondering if it might be remnants from a removed plugin which I hope the database checking might uncover.


Thanks for the help so far, I will be back at this over the weekend.

King Kovifor 03-20-2008 10:15 PM

Doing a database back-up from your ACP should allow you to view several of the database's tables. But disabling all plugins shouldn't cause remnants of old plugins to effect it.

owlbill 03-22-2008 12:12 PM

Ok, now I am feeling a bit lost. What might I be looking for in the DB? I can view it also through cPanel BTW.

Lynne 03-22-2008 03:43 PM

I don't know what you would look for in the database, perhaps Jason can explain that better.

Have you tried redownloading vbulletin from vb.com and the reuploading a fresh faq.php file to your site in ascii mode? Have you tried viewing the faq from a total default vb style?

I'm kinda at a loss here on what to suggest to you.

King Kovifor 03-22-2008 03:55 PM

Quote:

Originally Posted by owlbill (Post 1471530)
Ok, now I am feeling a bit lost. What might I be looking for in the DB? I can view it also through cPanel BTW.

Not sure, I was just suggesting how you could do it without the backend access you were talking about.

owlbill 03-22-2008 04:01 PM

I am downloading the freshest VB 3.6.8 PL2 and will re-do the upload with that and report back here.

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

--------------------------
--------------------------

Ok, so after I uploaded all new VB non-iamge files ASCII etc., I even created a new No Parent style and chose it, this is what i get when i go to my index page:

Warning: Unknown(http://holta-racing.com/hacked.htm): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /index.php(540) : eval()'d code on line 2

Warning: Unknown(http://holta-racing.com/hacked.htm): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /index.php(540) : eval()'d code on line 2

Warning: (null)() [function.include]: Failed opening 'http://holta-racing.com/hacked.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /index.php(540) : eval()'d code on line 2

------------------------
------------------------

For what it's worth, line 540 of my index.php is:

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

Basically the same as the FAQ page, but calling of course to a different template.

King Kovifor 03-22-2008 05:36 PM

It seems like someone tried to "hack" your board and include hacked.htm. Is there a hook right before the fetch_template? And it may be within your global plugins since it is now affecting your index.php.

owlbill 03-22-2008 06:09 PM

The Hook in the faq.php before the fetch_template line is:

($hook = vBulletinHook::fetch_hook('faq_complete')) ? eval($hook) : false;

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

I wonder if reuploading the actual plug-in files would be better since the vb files seem to make no difference. Perhaps it is the plugin as you say that might be the problem.

Lynne 03-22-2008 06:23 PM

Have you done a search in your templates for "hacked" at all? I think that is what I would do next.

owlbill 03-22-2008 06:46 PM

Just searched templates for "hack" and "hacked" with no results.

Lynne 03-22-2008 07:02 PM

How about hacked.htm? You should be searching for '%hack%' perhaps to include all variations. Somehow, somewhere, it has the idea that it needs to include that file. So, you need to find out where it is calling that. I do all the file changes on my computer and then upload them to the server, so I guess if you do the same, I would go replace every single file with the copy you have on your computer.

Even when you finally get this fixed, you need to be thinking about security and how it is that this happened in the first place. Look at the modifications you have installed and make sure they are all up-to-date and read the threads to see if any issues have been brought forth lately that may have led to this happening to you.

owlbill 03-22-2008 07:20 PM

I have found nothing anywhere similar to holta, racing, hack, hacked, or the like. I am totally stumped. I had thought about loading fresh VB on our local test server and step by step loading up all our customization and mods to see if something there triggered this error.

The big bother for me is that on the original problem faq.php page, all the "reference" areas in the () marks are empty.

King Kovifor 03-22-2008 08:14 PM

Hm. I would say open a vB.com support ticket but they will probably pin it on a bad hack... Sadly enough.

I am at a complete loss on this problem.

owlbill 03-22-2008 08:22 PM

Well, I got that idea but of course, when the "I did all that already and got no results" reply was given to "upload all non-image vb files, disable plugins yadda yadda" generic instructions, I was then given "that's not possible". So I imagine I would not get much more help there. They are positive it's a result of a mod installation.

I now wish I knew more about the coding and was able to try to trace it down better. Like a line by line analysis of the faq.php page to start, as this is the linked page causing the trouble. Just that there are so many "calls" to other coding, it is hard to nail it down when there are no clues in the returned error message.

King Kovifor 03-22-2008 08:26 PM

Can you send me your index.php and faq.php file? Through e-mail of course. I will gladly take a look at it and see if I can find anything.

Jase2 03-22-2008 08:30 PM

If you re-upload all files, overwriting the ones on your server, as well as disabling the plugin system by adding define('DISABLE_HOOKS', true); right under <?php -- then I honestly cannot see how you can get this error.

Check for any suspicious files on your webserver, delete any you find. However, this is definitely caused by a third part add-on.

Regards Jason :)

owlbill 03-22-2008 08:56 PM

Quote:

Originally Posted by King Kovifor (Post 1471951)
Can you send me your index.php and faq.php file? Through e-mail of course. I will gladly take a look at it and see if I can find anything.

Tried sending to the hotmail addy in your profile, it bounced back.

Quote:

Originally Posted by Jase2 (Post 1471953)
If you re-upload all files, overwriting the ones on your server, as well as disabling the plugin system by adding define('DISABLE_HOOKS', true); right under <?php -- then I honestly cannot see how you can get this error.

Check for any suspicious files on your webserver, delete any you find. However, this is definitely caused by a third part add-on.

Regards Jason :)

I agree that should fix this, but it has not on numerous attempts. It is quite possible that I am a complete moron and am missing some simple little issue here somewhere.

King Kovifor 03-22-2008 08:58 PM

Quote:

Originally Posted by owlbill (Post 1471975)
Tried sending to the hotmail addy in your profile, it bounced back.

I agree that should fix this, but it has not on numerous attempts. It is quite possible that I am a complete moron and am missing some simple little issue here somewhere.

I sent you a PM. And If you added the disable plugins code to your Config, and it still occurs, something is happening somewhere.

owlbill 03-22-2008 09:00 PM

I am out of here until Tuesday (maybe Monday) but I am providing the faq.php and index.php if anyone wants to take a look. I have of course remove my VB license info from the files.

Thanks for the efforts so far. I really would like to resolve this instead of having to start over.

-- Attachments Removed. Since you aren't supposed to distribute them. :) This way you can't be reported or anything (even though you were asked for them). And since it was checked and said fine by two people, I thought it was fine in this situation. King Kovifor --

Lynne 03-22-2008 09:05 PM

Those pages are fine.

I am still fixated on your FAQ and headinclude template, personally. I don't suppose you'd mind attaching those?

King Kovifor 03-22-2008 09:08 PM

I had a bright idea about this, but it doesn't seem to be falling through for me. I thought that since it is giving you fetch_template errors, that there might be a hook in there. But not. I would think that it is being added somewhere in your code if it is being included.

Have you checked the one file that you aren't supposed to overwrite? The config.php for any rouge include()'s or require()'s? If you were indeed hacked and someone was trying to include something, that might be a viable place to store it.

owlbill 03-23-2008 07:51 PM

Well, our site is hacked as you can see here http://thescubaforum.com

I will have to get into work tomorrow and upload again I guess with extra security measures.

Crap crap crap crap crap...............

Opserty 03-23-2008 08:42 PM

Quote:

Originally Posted by owlbill (Post 1472736)
Well, our site is hacked as you can see here http://thescubaforum.com

Thank doesn't look hacked to me...:confused: it seems your domain expired or something like that, you need to check with your hosting/domain name service provider on how to rectify this problem.

Regarding your original problem:

If this is your problematic line:
PHP Code:

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

Then your problem is style related. You should test your site in the default style and see if your problem persists. Do a test with and without disabling all plugins.


All times are GMT. The time now is 02:57 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.01425 seconds
  • Memory Usage 1,852KB
  • 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
  • (1)bbcode_php_printable
  • (17)bbcode_quote_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
  • (40)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