vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   problem with rss (https://vborg.vbsupport.ru/showthread.php?t=284593)

manuelsechi 06-18-2012 01:30 PM

problem with rss
 
hello

what can I do to get my rssposter.php working with biggest rss files?

thank you
Manuel

kh99 06-18-2012 01:50 PM

We might need more information - what problem are you having exactly? And it sounds like you believe it has to do with the size of the feed?

manuelsechi 06-18-2012 02:03 PM

when I try to setup a new rss feed I get this error:

XML Error: Invalid document end at line 10612

when I try with a smaller one I get no errors (this one is about 4MB)

thank you

manuelsechi 06-19-2012 02:56 PM

hello

any idea?

thanks

kh99 06-19-2012 03:09 PM

Hmm...are you sure it's the size and not that the document is actually bad? If this is a feed you're getting from another site, can you post the url?

manuelsechi 06-20-2012 09:23 AM

this is the result using the W3C Validator

http://validator.w3.org/appc/check.c...D146%26ref%3D4

the file is largest then 2MB, maybe rssposter is also limited to 2MB?

thank you

kh99 06-20-2012 12:08 PM

I've looked at the code and didn't see anything obvious that would limit it to 2M. There is a php setting "upload_max_filesize" that seems to have a default of 2M, but since this isn't an uploaded file I don't see why it would apply. But it's probably worth trying to increase it and see what happens.

Another thought is that in the file includes/class_css_parser.php there's a function at the top, fetch_file_via_socket() that gets the data. It looks like it tries to use curl functions if available, and if not it uses a socket. You might try editing it and chaging the line:

Code:

        if (function_exists('curl_init') AND $ch = curl_init())

to

Code:

        if (0 AND function_exists('curl_init') AND $ch = curl_init())

to force it to use a socket instead of curl. But that's just a stab in the dark.

manuelsechi 06-20-2012 04:00 PM

ok thank you


All times are GMT. The time now is 03:36 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.01088 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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