PDA

View Full Version : Error in external.php refresh it goes away.


BBR-APBT
04-16-2009, 01:10 PM
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 1239891113 at 1239891113 ---------------

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

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

TheLastSuperman
04-16-2009, 01:13 PM
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, 01: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, 01: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, 02:12 PM
How did you go about disabling the mods?

This is line 474 of class_postbit_alt.php:
($hook = vBulletinHook::fetch_hook('postbit_display_complet e')) ? eval($hook) : false;

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

BBR-APBT
04-16-2009, 02:34 PM
How did you go about disabling the mods?

This is line 474 of class_postbit_alt.php:
($hook = vBulletinHook::fetch_hook('postbit_display_complet e')) ? 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.