Forum Replies Created
-
AuthorPosts
-
alexg
KeymasterHello,
If you have not modified the templates, then the closing comment tag should be there.
If it’s not found, this is likely due to an error being interjected with the HTML. This is especially likely if you have not set
WP_DEBUG_DISPLAY
to false in your wp-config.php. Did you check the debug.log for errors?In any case, please do the following:
1. Ensure that you are not modified the templates.
2. Let me know which shortcode you are using, and with what attributes exactly.
3. Email me a regular user username and password, and the link to the page, so I can login and check the issue on your site.with regards
May 21, 2021 at 8:16 am in reply to: Run – Airdrop – Sorry, you are not allowed to access this page. #10577alexg
KeymasterHello,
Thank you for paying for membership, and sorry about that!
This is an issue that a few others had too, but I haven’t had the time to investigate why it is so.
Normally, on plugin activation, the plugin assigns the correct capabilities. But in some configurations this doesn’t work.
First, try to deactivate and re-activate the Airdrop extension. This may fix the issue.
If this doesn’t work, you can use any capability-editing plugin, to assign the following capabilities to the admin user:
publish_airdrops
edit_airdrops
edit_others_airdrops
delete_airdrops
delete_others_airdrops
read_private_airdrops
edit_airdrop
delete_airdrop
read_airdrop
A good plugin for editing capabilities is: https://wordpress.org/plugins/user-role-editor/
You can use it to edit the
Administrator
role and click on “Add Capability” to add the above capabilities. This will definitely fix the issue.Let me know if you face any difficulties with this. And if you have any more questions about the plugins, please open a new thread.
with regards
P.S. The activation code is likely in your spam folder and yes, it is the same code you saw on the website. It lets the premium plugin extensions discover updates despite not being hosted on wordpress.org. For more information about this, see here: https://www.dashed-slug.net/dashed-slug/extension-updates-activation/
alexg
KeymasterHello,
Thank you for the additional details. I will investigate this wallet soon.
You could comment out that line to test what happens. If you do, let me know. Does the wallet work without it?
But this is not a permanent solution because it would affect your other Monero-based wallets. You can’t just copy the code into a new plugin, there would be too many name collisions.
I have to build that wallet, understand what its authentication method is, if any, and then understand why it’s different. As you know, there are several possible authentication methods on HTTP: https://curl.se/libcurl/c/CURLOPT_HTTPAUTH.html
Perhaps it’s a fork from an earlier version of Monero, or it’s simply modified.
Once I have a clear picture of what other authentication methods are possible with these types of wallets, I can add to the coin adapter settings.
I have added this to my backlog. I will get back to you about this, hopefully in the next week.
with regards
alexg
KeymasterHello,
The Monero coin adapter returns this error if the response it gets from your wallet is a valid JSON response, but it does not include a “result” field.
In practice this could mean that there was a problem with authentication.
1. Is this error on a new wallet or on an existing wallet that suddenly stopped working?
2. Have you used the
--rpc-login
argument when startingmonero-wallet-rpc
?3. Is this a Monero wallet or other Monero fork? The Monero docs clearly state that
--digest
should be used. If you cannot curl to your wallet using--digest
then this is likely a wallet that is not exactly the same as Monero, so it would be best to contact the developers of the wallet about this.Let me know about points 1,2 and 3 please.
And, if there’s an issue with a Monero fork, I’d like to know what that wallet is, so I can make the adapters work with it.
with regards
alexg
KeymasterHello,
Yes, thank you for taking the time to report this issue.
This is an issue that I have corrected in the built-in Bitcoin core adapter, but not in the Multi Coin Adapter.
Try adding your WordPress host’s IP address in an
rpcallowip=
line, in CIDR notation. Assuming your WordPress IP is12.23.34.45
and its network is class C, you would add something like:rpcallowip=12.23.34.45/24
Also, add a
rpcbind=
line with your wallet’s public ip address. Let’s say your wallet is on IP21.32.43.54
, then you’d add the following, for good measure:rpcbind=21.32.43.54
(no CIDR notation this time, just an IP).
I will update the Multi Coin Adapter and release a patch today for this.
Let me know if you are still facing difficulties connecting your wallet. If so, let me know what error you see in the wallet logs.
with regards
alexg
KeymasterHello,
When the lock is on, this simply the adapter saying to the plugin that it is not safe or possible to perform withdrawals at this time.
Looking at the
is_unlocked()
function, these are the conditions that would make the wallet appear locked:1. If communication with the wallet is not possible
2. If the wallet is a view-only wallet
3. If the wallet highest block is larger that the network highest blockIt’s likely that this third situation was the case. This is transient and should resolve as the wallet and network sync, which is probably what happened.
with regards
May 13, 2021 at 6:46 am in reply to: Displaying maximum available amount of coins to buy with #10537alexg
KeymasterOK, but unfortunately I no longer accept new feature requests for users, as I am too busy with the next iteration of the plugins.
Plus, I do not plan to change the exchange UIs in the near future.
with regards
May 12, 2021 at 9:15 am in reply to: Displaying maximum available amount of coins to buy with #10532alexg
KeymasterHello,
Unfortunately no, there is no easy way to display the maximum number of base currency that can be spent in a limit order, without knowing the price for the order. Note that the available BTC balance is not necessarily the amount you want to display.
Consider this: In your example, the maximum amount of BTC that you can spend to buy DOGE is determined by two things:
1. Your available BTC balance.
2. The orderbook depth.
Once you choose a price and an amount of DOGE to buy, then the UI can calculate how much BTC you can spend.
Fortunately, the functionality you want is already there, but you don’t see it because you are using a modified template.
If you use the built-in template for limit orders, you get a “Max” button in both limit orders and market orders. With limit orders, the button appears when the user selects a price, whereas in market orders, the “Max” button is always available.
For limit orders, the “Max” button will set the maximum amount of DOGE that you can buy given the current user’s available balance, the current user price, AND the orderbook depth. In more detail:
1. The user sets a price that they want to buy in
2. Once the price is known, the “Max” button appears. This takes into account the available BTC balance (i.e. not locked in existing trades or pending transactions), AND the market depth, i.e. liquidity.
3. Once the user clicks on the “Max” button, the “Total” field shows how much BTC is going to be spent, at that price. You get two amounts because there is a best-case and a worst-case scenario, depending on whether maker or taker fees will be charged at the time of execution.
The same “Max” button is available for market orders, where there is no “Price field”. The only difference is this: with market orders, the “Max” button is always available. The UI can calculate exactly what will happen if you buy or sell the available amount. This is because market orders always incur the “taker” fees, so there is only one possible execution at the time of order placement, given the orderbook.
In both cases, the user will be able to see exactly in the “Total” field how much BTC can be spent on a DOGE buy, before placing the order.
So, in conclusion, revert to the built-in templates and you will get the functionality.
Hope this helps.
with regards
alexg
KeymasterHello,
In the error log you sent me I do not see any PHP errors, only warnings, possibly coming from your theme.
Here’s what you can do:
1. Try using another theme and reinstall the coin adapter. If the coin adapter works with another theme, let me know.
2. Some themes load TGMPA in a way that is not plugin-friendly. If the coin adapter loads TGMPA first, then the theme can crash, if it is poorly coded. To see if this is the case, do the following: Delete the directory
wp-content/plugins/wallets-cp/TGM-Plugin-Activation
. The file is not strictly required so you can delete it. Afterwards, activate the coin adapter again.3. When you received an email with the subject “Your Site is Experiencing a Technical Issue”, there should be some details including a stack trace under the heading “Error details”. If you show me the stack trace I can help you.
4. If you can provide me with admin login credentials, I can check the issue myself and see what the problem is. But first try points 1, 2 and 3 and please let me know what you found.
with regards
alexg
Keymaster@precious6 Please check your PHP error log for any errors. Let me know what error you see, so I can help you. with regards
alexg
KeymasterHello,
Thanks for the suggestion. It is a good idea.
Unfortunately I am currently very busy with the upcoming wallets6 project, where “coin adapters” will be replaced with a new thing, “wallet adapters”. Once I do this, I will work on a wallet adapter for ERC-20, and after that I can look at NXT. So it is unlikely that I can look at this, or any other feature request, before 2022.
I am adding your request to the backlog.
with regards
alexg
KeymasterHello,
1. How many coins have you enabled in CoinPayments? Does the problem persist if you only enable e.g. one or two coins? Normally the adapter should be able to handle many coins, but if your server’s connection to CoinPayments is slow, this could be an issue.
2. If the
get_coins_info
call takes too long to complete, this is likely not an issue with the plugin, but is specific to your setup. There is only one fast way to debug this: Deactivate all your plugins one-by-one until you see a change to the response time on the frontend. If you can pinpoint the issue as arising from a specific plugin, I can investigate further why this is so and what can be done about it.3. Please open up the network tab in your browser’s console (F12) and refresh the wallet page. How long, in seconds, does it take for the XHR requests to complete? The
[wallets_balance]
shortcode requires theget_coins_info
call to return. How long does this take? Let me know please.Having said this: If you are using too many shortcodes in one page, the frontend will be slow, unfortunately. This will be resolved in the upcoming version 6.0.0 of the plugin, because it requires architectural changes.
Please try to provide answers to all three questions so I can help you. Looking forward to your reply.
thank you
P.S. I have moved your post from the CoinPayments adatpter forum since it is likely a more general issue not related to CoinPayments.
alexg
KeymasterHello,
Glad you resolved the other issues.
Can you please explain, what you mean by “widget transfer”?
Which shortcode are you using? What do you mean by “user is not shown”? Where do you expect to see the user?
Looking forward to more details about your query.
with regards
alexg
KeymasterHello,
The issue you describe has nothing to do with the airdrop.
In the screenshot you show me the UI for market orders (rather than limit orders).
Market orders occur at the current market price. If there have never been any trades on your market, then there is no existing market price.
As I explain on the Exchange homepage, the markets are not connected in any way to any other external markets. It is up to you or other users to place limit orders so that an orderbook exists on your site. Price is derived from the orderbook. I have tried to make this limitation clear on the exchange’s homepage.
So, start by placing some limit orders around the price that you want your market to have. Once there is at least one trade performed on the market, then the market-order UI can know what the price of the market is.
The lock shown next to fiat withdrawals is shown as expected. Fiat withdrawals are only performed manually. The lock simply means that there is no automated withdrawal. I do not plan to add any automated withdrawal features for fiat currencies, as I have explained many times on this forum.
Please let me know if you have any more questions about the plugins.
with regards
alexg
KeymasterHello,
If, as you say, the shortcodes suddenly started displaying, this sounds to me more like a caching thing.
Thank you for the info about wallet builders. I was not aware of this and it does look like a great match with the plugin. I will add this information to the Multi Coin adapter extension homepage. Hopefully by 2022 there will be an ERC-20 adapter so people will be able to create their own coins more easily.
The exchange extension already uses the TradingView UI since version 1.3.0. Styling is mostly the responsibility of the web developer, but I do intend to work on it in the future, when other more pressing tasks are done. Ultimately styling is theme-specific thing so I can’t improve it much without losing generality.
The graph cannot have price values before trades are performed, because this is not how it works: The exchange does not have any connection with other markets. Rather it is a way for people to create their own market, and it may or may not correspond to any other external markets.
For people who want to allow trading over a well-known pair, such as BTC_ETH, there may be another extension in the future that will allow swapping coins at globally accepted market rates. I will have to think about this.
Thank you for your comments, I really appreciate your input.
with regards
-
AuthorPosts