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

Look here if you're having trouble with BitShop
Post Reply
thoughtless
Posts: 19
Joined: Fri Apr 01, 2016 11:22 am

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

Post 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
User avatar
bitfreak
Site Admin
Posts: 98
Joined: Thu Dec 10, 2015 6:57 pm
Location: Australia
Contact:

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

Post 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().
Post Reply