phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
227 core / general minor always 2004-04-16 18:40 2004-04-19 20:56
brycen  
 
normal  
feedback 5.4 (stable)  
open  
none  
none  
Apache error log entries when runing phpMyEdit
[root@hardhat bryce]# tail -f /var/log/httpd/error_log
[Mon Apr 12 13:52:50 2004] [error] PHP Warning: Undefined offset: 81839 in /var/www/html/nextbus/phpMyEdit-5.4/phpMyEdit.class.php on line 2663
[Mon Apr 12 13:52:50 2004] [error] PHP Warning: Undefined offset: 81840 in /var/www/html/nextbus/phpMyEdit-5.4/phpMyEdit.class.php on line 2663
[Mon Apr 12 13:52:50 2004] [error] PHP Warning: Undefined offset: 81841 in /var/www/html/nextbus/phpMyEdit-5.4/phpMyEdit.class.php on line 2663
[Mon Apr 12 13:52:50 2004] [error] PHP Warning: Undefined offset: 81842 in /var/www/html/nextbus/phpMyEdit-5.4/phpMyEdit.class.php on line 2663
[Mon Apr 12 13:52:50 2004] [error] PHP Warning: Undefined offset: 81843 in /var/www/html/nextbus/phpMyEdit-5.4/phpMyEdit.class.php on line 2663
[Mon Apr 12 13:52:50 2004] [error] PHP Warning: Undefined offset: 81844 in /var/www/html/nextbus/phpMyEdit-5.4/phpMyEdit.class.php on line 2663
[Mon Apr 12 13:52:50 2004] [error] PHP Warning: Undefined offset: 81845 in /var/www/html/nextbus/phpMyEdit-5.4/phpMyEdit.class.php on line 2663
[Mon Apr 12 13:52:50 2004] [error] PHP Warning: Undefined offset: 81846 in /var/www/html/nextbus/phpMyEdit-5.4/phpMyEdit.class.php on line 2663
[Mon Apr 12 13:52:50 2004] [error] PHP Warning: Undefined offset: 81847 in /var/www/html/nextbus/phpMyEdit-5.4/phpMyEdit.class.php on line 2663
[Mon Apr 12 13:52:50 2004] [error] PHP Warning: Undefined offset: 81848 in /var/www/html/nextbus/phpMyEdit-5.4/phpMyEdit.class.

Bug Notes
hbernard   
2004-04-16 22:46   
Yeah, this is because we are trying in the same operation to change an array an to count how many elements it has....

$this->sfn[count($this->sfn) - 1] = "$k";

works but produce those warnings....

Fix should be:

$c = count($this->sfn);
$this->sfn[$c - 1] = "$k";

Can you confirm ?

edited on: 2004-04-16 22:50
brycen   
2004-04-19 20:15   
Well, that only seems to be one of them. From my apache error log ( tail -f /var/log/httpd/error_log ) I now see:

[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined variable: qpviewStr in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 2040
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined variable: qpcopyStr in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 2041
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined variable: qpchangeStr in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 2042
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined variable: qpdeleteStr in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 2043
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: input in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: options in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 200
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined index: trimlen in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 1259
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined variable: var_to_total in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 2159
[Mon Apr 19 11:13:28 2004] [error] PHP Warning: Undefined variable: in /var/www/html/nextbus/phpMyEdit-CVS/phpMyEdit.class.php on line 2159


This is with phpMyEdit from CVS.
hbernard   
2004-04-19 20:56   
(These are notices, I wonder why they are called Warnings... What is your apache/php version ?)

It seems when error are not outputed, there are written in the log file.
Hum...

See #25, I uploaded a patch against most of those Notices.

but nepto choosed to not display Notice and not to fix them.

I need to think about this.

edited on: 2004-04-19 20:56