Trouble with WebFrontend and Queue-Commands

Get help, report and discuss bugs.
TheSource

Trouble with WebFrontend and Queue-Commands

Post by TheSource » 06 Oct 2008, 17:24

Hi there,

I have some trouble with the Web-Frontend. When I try to edit the queue, don't matter what I try, I getting the following Error: "Notice: RPC: method "editqueue", error 2 - Invalid parameter in /var/www/localhost/htdocs/nzbgetweb/functions.php on line 143".

I can pause and resume the server without problems, so the communication between Server and php-Script is working. Maybe someone can help me?

Thanks in advance!


Greetz
TheSource

TheSource

Re: Trouble with WebFrontend and Queue-Commands

Post by TheSource » 06 Oct 2008, 17:34

Forgot to mention that I'm using Version 0.5.1 of nzbget and 1.2 of the webFrontend.


TheSource

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Trouble with WebFrontend and Queue-Commands

Post by hugbug » 07 Oct 2008, 06:31

This error occurs if nzbgetweb 1.0 is used with nzbget 0.5.0 or 0.5.1.
Please check your versions.
- nzbget 0.4.1 and earlier versions need nzbgetweb 1.0;
- nzbget 0.5.0 or 0.5.1 need nzbgetweb 1.1 or 1.2;

TheSource

Re: Trouble with WebFrontend and Queue-Commands

Post by TheSource » 07 Oct 2008, 13:53

Hi,

thanks for your reply. I downloaded the newest versions available.
NZBGet 0.5.1 stable
NZBGetWeb 1.2 stable

Doesn't work with these versions. I also tried NZBGetWeb 1.2-1 testing.
Same Problem with this version.

Maybe a bug in the current versions?


Greetz
TheSource

TheSource

Re: Trouble with WebFrontend and Queue-Commands

Post by TheSource » 07 Oct 2008, 14:27

I now alos tried NZBGet 0.5.0 and NZBGetWeb 1.0, same Problem there.

I'm using Gentoo, maybe I forgot anything?
php is installed with xml and xmlrpc, as WebServer I'm using Lighttpd.

The Main-Program works great but I want to change my Queue through the Web-Frontend.
Hope someone got an idea.


Greetz
TheSource

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Trouble with WebFrontend and Queue-Commands

Post by hugbug » 07 Oct 2008, 15:02

What is your php-version?

Set the option "rpc_api" in settings.php to "json-rpc-ext". How it works now (if works at all)?
I now alos tried NZBGet 0.5.0 and NZBGetWeb 1.0, same Problem there.
That's OK, this combination shouldn't work.

TheSource

Re: Trouble with WebFrontend and Queue-Commands

Post by TheSource » 07 Oct 2008, 15:37

Hi,

Fatal error: Call to undefined function json_encode() in /var/www/localhost/htdocs/nzbgetweb/functions.php on line 185

That's the Error-Message after logged in into the Web-Frontend with the json-rpc-ext option.

TheSource

Re: Trouble with WebFrontend and Queue-Commands

Post by TheSource » 07 Oct 2008, 15:45

Forgot to pot my php-version.

