spacer.png, 0 kB
  May 19, 2013, 07:12:15

 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: "Improper NZB File"  (Read 944 times)
blue_q

Posts: 7


View Profile
« on: December 27, 2011, 16:40:38 »

I recently upgraded from 1.0.6 (with everything working) to 1.2.0. I had trouble updating the DB and had to do a purge and install.

I just tried using some NZB's from nzbclub.com and they fail with "Improper NZB File."

Here's the basic log:
Code:
Dec 26 2011 20:10:25 NOTICE Notice on line 180 in file /usr/share/urd/urdd/do_functions.php: Use of undefined constant LIBXML_PARSEHUGE - assumed 'LIBXML_PARSEHUGE' (8)
Dec 26 2011 20:10:25 WARNING Warning on line 112 in file /usr/share/urd/urdd/do_functions.php: parse_nzb(): Node no longer exists (2)
Dec 26 2011 20:10:25 WARNING Warning on line 180 in file /usr/share/urd/urdd/do_functions.php: SimpleXMLElement::__construct() expects parameter 2 to be long, string given (2)
Dec 26 2011 20:10:25 WARNING Warning on line 186 in file /usr/share/urd/urdd/do_functions.php: SimpleXMLElement::asXML(): Node no longer exists (2)
Dec 26 2011 20:10:25 NOTICE Cancelling download: Improper NZB file

I'm attaching the NZB file too. They have it listed as being posted 13 days ago. My provider is Supernews and I've never had an issue with downloading from NZBclub before the upgrade.
Logged
blue_q

Posts: 7


View Profile
« Reply #1 on: December 27, 2011, 16:51:45 »

BTW, urd doesn't try to load this NZB. I turned on debug and it doesn't indicate that it even read the file. The file was never copied to the /nzb/ directory either.
Logged
spearhead
Administrator
*
Posts: 1038


View Profile WWW
« Reply #2 on: December 28, 2011, 00:14:52 »

Seems that there is an issue with the php version. "Only available in Libxml >= 2.7.0 (as of PHP >= 5.3.2 and PHP >= 5.2.12)". You might try to remove the parameter LIBXML_PARSEHUGE and replace it by 0 in the file /usr/share/urd/urdd/do_functions.php at line 180. I'll add a test for this somewhere in URD.

I rewrote the entire nzb handling code, because it was flawed in some cases. I just tested the NZB but it worked just fine here. So I think that temp fix should make it work again. Thanx for posting.

Logged
blue_q

Posts: 7


View Profile
« Reply #3 on: December 28, 2011, 02:04:37 »

Cool. I feel better that it wasn't my stupidity. Smiley

But this may be... it still isn't working for me. I changed line 180 to:
Code:
         $nzb_file = @(new SimpleXMLElement($url, 0, TRUE));

Nevermind. It was my stupidity. I had to "turn off" and "turn on" urdd for the changes to take effect. Now it works.

Thank you!
Logged
blue_q

Posts: 7


View Profile
« Reply #4 on: December 28, 2011, 02:07:37 »

I still have the issue with the other NZB file not loading. It's the one in the second post in the 7zip file.

I thought maybe that was because the NZB is over 2 MB.
Logged
spearhead
Administrator
*
Posts: 1038


View Profile WWW
« Reply #5 on: December 28, 2011, 11:48:53 »

That may be the setting for PHP upload
You can see them under help/debug as:
Post_max_size   32M (Should be 2M or more)
Upload_max_filesize   32M (should be 2M or more)
Edit your php.ini (note: restart apache afterwards)

It got uploaded here fine. (But that may be due to the LIBXML_PARSEHUGE setting, though I don't expect that.)
Logged
blue_q

Posts: 7


View Profile
« Reply #6 on: December 28, 2011, 14:04:49 »

Thanks. I found that Upload_max_filesize was at 2M. Changed that in both php.ini files I found:
/etc/php5/cli/php.ini
/etc/php5/apache2/php.ini

Restarted apache and urd, but it still doesn't seem to do anything. The log file for urd doesn't show an upload occurred.

THEN... tried again 5 minutes later and worked fine. Although that time, I didn't change the download name to "101_gadgets". Is it possible changing the name was causing an issue?

BTW, thank you VERY much for your help!
Logged
spearhead
Administrator
*
Posts: 1038


View Profile WWW
« Reply #7 on: December 28, 2011, 14:42:53 »

You only have to change the apache2 version but it doesn't hurt.

Changing the dl name should not make any difference. But let me know if it doesn't work again, I'll have a look at it.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Amigri by Fakdordes
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB