PDA

View Full Version : problem with rss


manuelsechi
06-18-2012, 01:30 PM
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.cgi?url=http%3A%2F%2Fwww.musicalstore2005.co m%2Frss.php%3FcPath%3D146%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:

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


to

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