vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Error in external.php refresh it goes away. (https://vborg.vbsupport.ru/showthread.php?t=211383)

BBR-APBT 04-16-2009 12:10 PM

Error in external.php refresh it goes away.
 
Code:

Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit_alt.php(474) : eval()'d code on line 43

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3254) in [path]/external.php on line 865

I get this error when I go to my external.php rss page. But if I refresh two times it goes away. I have no mods that touch the external. Any ideas on how to fix it?

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

also should I use external.php?type=RSS2&forumids=12

or external.php?type=RSS2&forumid=12

TheLastSuperman 04-16-2009 12:13 PM

Quote:

Originally Posted by BBR-APBT (Post 1792461)
Code:

Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit_alt.php(474) : eval()'d code on line 43

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3254) in [path]/external.php on line 865

I get this error when I go to my external.php rss page. But if I refresh two times it goes away. I have no mods that touch the external. Any ideas on how to fix it?

Open up each file in something like Notepad++ or an editor w/ the line #'s displayed and scroll to the corresponding line of code the error is listed as being on and see if anything looks finicky or if it's pointing to a file.... also class_postbit_alt? Check that out and see what you can find, you have access and I do not so be sure to be thorough when reviewing these files.

S-MAN

Dismounted 04-16-2009 12:15 PM

It actually looks like a modification is causing this. Disable your modifications and see if the error is still there.

The modification does not necessarily have to target external.php. Not targeting it is actually the problem (most likely).

BBR-APBT 04-16-2009 12:37 PM

I have disabled all mods and still same error.

Soon as you refresh it goes away. It only errors in a browser not a problem on rss feed.

Lynne 04-16-2009 01:12 PM

How did you go about disabling the mods?

This is line 474 of class_postbit_alt.php:
PHP Code:

        ($hook vBulletinHook::fetch_hook('postbit_display_complete')) ? eval($hook) : false

So, this error is caused by something using that hook location.

BBR-APBT 04-16-2009 01:34 PM

Quote:

Originally Posted by Lynne (Post 1792526)
How did you go about disabling the mods?

This is line 474 of class_postbit_alt.php:
PHP Code:

        ($hook vBulletinHook::fetch_hook('postbit_display_complete')) ? eval($hook) : false

So, this error is caused by something using that hook location.

How can I find out what all is in that hook?

I went to the products page and hit disable.

EDIT:Ok Ok I found out what it is its the only mod that uses that hook location with the foreach() in it.

Thanks for helping me track it down I will now go post in that thread.


All times are GMT. The time now is 09:19 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.02045 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_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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