Forum Replies Created

Viewing 15 replies - 256 through 270 (of 492 total)
  • Plugin Author dashed-slug.net

    (@dashedslug)

    Thanks for sending me the complete stack trace.

    This error is expected in normal operation. For robustness the plugin rediscovers some transactions that have already been discovered. It then attempts to insert them into the database, but if they already exist it fails and moves on.

    Are you observing any issues such as transactions failing? If not, then this error should not be a problem.

    These error messages can quickly fill up your logs. There are two possible solutions to this:

    1. Disable logging with define( 'WP_DEBUG_LOG', true ); in your wp-config.php.

    2. Install logrotate on your wp-content/debug.log to minimize the amount of disk space that logs take.

    Do let me know if you observe any problems in plugin operation. Thanks.

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hi,

    Your filter call looks correct. Additionally, the XRP coin should be supported when you use the CoinPayments adapter, as long as you have enabled it both in your CoinPayments account and in the coin adapter settings.

    Additionally, are you certain that you get that error while calling the wallets_api_balance filter? The Exception you report is normally returned when you request a new deposit address from the adapter (wallets_deposit_address filter) while the wallet’s API is not contactable.

    If you could show me the entire stack trace for that exception, maybe we could figure out what is going on.

    Let me know please.

    kind regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello,

    Unfortunately the plugin architecture does not easily lend itself to this.

    The reason is that the data displayed is live data, made available through an API, that only exposes information relevant to the current user. The frontend UIs have no access to other people’s balances.

    There is nothing stopping you from calling the PHP API to get other user’s balances. Documentation is here: https://wallets-phpdoc.dashed-slug.net/classes/Dashed_Slug_Wallets_PHP_API.html#method_api_balance_filter

    You could then write some PHP code to loop over your users and write out any markup you like. Hope this helps!

    kind regards
    Alex

    Plugin Author dashed-slug.net

    (@dashedslug)

    Thank you for this amazing review! 🙂

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello again,

    Never mind, you don’t have to run the query above.

    I was able to reproduce the problem on my end. It’s not a critical issue, but it is now fixed in patch 3.3.6.

    Again thank you for your help!

    kind regards
    Alex

    Plugin Author dashed-slug.net

    (@dashedslug)

    This is probably because, due to the previous error, you have some transactions that are pending with zero retries left. If this is the case, it can be fixed very easily.

    But first, could you please send me the result of this query?

    SELECT category,status,retries,COUNT(*) FROM wp_wallets_txs GROUP BY category,status,retries;

    Thanks

    Plugin Author dashed-slug.net

    (@dashedslug)

    OK it turns out that there was a bug in the code after all. This is fixed in 3.3.4.

    My fault, apologies for the trouble and thanks very much for assisting me to resolve this.

    Do let me know if you continue to face problems after upgrading, although it is very unlikely.

    kind regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Thank you.

    It seems that your schema upgrade has succeeded. You do not need to rebuild the constraint.

    I noticed on the EOT block explorer that at least one of the problematic transactions has multiple outputs, I’m guessing to multiple users on your system.

    You had requested that feature here and it was implemented in 3.3.2, however it is possible that there was some bug in that patch.

    I will have to investigate further.

    Will get back to you as soon as possible.

    Plugin Author dashed-slug.net

    (@dashedslug)

    The reason I’m asking the above question is because the wp_wallets_txs table should have a unique constraint on txid, address, and symbol.

    Previously the constraint only involved txid and symbol. It is possible that the recent schema upgrade failed for you because your tables are large.

    IF that is the case, then you could do the following:

    1. Deactivate the plugin.
    2. Backup your database.
    3. Recreate the unique constraint with:
    ALTER TABLE wp_wallets_txs DROP INDEX uq_tx_idx, ADD UNIQUE KEY uq_tx_idx(txid,address,symbol);
    4. Activate the plugin.

    If you are not sure whether you need to do this, please share with me the output of the SHOW INDEX query and I’ll let you know.

    kind regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello,

    No, unfortunately this is not possible.

    The frontend can only display data made available by the JSON API, and the JSON API returns only transactions for the logged in user.

    regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    OK thank you.

    Can you also please show me the output of this SQL query?

    SHOW INDEX FROM wp_wallets_txs;

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello again,

    The latest version 3.3.3 of the plugin writes out error messages in the event when a transaction fails to be inserted to the DB.

    Could you please report this error to me? In your logs there will be lines of the form:

    action_wallets_transaction Last DB error: plus some error message.

    The error message should be indicative of the problem you are facing.

    Thanks

    Plugin Author dashed-slug.net

    (@dashedslug)

    Thanks for the additional info.

    CPU and memory capacity are irrelevant. It’s good to know that you have ample disk space. But just because you have a 3TB disk does not mean that it is necessarily available for use by the DB. Could you check that no quotas are in effect?

    I will release a patch where the plugin will write out relevant error messages in the case, where DB inserts fail. This should shed some light to your situation.

    In the meantime, could you please check the disk space that your DB takes up and let me know what you find?

    kind regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello,

    Glad to hear that your site is growing fast.

    My first guess about this problem is that you should check how much space is available on your host for the MySQL database. If you are on a managed host then you should ask your hosting provider. Increasing the available space should resolve the problem.

    As a temporary solution you could enable “Old transaction aggregation” in the cron settings. This will batch together old transactions and will save some space. But ultimately this is a fundamental limitation of the plugin – if you are saving transactions on your database, then you are obviously limited by the free space available for that database.

    Please let me know if increasing the space allotted to your database has fixed your issue.

    kind regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Thank you so much for the great review!

    I will continue to support and improve this plugin and its extensions.

    kind regards
    Alex

Viewing 15 replies - 256 through 270 (of 492 total)