[ Found these USE variables for dev-lang/php-5.2.6-r7 ]
U I
- - adabas : Adds support for the Adabas database engine
- - apache2 : Add Apache2 support
- - bcmath : Adds support for libbcmath
+ + berkdb : Adds support for sys-libs/db (Berkeley DB for MySQL)
- - birdstep : Adds support for the Birdstep Database Server
+ + bzip2 : Use the bzlib compression library
- - calendar : Adds support for calendars (not using mcal!)
- - cdb : Adds support for the CDB database engine from the author of qmail
+ + cgi : Add CGI script support
- - cjk : Adds support for Multi-byte character languages (Chinese, Japanese, Korean)
+ + cli : Enable CLI SAPI
- - concurrentmodphp : Make it possible to load both mod_php4 and mod_php5 into the same Apache2 instance (experimental)
+ + crypt : Add support for encryption -- using mcrypt or gpg where applicable
- - ctype : Enables ctype functions
- - curl : Adds support for client-side URL transfer library
- - curlwrappers : Adds support for using curl in streams
- - db2 : Enables support for IBM DB2 database server
- - dbase : Adds support for dbase file format
- - dbmaker : Adds support for dbmaker database server
- - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
- - discard-path : Switch on common security setting for CGI SAPI
- - doc : Adds extra documentation (API, Javadoc, etc)
- - empress : Adds support for the Empress database server
- - empress-bcs : Adds local access support for the Empress database server
- - esoob : Adds support for Easysoft OOD database
- - exif : Adds support for reading EXIF headers from JPEG and TIFF images
- - fastbuild : Build PHP quicker (experimental)
- - fdftk : Add supports for Adobe's FDF toolkit.
- - filter : Add filter extension support
- - firebird : Adds support for the Firebird relational database
- - flatfile : Adds dbm support for flat files
- - force-cgi-redirect : Switch on common security setting for CGI SAPI
- - frontbase : Adds support for the frontbase sql server
- - ftp : Adds FTP (File Transfer Protocol) support
- - gd : Adds support for media-libs/gd (to generate graphics on the fly)
- - gd-external : Use the external version of gd rather than the bundled one (possibly dangerous)
+ + gdbm : Adds support for sys-libs/gdbm (GNU database libraries)
- - gmp : Adds support for dev-libs/gmp (GNU MP library)
- - hash : Enable the hash extension
+ + iconv : Enable support for the iconv character set conversion library
- - imap : Adds support for IMAP (Internet Mail Application Protocol)
- - inifile : Adds dbm support for .ini files
- - interbase : Adds support for Interbase database
- - iodbc : Adds support for iODBC library
+ + ipv6 : Adds support for IP version 6
- - java-external : Use the external java extension rather than the bundled one
- - json : Enable JSON support
- - kerberos : Adds kerberos support
- - kolab : Adds support for the Kolab groupware server
+ + ldap : Adds LDAP support (Lightweight Directory Access Protocol)
- - ldap-sasl : Add SASL support for the PHP LDAP extension
- - libedit : Use the libedit library (replacement for readline)
- - mcve : Support for the MCVE credit card payment system
- - mhash : Adds support for the mhash library
- - msql : Adds support for the MSQL database server
- - mssql : Adds support for Microsoft SQL Server database
- - mysql : Adds mySQL Database support
- - mysqli : Adds support for the improved mySQL libraries
+ + ncurses : Adds ncurses support (console display library)
+ + nls : Adds Native Language Support (using gettext - GNU locale utilities)
- - oci8 : Adds Oracle 8 Database Support
- - oci8-instant-client : Use dev-db/oracle-instantclient-basic as Oracle provider instead of requiring a full Oracle server install
- - odbc : Adds ODBC Support (Open DataBase Connectivity)
- - pcntl : Adds support for process creation functions
+ + pcre : Adds support for Perl Compatible Regular Expressions
- - pdo : Enable the bundled PDO extensions
- - pic : Build Position Independent Code. Do not utilize this flag unless you know what you're doing
- - posix : Adds support for POSIX-compatible functions
- - postgres : Adds support for the postgresql database
- - qdbm : Adds support for the qdbm (Quick Database Manager) library
+ + readline : Enables support for libreadline, a GNU line-editing library that almost everyone wants
- - recode : Enables support for the GNU recode library
+ + reflection : Enable the reflection extension (Reflection API)
- - sapdb : Adds support for SAP DB
+ + session : Adds persistent session support
- - sharedext : Adds support for building shared extensions in PHP
- - sharedmem : Adds support for shared memory use
- - simplexml : support for SimpleXML
+ + snmp : Adds support for the Simple Network Management Protocol if available
- - soap : Adds support for SOAP (Simple Object Access Protocol)
- - sockets : Adds support for tcp/ip sockets
- - solid : Adds support for the Solid database engine
- - spell : Adds dictionary support
+ + spl : Adds support for the Standard PHP Library
- - sqlite : Adds support for sqlite - embedded sql database
+ + ssl : Adds support for Secure Socket Layer connections
- - suhosin : Add Suhosin support (patch and extension from http://www.suhosin.org/)
- - sybase : Adds support for the Sybase SQL Database Server
- - sybase-ct : Adds support for Sybase-CT
- - sysvipc : Support for System V-compatible inter-process communication
- - threads : Adds threads support for various packages. Usually pthreads
- - tidy : Adds support for HTML Tidy
- - tokenizer : Adds support for the PHP file parser
+ + truetype : Adds support for FreeType and/or FreeType2 fonts
+ + unicode : Adds support for Unicode
- - wddx : Adds support for Web Distributed Data eXchange
+ + xml : Add support for XML files
- - xmlreader : Enable XMLReader support
+ + xmlrpc : Support for xml-rpc library
- - xmlwriter : Enable XMLWriter support
- - xpm : Adds support for XPM graphics format
- - xsl : Check/Support flag for XSL library (version 1)
- - yaz : Adds in optional support for the Z39.50 Protocol for Information Retrieval (YAZ)
- - zip : Enable ZIP file support
- - zip-external : Enable ZIP file support (external PECL extension)
+ + zlib : Adds support for zlib (de)compression

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Trouble with WebFrontend and Queue-Commands

Post by hugbug » 07 Oct 2008, 17:40

Found the bug in XML-RPC-support in nzbget. It doesn't occur with JSON-RPC, which is used by default with php 5.2 or later, but it is probably not included in your php installation.
I'll fix the bug, but right now it's easier to make a little change in nzbgetweb.

Please use the attached file (for nzbgetweb 1.2).
Attachments
status.zip
Workaround for XML-RPC bug
(4.61 KiB) Downloaded 233 times

TheSource

Re: Trouble with WebFrontend and Queue-Commands

Post by TheSource » 07 Oct 2008, 18:53

Hey,

thanks for the fast fix. Works great now :)


Greetz
TheSource

Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests