• Resolved grantcause

    (@grantcause)


    Brand new install of the latest version of plugin, version 2.8.2 downnloaded bundle from your website and uploaded plugin to my wordpress site, installed and activated.

    Get the following error:

    Bitcoin and Altcoin Wallets could NOT create a transactions table “ccmd_wallets_txs” in the database. The plugin may not function properly.

    Screens show briefly and then collapse themselves.

    Debug Info:

    Plugin version 2.8.2
    Git SHA ee665ed
    PHP version 5.6.32
    WordPress version 4.8.3
    MySQL version 10.1.24-MariaDB-cll-lve
    Supports cURL true
    Is multisite false
    Is network activated false
    PHP max execution time 30
    WP_DEBUG false
    WP_DEBUG_LOG false
    WP_DEBUG_DISPLAY true
    DISABLE_WP_CRON n/a

    I have removed two of the debug info items for security reasons.

    Is this a permissions problem with my WordPress site?

    Is there a fix coming for this issue?

    Is there a way to create the required table manually using PhPAdmin?

    Thank you for your assistance with this it is greatly appreciated.

    Cheers,
    Grant

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter grantcause

    (@grantcause)

    Got the front end working ?? Still need to get the wallets table created.

    Have hooked it all up to CoinPayments API using the adaptor, testing with LitecoinTestnet at the moment.

    Cheers,

    Grant

    Plugin Author dashed-slug.net

    (@dashedslug)

    Thanks for reporting,

    I will investigate and let you know soon.

    regards,
    Alex

    Plugin Author dashed-slug.net

    (@dashedslug)

    OK I have tested the plugin version 2.8.2 on a clean setup with PHP 5.3.29 and the latest WordPress. The tables are created on my end. However I did not test with your exact database setup. Instead I used MySQL5.5.53.

    There are a couple of things you could do:

    1. Inspect the log files. This could tell us what went wrong. However there will also be some SQL errors in there that are to be expected.

    2. Try creating the tables manually. If there is some incompatibility with your system, it might become apparent. Try the following in your SQL console:

    CREATE TABLE ccmd_wallets_txs (
    id int(10) UNSIGNED NOT NULL,
    blog_id bigint(20) NOT NULL DEFAULT ‘1’ COMMENT ‘blog_id for multisite installs’,
    category enum(‘deposit’,’move’,’withdraw’) COLLATE utf8mb4_unicode_520_ci NOT NULL COMMENT ‘type of transaction’,
    tags varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT ” COMMENT ‘space separated list of tags, slugs, etc that further describe the type of transaction’,
    account bigint(20) UNSIGNED NOT NULL COMMENT ‘ccmd_users.ID’,
    other_account bigint(20) UNSIGNED DEFAULT NULL COMMENT ‘ccmd_users.ID when category==move’,
    address varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT ” COMMENT ‘blockchain address when category==deposit or category==withdraw’,
    txid varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL COMMENT ‘blockchain transaction id’,
    symbol varchar(5) COLLATE utf8mb4_unicode_520_ci NOT NULL COMMENT ‘coin symbol (e.g. BTC for Bitcoin)’,
    amount decimal(20,10) NOT NULL COMMENT ‘amount plus any fees deducted from account’,
    fee decimal(20,10) NOT NULL DEFAULT ‘0.0000000000’ COMMENT ‘fees deducted from account’,
    comment text COLLATE utf8mb4_unicode_520_ci COMMENT ‘transaction comment’,
    created_time datetime NOT NULL COMMENT ‘when transaction was entered into the system in GMT’,
    updated_time datetime NOT NULL COMMENT ‘when transaction was last updated in GMT (e.g. for update to confirmations count)’,
    confirmations mediumint(8) UNSIGNED DEFAULT ‘0’ COMMENT ‘amount of confirmations received from blockchain, or null for category==move’,
    status enum(‘unconfirmed’,’pending’,’done’,’failed’,’cancelled’) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT ‘unconfirmed’ COMMENT ‘state of transaction’,
    retries tinyint(3) UNSIGNED NOT NULL DEFAULT ‘1’ COMMENT ‘retries left before a pending transaction status becomes failed’,
    admin_confirm tinyint(1) NOT NULL DEFAULT ‘0’ COMMENT ‘1 if an admin has confirmed this transaction’,
    user_confirm tinyint(1) NOT NULL DEFAULT ‘0’ COMMENT ‘1 if the user has confirmed this transaction over email’,
    nonce char(32) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL COMMENT ‘nonce for user to confirm via emailed link’,
    extra varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL COMMENT ‘extra info required by some coins such as XMR’
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

    ALTER TABLE ccmd_wallets_txs
    ADD PRIMARY KEY (id),
    ADD UNIQUE KEY uq_tx_idx (txid,symbol),
    ADD KEY account_idx (account),
    ADD KEY blogid_idx (blog_id);

    CREATE TABLE ccmd_wallets_adds (
    id int(10) UNSIGNED NOT NULL,
    blog_id bigint(20) NOT NULL DEFAULT ‘1’ COMMENT ‘blog_id for multisite installs’,
    account bigint(20) UNSIGNED NOT NULL COMMENT ‘ccmd_users.ID’,
    symbol varchar(5) COLLATE latin1_bin NOT NULL COMMENT ‘coin symbol (e.g. BTC for Bitcoin)’,
    address varchar(255) COLLATE latin1_bin NOT NULL,
    created_time datetime NOT NULL COMMENT ‘when address was requested in GMT’,
    extra varchar(255) COLLATE latin1_bin NOT NULL DEFAULT ” COMMENT ‘extra info required by some coins such as XMR’
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin;

    ALTER TABLE ccmd_wallets_adds
    ADD PRIMARY KEY (id),
    ADD UNIQUE KEY uq_ad_idx (address,symbol,extra),
    ADD KEY retrieve_idx (account,symbol),
    ADD KEY lookup_idx (address);

    Let me know what you find.

    toursumo

    (@toursumo)

    I have the exact same issue….

    Bitcoin and Altcoin Wallets error
    Bitcoin and Altcoin Wallets could NOT create a transactions table “wp_wallets_txs” in the database. The plugin may not function properly.

    Plugin Author dashed-slug.net

    (@dashedslug)

    @toursumo Can you please give me more information? There is some debug info in the dashboard that you could paste here.

    Also, if you want to try the solution described above, these are the SQL commands for creating the table manually. Just change ccmd_ to wp_ or whatever your table prefix is. If any of these commands gives you an error, that will let me know what’s going on.

    Finally, if you can enable the logs, and check what is written after you activate the plugin. If you can do that, it will help me the most.

    thank you
    Alex

    Thread Starter grantcause

    (@grantcause)

    Hi Alex,

    Here is what MySQL responded with:
    SQL query:

    CREATE TABLE ccmd_wallets_txs ( id int(10) UNSIGNED NOT NULL, blog_id bigint(20) NOT NULL DEFAULT ‘1’ COMMENT ‘blog_id for multisite installs’, category enum(‘deposit’,’move’,’withdraw’) COLLATE utf8mb4_unicode_520_ci NOT NULL COMMENT ‘type of transaction’, tags varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT ” COMMENT ‘space separated list of tags, slugs, etc that further describe the type of transaction’, account bigint(20) UNSIGNED NOT NULL COMMENT ‘ccmd_users.ID’, other_account bigint(20) UNSIGNED DEFAULT NULL COMMENT ‘ccmd_users.ID when category==move’, address varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT ” COMMENT ‘blockchain address when category==deposit or category==withdraw’, txid varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL COMMENT ‘blockchain transaction id’, symbol varchar(5) COLLATE utf8mb4_unicode_520_ci NOT NULL COMMENT ‘coin symbol (e.g. BTC for Bitcoin[…]

    MySQL said: Documentation

    #1064 – You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘a€?1a€? COMMENT a€?blog_id for multisite installsa€?,
    category enum(a€?deposit’ at line 3

    I will see if I can do some more digging around this and let you know.

    Thank you for your assistance with this it is greatly appreciated.

    Cheers,
    Grant

    Plugin Author dashed-slug.net

    (@dashedslug)

    It looks like the quotes were not correctly copied.

    Thread Starter grantcause

    (@grantcause)

    Ok Alex, I thought it might be a case of bad copy/paste due to HTML on this forum, so I loaded up XCode and put the SQL statement into the file editor there. This time it formatted it correctly and I got a different error:

    #1064 – You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘TABLE? ccmd_wallets_txs? (
    id? int(10) UNSIGNED ‘ at line 1

    Cheers,

    Grant

    Thread Starter grantcause

    (@grantcause)

    Here is how XCode formatted the SQL as:

    CREATE TABLE?ccmd_wallets_txs?(
                                   id?int(10) UNSIGNED NOT NULL,
                                   blog_id?bigint(20) NOT NULL DEFAULT ‘1’ COMMENT ‘blog_id for multisite installs’,
                                   category?enum(‘deposit’,’move’,’withdraw’) COLLATE utf8mb4_unicode_520_ci NOT NULL COMMENT ‘type of transaction’,
                                   tags?varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT ” COMMENT ‘space separated list of tags, slugs, etc that further describe the type of transaction’,
                                   account?bigint(20) UNSIGNED NOT NULL COMMENT ‘ccmd_users.ID’,
                                   other_account?bigint(20) UNSIGNED DEFAULT NULL COMMENT ‘ccmd_users.ID when category==move’,
                                   address?varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT ” COMMENT ‘blockchain address when category==deposit or category==withdraw’,
                                   txid?varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL COMMENT ‘blockchain transaction id’,
                                   symbol?varchar(5) COLLATE utf8mb4_unicode_520_ci NOT NULL COMMENT ‘coin symbol (e.g. BTC for Bitcoin)’,
                                   amount?decimal(20,10) NOT NULL COMMENT ‘amount plus any fees deducted from account’,
                                   fee?decimal(20,10) NOT NULL DEFAULT ‘0.0000000000’ COMMENT ‘fees deducted from account’,
                                   comment?text COLLATE utf8mb4_unicode_520_ci COMMENT ‘transaction comment’,
                                   created_time?datetime NOT NULL COMMENT ‘when transaction was entered into the system in GMT’,
                                   updated_time?datetime NOT NULL COMMENT ‘when transaction was last updated in GMT (e.g. for update to confirmations count)’,
                                   confirmations?mediumint(8) UNSIGNED DEFAULT ‘0’ COMMENT ‘amount of confirmations received from blockchain, or null for category==move’,
                                   status?enum(‘unconfirmed’,’pending’,’done’,’failed’,’cancelled’) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT ‘unconfirmed’ COMMENT ‘state of transaction’,
                                   retries?tinyint(3) UNSIGNED NOT NULL DEFAULT ‘1’ COMMENT ‘retries left before a pending transaction status becomes failed’,
                                   admin_confirm?tinyint(1) NOT NULL DEFAULT ‘0’ COMMENT ‘1 if an admin has confirmed this transaction’,
                                   user_confirm?tinyint(1) NOT NULL DEFAULT ‘0’ COMMENT ‘1 if the user has confirmed this transaction over email’,
                                   nonce?char(32) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL COMMENT ‘nonce for user to confirm via emailed link’,
                                   extra?varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL COMMENT ‘extra info required by some coins such as XMR’
                                   ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
    ALTER TABLE?ccmd_wallets_txs
    ADD PRIMARY KEY (id),
    ADD UNIQUE KEY?uq_tx_idx?(txid,symbol),
    ADD KEY?account_idx?(account),
    ADD KEY?blogid_idx?(blog_id);
    CREATE TABLE?ccmd_wallets_adds?(
                                    id?int(10) UNSIGNED NOT NULL,
                                    blog_id?bigint(20) NOT NULL DEFAULT ‘1’ COMMENT ‘blog_id for multisite installs’,
                                    account?bigint(20) UNSIGNED NOT NULL COMMENT ‘ccmd_users.ID’,
                                    symbol?varchar(5) COLLATE latin1_bin NOT NULL COMMENT ‘coin symbol (e.g. BTC for Bitcoin)’,
                                    address?varchar(255) COLLATE latin1_bin NOT NULL,
                                    created_time?datetime NOT NULL COMMENT ‘when address was requested in GMT’,
                                    extra?varchar(255) COLLATE latin1_bin NOT NULL DEFAULT ” COMMENT ‘extra info required by some coins such as XMR’
                                    ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
    ALTER TABLE?ccmd_wallets_adds
    ADD PRIMARY KEY (id),
    ADD UNIQUE KEY?uq_ad_idx?(address,symbol,extra),
    ADD KEY?retrieve_idx?(account,symbol),
    ADD KEY?lookup_idx?(address);
    toursumo

    (@toursumo)

    No idea how to activate logs….
    can’t even run this…
    CREATE TABLE?wp_wallets_txs?(id?int(10) UNSIGNED NOT NULL,blog_id?bigint(20) NOT NULL DEFAULT ‘1’ COMMENT ‘blog_id for multisite installs’,category?enum(‘deposit’,’move’,’withdraw’) COLLATE utf8mb4_unicode_520_ci NOT NULL COMMENT ‘type of transaction’,tags?varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT ” COMMENT ‘space separated list of tags, slugs, etc that further describe the type of transaction’,account?bigint(20) UNSIGNED NOT NULL COMMENT ‘ccmd_users.ID’,other_account?bigint(20) UNSIGNED DEFAULT NULL COMMENT ‘ccmd_users.ID when category==move’,address?varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT ” COMMENT ‘blockchain address when category==deposit or category==withdraw’,txid?varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL COMMENT ‘blockchain transaction id’,symbol?varchar(5) COLLATE utf8mb4_unicode_520_ci NOT NULL COMMENT ‘coin symbol (e.g. BTC for Bitcoin)’,amount?decimal(20,10) NOT NULL COMMENT ‘amount plus any fees deducted from account’,fee?decimal(20,10) NOT NULL DEFAULT ‘0.0000000000’ COMMENT ‘fees deducted from account’,comment?text COLLATE utf8mb4_unicode_520_ci COMMENT ‘transaction comment’,created_time?datetime NOT NULL COMMENT ‘when transaction was entered into the system in GMT’,updated_time?datetime NOT NULL COMMENT ‘when transaction was last updated in GMT (e.g. for update to confirmations count)’,confirmations?mediumint(8) UNSIGNED DEFAULT ‘0’ COMMENT ‘amount of confirmations received from blockchain, or null for category==move’,status?enum(‘unconfirmed’,’pending’,’done’,’failed’,’cancelled’) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT ‘unconfirmed’ COMMENT ‘state of transaction’,retries?tinyint(3) UNSIGNED NOT NULL DEFAULT ‘1’ COMMENT ‘retries left before a pending transaction status becomes failed’,admin_confirm?tinyint(1) NOT NULL DEFAULT ‘0’ COMMENT ‘1 if an admin has confirmed this transaction’,user_confirm?tinyint(1) NOT NULL DEFAULT ‘0’ COMMENT ‘1 if the user has confirmed this transaction over email’,nonce?char(32) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL COMMENT ‘nonce for user to confirm via emailed link’,extra?varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL COMMENT ‘extra info required by some coins such as XMR’) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

    toursumo

    (@toursumo)

    #1064 – You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘TABLE?wp_wallets_txs?(
    ????id?int(10) UNSIGNED NOT NULL,
    ????blog_id?bigin’ at line 1

    Plugin Author dashed-slug.net

    (@dashedslug)

    OK apologies, I see now that I created some confusion by pasting SQL code here. All of the errors you report above are due to quotes being reencoded with different quote characters. Please try this instead

    (for prefix ccmd_): https://pastebin.com/Ssybv1qY
    (for prefix wp_): https://pastebin.com/huhbVPDT

    If these commands give you any error, please report it here.

    Thread Starter grantcause

    (@grantcause)

    Hi Alex,

    That worked just fine.

    I had to DROP the second table as it was already there the first time I ran it so it complained about that. I then dropped both tables and ran the SQL again and all was good.

    Thank you for your assistance in resolving this it is greatly appreciated.

    Cheers,

    Grant

    Plugin Author dashed-slug.net

    (@dashedslug)

    Glad to hear that your immediate problem was solved.

    I will continue to look for an explanation as to why this happened because at least two more people had the problem.

    regards
    Alex

    Plugin Author dashed-slug.net

    (@dashedslug)

    This is now solved in 2.10.0

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Bitcoin and Altcoin Wallets could NOT create a transactions table “ccmd_wallets_’ is closed to new replies.