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-2009, 09:58 AM
hotpursuite's Avatar
hotpursuite hotpursuite is offline
 
Join Date: Jan 2008
Location: İstanbul, Turkey
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Rss Feed Xml Error!



What is the problem missed the point? This has repeatedly give error. Rss does not work
What should i do?

Help me plase, Thank you.

Quote:
<br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/includes/class_postbit_alt.php(474) : eval()'d code</strong> on line <strong>21</strong><br /><?xml version="1.0" encoding="ISO-8859-9"?>
------^
Reply With Quote
  #2  
Old 06-20-2009, 08:56 PM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same problem Any help?...

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

This line shows several times.

This error appears when I use type=rss2 or forumids, without those params it is ok...

And as I can see in google - many forums have same problem. What is going on?
Reply With Quote
  #3  
Old 06-20-2009, 09:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Line 474 of class_postbit_alt.php:
PHP Code:
($hook vBulletinHook::fetch_hook('postbit_display_complete')) ? eval($hook) : false
Your error is from a modification. Turn it off, and the error should go away.
Reply With Quote
  #4  
Old 06-21-2009, 11:14 AM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used define('DISABLE_HOOKS', true); to disable whole plugin system, but still got same error... Does it is taken from some cache or problem is not in hook?

If it is cache how long I have to wait to check does it work or not and how can I figure out which hook it is without trying to disable one by one?

And one more thing - now it's not working even without parameters... Yesterday it was ok
Reply With Quote
  #5  
Old 06-21-2009, 12:33 PM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Default cache: 1 hour

vBulletin Options -> External Data Provider -> Cache Lifespan
Reply With Quote
  #6  
Old 06-21-2009, 03:41 PM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks I will turn off cache at night and seek guilty hook

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

The problem just disappear... But I think that it will come back. Is it possible that it depends on content of posts which are shown in RSS? Or...

One of my users wrote that who is on line produces such error:
Parse error: syntax error, unexpected T_STRING in /includes/functions_online.php(1170) : eval()'d code on line 67

Is it possible that booth those errors depends on some username? I don't know that author of post is send in RSS, but I don't believe that it resolves itself - so what could be the problem - content, username, something else?... As long as I can't reproduce error I cannot work on it, but here are such experienced vB programmers, so I hope someone good in it will help me
Reply With Quote
  #7  
Old 06-22-2009, 09:52 PM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Line 474 of class_postbit_alt.php:
PHP Code:
($hook vBulletinHook::fetch_hook('postbit_display_complete')) ? eval($hook) : false
Your error is from a modification. Turn it off, and the error should go away.
My error is:
Warning: Invalid argument supplied for foreach() in [path]includes[path]class_postbit_alt.php(474) : eval()'d code on line 165

Doesn't it tells that error occures in line 165?...
Reply With Quote
  #8  
Old 06-22-2009, 10:09 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, it is an error related to line 474 of class_postbit_alt.php . On that line is something else which gets eval()'d and the problem is on line 165 of that eval()'d code. Line 474 is a hook which evals some code and the error is in that code being eval()'d.
Reply With Quote
  #9  
Old 06-22-2009, 10:11 PM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just made tests and it's definitivelly not any hook.

I set RSS cache to 1 minute. Disabled all hooks by define('DISABLE_HOOKS', true); - tested does hooks are dissabled (forum looks ). Checked content of RSS. Wrote new post. Wait a minute - check again does new post is visible in RSS (so cache is refreshed) and then check with option forumids and type=rss2. And in both cases - fail.

As I wrote before for some time it was working again and now again is not working. I'm wondering does the content of posts or some usernames can matter here.

Somebody can help me?...
Reply With Quote
  #10  
Old 06-22-2009, 10:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try deleting that hook line in class_postbit_alt.php > save > upload and see what sort of error you then get.

If you still get the error, check your class_postbit_alt.php page and let us know what is on line 474 of it, maybe it is something different than what is on mine.
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 11:43 PM.


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.04212 seconds
  • Memory Usage 2,269KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_php
  • (2)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
  • (1)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