This forum has been archived. All content is frozen. Please use KDE Discuss instead.

webinterface bugged when using "display_errors = On&quo

Tags: None
(comma "," separated)
Zajec
Registered Member
Posts
53
Karma
0
I use PHP configured to display every error:
Code: Select all
zajec@acer:~> egrep '^display_errors|^error_reporting' /etc/php5/cli/php.ini
error_reporting  =  E_ALL
display_errors = On


Currently, KTorrent's php_handler.cpp generates code like this (for details.php):
Code: Select all
<?php
function globalInfo()
{
return array();
}
function downloadStatus()
{
return array();
}
$_REQUEST[torrent]="1";
(...)
what results in notice:
Code: Select all
Notice: Use of undefined constant torrent - assumed 'torrent' in /home/zajec/- on line 10



This is big problem for coldmilk skin because adding such a line with notice makes XML file invalid. The result is that coldmilk doesn't work at all, because JavaScript can't get list of torrents from XML document!

Hope I explained this clear :-)

Could someone apply patch to SVN and port it to KDE4, please? http://files.zajec.net/ktorrent.php.dis ... s.on.patch
George
Moderator
Posts
5421
Karma
1

Thu Dec 20, 2007 5:03 pm
I am testing it right now
George
Moderator
Posts
5421
Karma
1

Thu Dec 20, 2007 5:10 pm
Patch is committed, will port it to KDE4 later today


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]