Page 1 of 1

[bug] lib/database.lib.php on line 618

Posted: Thu May 05, 2016 2:35 pm
by thoughtless
Page : https://domain.com/admin.php?page=walle ... ort#anchor
Wallet -> AUTO-GEN ADDRESSES -> EXPORT KEYS

Warning: Missing argument 1 for list_conf_keys(), called in /var/www/domain.com/public_html/inc/admin/keys.inc.php on line 221 and defined in /var/www/domain.com/public_html/lib/database.lib.php on line 618

Notice: Undefined variable: start in /var/www/domain.com/public_html/lib/database.lib.php on line 619

Re: [bug] lib/database.lib.php on line 618

Posted: Fri May 06, 2016 1:13 pm
by bitfreak
That warning shouldn't cause any problems but it is the result of a bug and it may prevent exporting a wallet with more than 20 keys. To fix it open the /lib/database.inc.php file and add this function above the list_conf_keys() function:

Code: Select all

function export_conf_keys() {
  return select_from_where('Orders', 'OrderID, Amount, Shipping, KeyData', 
  "(INSTR(KeyData, 'empty:') = 0) AND (Status = 'Confirmed' OR Amount > 0)");
}
Then open the /inc/admin/keys.inc.php file and replace the call to list_conf_keys() on line 221 with export_conf_keys().