[Phpmyadmin-devel] notices in libraries/RecentTables.class.php
Marc Delisle
marc at infomarc.info
Tue Jun 21 21:40:11 CEST 2011
Aris Feryanto a écrit :
> Hi Marc,
>
> ----- Original Message -----
>> From: Marc Delisle <marc at infomarc.info>
>>
>> From current master, when browsing a table:
>>
>> Warning in ./libraries/RecentTable.class.php#190 array_unshift()
>> expects parameter 1 to be array, null given
>>
>> Backtrace
>>
>> ./libraries/RecentTable.class.php#190: array_unshift( NULL, string
>> sakila.actor, ) ./libraries/header.inc.php#22:
>> PMA_RecentTable->add( string sakila, string actor, )
>> ./libraries/header.inc.php#171: PMA_addRecentTable( string sakila,
>> string actor, ) ./libraries/tbl_links.inc.php#40:
>> require_once(./libraries/header.inc.php) ./sql.php#881:
>> require(./libraries/tbl_links.inc.php)
>>
>
> Odd. It shouldn't be NULL because it is always initialized when
> PMA_RecentTable class is being constructed. And I can't reproduce
> this warning. Is this warning found in demo server?
No but possibly, warnings and notices are turned off on the demo server.
On your development machine you should use this line in config.inc.php:
$cfg['Error_Handler']['display'] = true;
--
Marc Delisle
http://infomarc.info
More information about the Developers
mailing list