I have been using your plugin for a long time and it is great because it shows activity in much detail … however, I noticed that my database is getting Big and found out that it’s mostly because of the your plugin. I had a lot of entries (2 months) but I have cleaned it all to last 14 days, but DB files are still very big (wsal_metadata and wsal_occurrences are almost 10GB!) even after I used WP Optimize plugin to optimize database.
So, can you please explain how I can optimize these files in the database, please?
Thanks, Danijel
]]>However, I can’t create:
When I enable debug on WordPress i see:
WordPress database error: [Table 'opwzyvmy_main.wp_give_donors' doesn't exist]
SELECT wp_give_donors.* FROM wp_give_donors WHERE 1=1 AND wp_give_donors.user_id IN( 11 ) ORDER BY wp_give_donors.id+0 DESC LIMIT 0,20;
WordPress database error: [Table 'opwzyvmy_main.wp_give_donors' doesn't exist]
SELECT wp_give_donors.* FROM wp_give_donors INNER JOIN wp_give_donormeta ON ( wp_give_donors.id = wp_give_donormeta.donor_id ) AND ( ( wp_give_donormeta.meta_key = 'additional_email' AND wp_give_donormeta.meta_value = '11' ) ) WHERE 1=1 ORDER BY wp_give_donors.id+0 DESC LIMIT 0,20;
WordPress database error: [Table 'opwzyvmy_main.wp_give_formmeta' doesn't exist]
SELECT wp_posts.ID FROM wp_posts INNER JOIN wp_give_formmeta ON ( wp_posts.ID = wp_give_formmeta.form_id ) WHERE 1=1 AND ( ( wp_give_formmeta.meta_key = '_give_goal_option' AND wp_give_formmeta.meta_value = 'enabled' ) ) AND wp_posts.post_type = 'give_forms' AND ((wp_posts.post_status = 'publish')) GROUP BY wp_posts.ID ORDER BY wp_posts.post_title ASC LIMIT 0, 30
I’m using the latest version of Beaver Builder Theme and it’s hosted on Bluehost.
When I try to create “Add Missing Transaction Id For Uncompleted Stripe Donations” manually, I get the error:
Give\Framework\Database\Exceptions\DatabaseQueryException Object
(
[message:protected] => Database Query
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /home1/opwzyvmy/public_html/wp-content/plugins/give/src/Framework/Database/DB.php
[line:protected] => 247
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home1/opwzyvmy/public_html/wp-content/plugins/give/src/Framework/Database/DB.php
[line] => 86
[function] => runQueryWithErrorChecking
[class] => Give\Framework\Database\DB
[type] => ::
[args] => Array
(
[0] => Closure Object
(
[static] => Array
(
[name] => query
[arguments] => Array
(
[0] =>
INSERT INTO wp_give_donationmeta (donation_id, meta_key, meta_value)
SELECT dm1.donation_id, '_give_payment_transaction_id',SUBSTR( gc.comment_content, 34 ) as transactionId
FROM wp_give_donationmeta as dm1
INNER JOIN wp_give_comments as gc on gc.comment_parent = dm1.donation_id
INNER JOIN wp_posts as p on p.ID = dm1.donation_id
WHERE NOT EXISTS (
SELECT *
FROM wp_give_donationmeta as dm2
WHERE dm1.donation_id=dm2.donation_id
AND meta_key='_give_payment_transaction_id'
)
AND p.post_status!='publish'
AND p.post_date > '2022-02-20'
AND dm1.meta_key = '_give_payment_gateway'
AND dm1.meta_value like '%stripe%'
AND gc.comment_content like '%Stripe Charge/Payment Intent ID%'
AND SUBSTR( gc.comment_content, 34 ) != ''
ORDER BY dm1.donation_id DESC
)
)
)
)
)
[1] => Array
(
[file] => /home1/opwzyvmy/public_html/wp-content/plugins/give/src/PaymentGateways/Gateways/Stripe/Migrations/AddMissingTransactionIdForUncompletedDonations.php
[line] => 49
[function] => __callStatic
[class] => Give\Framework\Database\DB
[type] => ::
[args] => Array
(
[0] => query
[1] => Array
(
[0] =>
INSERT INTO wp_give_donationmeta (donation_id, meta_key, meta_value)
SELECT dm1.donation_id, '_give_payment_transaction_id',SUBSTR( gc.comment_content, 34 ) as transactionId
FROM wp_give_donationmeta as dm1
INNER JOIN wp_give_comments as gc on gc.comment_parent = dm1.donation_id
INNER JOIN wp_posts as p on p.ID = dm1.donation_id
WHERE NOT EXISTS (
SELECT *
FROM wp_give_donationmeta as dm2
WHERE dm1.donation_id=dm2.donation_id
AND meta_key='_give_payment_transaction_id'
)
AND p.post_status!='publish'
AND p.post_date > '2022-02-20'
AND dm1.meta_key = '_give_payment_gateway'
AND dm1.meta_value like '%stripe%'
AND gc.comment_content like '%Stripe Charge/Payment Intent ID%'
AND SUBSTR( gc.comment_content, 34 ) != ''
ORDER BY dm1.donation_id DESC
)
)
)
[2] => Array
(
[file] => /home1/opwzyvmy/public_html/wp-content/plugins/give/src/API/Endpoints/Migrations/RunMigration.php
[line] => 109
[function] => run
[class] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddMissingTransactionIdForUncompletedDonations
[type] => ->
[args] => Array
(
)
)
[3] => Array
(
[file] => /home1/opwzyvmy/public_html/wp-includes/rest-api/class-wp-rest-server.php
[line] => 1230
[function] => handleRequest
[class] => Give\API\Endpoints\Migrations\RunMigration
[type] => ->
[args] => Array
(
[0] => WP_REST_Request Object
(
[method:protected] => POST
[params:protected] => Array
(
[URL] => Array
(
)
[GET] => Array
(
)
[POST] => Array
(
)
[FILES] => Array
(
)
[JSON] => Array
(
[id] => add-missing-transaction-id-for-uncompleted-stripe-donations
)
[defaults] => Array
(
)
)
[headers:protected] => Array
(
[accept] => Array
(
[0] => application/json, text/plain, */*
)
[accept_encoding] => Array
(
[0] => gzip, br
)
[accept_language] => Array
(
[0] => en-US,en;q=0.9
)
[connection] => Array
(
[0] =>
)
[content_type] => Array
(
[0] => application/json
)
[content_length] => Array
(
[0] => 68
)
[cookie] => Array
(
[0] => cookielawinfo-checkbox-necessary=yes; cookielawinfo-checkbox-functional=no; cookielawinfo-checkbox-performance=no; cookielawinfo-checkbox-analytics=no; cookielawinfo-checkbox-advertisement=no; cookielawinfo-checkbox-others=no; CookieLawInfoConsent=eyJuZWNlc3NhcnkiOnRydWUsImZ1bmN0aW9uYWwiOmZhbHNlLCJwZXJmb3JtYW5jZSI6ZmFsc2UsImFuYWx5dGljcyI6ZmFsc2UsImFkdmVydGlzZW1lbnQiOmZhbHNlLCJvdGhlcnMiOmZhbHNlfQ==; viewed_cookie_policy=yes; _ga=GA1.1.1846135016.1716198250; _ga_CFFJK4XDKY=GS1.1.1716198250.1.0.1716198257.0.0.0; wf_loginalerted_ee3975bf7015719c1a02b6688cb9e58b94c952537b4f4ba1ce3f9e03c607460f=8dbeb272a5a34efebe744bbc6eedebaa333100eeaeb43a2e03d53c476b2fe57e; wp-settings-11=editor%3Dtinymce%26libraryContent%3Dbrowse%26hidetb%3D1%26imgsize%3Dfull%26urlbutton%3Dfile%26align%3Dcenter; wp-settings-time-11=1716357084; wfwaf-authcookie-efed3bf82b066cfb0390ad6f976be646=11%7Cadministrator%7Cmanage_options%2Cunfiltered_html%2Cedit_others_posts%2Cupload_files%2Cpublish_posts%2Cedit_posts%2Cread%7C842052f9a9a541b7b694b6cab686afde7ce51757c36f70482e4dc2eeccf15285; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_73fadc4507e166ae82ef2da4c253207b=peter%7C1716886550%7CgwwzHexWyWQxicunk5nbqkXclUQPUi0JXpbHEcSFYex%7Caa6833e832a42b264b255c816027ddf2b8a007c8162bdee3d03bf602d223f7c2
)
[host] => Array
(
[0] => my-website.org
)
[referer] => Array
(
[0] => https://my-website.org/wp-admin/edit.php?post_type=give_forms&page=give-tools&tab=data
)
[user_agent] => Array
(
[0] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
)
[x_forwarded_for] => Array
(
[0] => 122.150.104.174
)
[cdn_loop] => Array
(
[0] => cloudflare
)
[cf_ipcountry] => Array
(
[0] => AU
)
[cf_ray] => Array
(
[0] => 889cb8933ec4572d-SYD
)
[x_forwarded_proto] => Array
(
[0] => https
)
[cf_visitor] => Array
(
[0] => {"scheme":"https"}
)
[sec_ch_ua] => Array
(
[0] => "Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"
)
[sec_ch_ua_mobile] => Array
(
[0] => ?0
)
[x_wp_nonce] => Array
(
[0] => 7f2e1775f8
)
[sec_ch_ua_platform] => Array
(
[0] => "Windows"
)
[origin] => Array
(
[0] => https://my-website.org
)
[sec_fetch_site] => Array
(
[0] => same-origin
)
[sec_fetch_mode] => Array
(
[0] => cors
)
[sec_fetch_dest] => Array
(
[0] => empty
)
[priority] => Array
(
[0] => u=1, i
)
[cf_connecting_ip] => Array
(
[0] => 122.150.104.174
)
[x_real_ip] => Array
(
[0] => 122.150.104.174
)
[x_eig_origin] => Array
(
[0] => 162.241.217.24
)
[x_https] => Array
(
[0] => 1
)
[authorization] => Array
(
[0] =>
)
)
[body:protected] => {"id":"add-missing-transaction-id-for-uncompleted-stripe-donations"}
[route:protected] => /give-api/v2/migrations/run-migration
[attributes:protected] => Array
(
[methods] => Array
(
[POST] => 1
)
[accept_json] =>
[accept_raw] =>
[show_in_index] => 1
[args] => Array
(
[id] => Array
(
[validate_callback] => Closure Object
(
[this] => Give\API\Endpoints\Migrations\RunMigration Object
(
[endpoint:protected] => migrations/run-migration
[migrationRegister:Give\API\Endpoints\Migrations\RunMigration:private] => Give\Framework\Migrations\MigrationsRegister Object
(
[migrations:Give\Framework\Migrations\MigrationsRegister:private] => Array
(
[set_paypal_standard_id_to_paypal_from_paypal_standard] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId
[remove-paypal-ipn-verification-setting] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\RemovePayPalIPNVerificationSetting
[set-form-donation-levels-to-strings] => Give\Onboarding\Migrations\SetFormDonationLevelsToStrings
[create_revenue_table] => Give\Revenue\Migrations\CreateRevenueTable
[remove_revenue_foreign_keys] => Give\Revenue\Migrations\RemoveRevenueForeignKeys
[create_migrations_table] => Give\MigrationLog\Migrations\CreateMigrationsTable
[migrate_completed_migrations] => Give\MigrationLog\Migrations\MigrateCompletedMigrations
[create_new_log_table] => Give\Log\Migrations\CreateNewLogTable
[remove_sensitive_logs] => Give\Log\Migrations\RemoveSensitiveLogs
[complete-removed-legacy-log-migration] => Give\Log\Migrations\CompleteRemovedLegacyLogMigration
[delete_old_log_tables] => Give\Log\Migrations\DeleteOldLogTables
[add-statement-descriptor-to-stripe-accounts] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddStatementDescriptorToStripeAccounts
[add-missing-transaction-id-for-uncompleted-stripe-donations] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddMissingTransactionIdForUncompletedDonations
[remove-log-with-card-info] => Give\PaymentGateways\PayPalCommerce\Migrations\RemoveLogWithCardInfo
[remove_payment_intent_secret_meta] => Give\PaymentGateways\Gateways\Stripe\Migrations\RemovePaymentIntentSecretMeta
[register-paypal-donations-refresh-token-cron-job-by-mode] => Give\PaymentGateways\PayPalCommerce\Migrations\RegisterPayPalDonationsRefreshTokenCronJobByMode
[copy-v2-gateways-settings-to-v3] => Give\PaymentGateways\Migrations\CopyV2GatewaysSettingsToV3
[add-missing-donor-id-in-donation-comments] => Give\Donations\Migrations\AddMissingDonorIdToDonationComments
[set_automatic_formatting_option] => Give\Donations\Migrations\SetAutomaticFormattingOption
[move-donation-comment-to-donation-meta-table] => Give\Donations\Migrations\MoveDonationCommentToDonationMetaTable
[donors-add-phone-column] => Give\Donors\Migrations\AddPhoneColumn
[create_subscription_tables] => Give\Subscriptions\Migrations\CreateSubscriptionTables
[add_paymentmode_to_subscription_table] => Give\Subscriptions\Migrations\AddPaymentModeToSubscriptionTable
[donation-forms-clean-multiple-slashes-on-db] => Give\DonationForms\Migrations\CleanMultipleSlashesOnDB
[donation-forms-remove-duplicate-meta] => Give\DonationForms\Migrations\RemoveDuplicateMeta
[donation-forms-donation-levels-schema] => Give\DonationForms\Migrations\UpdateDonationLevelsSchema
)
)
[migrationLogFactory:Give\API\Endpoints\Migrations\RunMigration:private] => Give\MigrationLog\MigrationLogFactory Object
(
)
)
[parameter] => Array
(
[$param] => <required>
)
)
)
)
[callback] => Array
(
[0] => Give\API\Endpoints\Migrations\RunMigration Object
(
[endpoint:protected] => migrations/run-migration
[migrationRegister:Give\API\Endpoints\Migrations\RunMigration:private] => Give\Framework\Migrations\MigrationsRegister Object
(
[migrations:Give\Framework\Migrations\MigrationsRegister:private] => Array
(
[set_paypal_standard_id_to_paypal_from_paypal_standard] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId
[remove-paypal-ipn-verification-setting] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\RemovePayPalIPNVerificationSetting
[set-form-donation-levels-to-strings] => Give\Onboarding\Migrations\SetFormDonationLevelsToStrings
[create_revenue_table] => Give\Revenue\Migrations\CreateRevenueTable
[remove_revenue_foreign_keys] => Give\Revenue\Migrations\RemoveRevenueForeignKeys
[create_migrations_table] => Give\MigrationLog\Migrations\CreateMigrationsTable
[migrate_completed_migrations] => Give\MigrationLog\Migrations\MigrateCompletedMigrations
[create_new_log_table] => Give\Log\Migrations\CreateNewLogTable
[remove_sensitive_logs] => Give\Log\Migrations\RemoveSensitiveLogs
[complete-removed-legacy-log-migration] => Give\Log\Migrations\CompleteRemovedLegacyLogMigration
[delete_old_log_tables] => Give\Log\Migrations\DeleteOldLogTables
[add-statement-descriptor-to-stripe-accounts] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddStatementDescriptorToStripeAccounts
[add-missing-transaction-id-for-uncompleted-stripe-donations] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddMissingTransactionIdForUncompletedDonations
[remove-log-with-card-info] => Give\PaymentGateways\PayPalCommerce\Migrations\RemoveLogWithCardInfo
[remove_payment_intent_secret_meta] => Give\PaymentGateways\Gateways\Stripe\Migrations\RemovePaymentIntentSecretMeta
[register-paypal-donations-refresh-token-cron-job-by-mode] => Give\PaymentGateways\PayPalCommerce\Migrations\RegisterPayPalDonationsRefreshTokenCronJobByMode
[copy-v2-gateways-settings-to-v3] => Give\PaymentGateways\Migrations\CopyV2GatewaysSettingsToV3
[add-missing-donor-id-in-donation-comments] => Give\Donations\Migrations\AddMissingDonorIdToDonationComments
[set_automatic_formatting_option] => Give\Donations\Migrations\SetAutomaticFormattingOption
[move-donation-comment-to-donation-meta-table] => Give\Donations\Migrations\MoveDonationCommentToDonationMetaTable
[donors-add-phone-column] => Give\Donors\Migrations\AddPhoneColumn
[create_subscription_tables] => Give\Subscriptions\Migrations\CreateSubscriptionTables
[add_paymentmode_to_subscription_table] => Give\Subscriptions\Migrations\AddPaymentModeToSubscriptionTable
[donation-forms-clean-multiple-slashes-on-db] => Give\DonationForms\Migrations\CleanMultipleSlashesOnDB
[donation-forms-remove-duplicate-meta] => Give\DonationForms\Migrations\RemoveDuplicateMeta
[donation-forms-donation-levels-schema] => Give\DonationForms\Migrations\UpdateDonationLevelsSchema
)
)
[migrationLogFactory:Give\API\Endpoints\Migrations\RunMigration:private] => Give\MigrationLog\MigrationLogFactory Object
(
)
)
[1] => handleRequest
)
[permission_callback] => Array
(
[0] => Give\API\Endpoints\Migrations\RunMigration Object
(
[endpoint:protected] => migrations/run-migration
[migrationRegister:Give\API\Endpoints\Migrations\RunMigration:private] => Give\Framework\Migrations\MigrationsRegister Object
(
[migrations:Give\Framework\Migrations\MigrationsRegister:private] => Array
(
[set_paypal_standard_id_to_paypal_from_paypal_standard] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId
[remove-paypal-ipn-verification-setting] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\RemovePayPalIPNVerificationSetting
[set-form-donation-levels-to-strings] => Give\Onboarding\Migrations\SetFormDonationLevelsToStrings
[create_revenue_table] => Give\Revenue\Migrations\CreateRevenueTable
[remove_revenue_foreign_keys] => Give\Revenue\Migrations\RemoveRevenueForeignKeys
[create_migrations_table] => Give\MigrationLog\Migrations\CreateMigrationsTable
[migrate_completed_migrations] => Give\MigrationLog\Migrations\MigrateCompletedMigrations
[create_new_log_table] => Give\Log\Migrations\CreateNewLogTable
[remove_sensitive_logs] => Give\Log\Migrations\RemoveSensitiveLogs
[complete-removed-legacy-log-migration] => Give\Log\Migrations\CompleteRemovedLegacyLogMigration
[delete_old_log_tables] => Give\Log\Migrations\DeleteOldLogTables
[add-statement-descriptor-to-stripe-accounts] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddStatementDescriptorToStripeAccounts
[add-missing-transaction-id-for-uncompleted-stripe-donations] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddMissingTransactionIdForUncompletedDonations
[remove-log-with-card-info] => Give\PaymentGateways\PayPalCommerce\Migrations\RemoveLogWithCardInfo
[remove_payment_intent_secret_meta] => Give\PaymentGateways\Gateways\Stripe\Migrations\RemovePaymentIntentSecretMeta
[register-paypal-donations-refresh-token-cron-job-by-mode] => Give\PaymentGateways\PayPalCommerce\Migrations\RegisterPayPalDonationsRefreshTokenCronJobByMode
[copy-v2-gateways-settings-to-v3] => Give\PaymentGateways\Migrations\CopyV2GatewaysSettingsToV3
[add-missing-donor-id-in-donation-comments] => Give\Donations\Migrations\AddMissingDonorIdToDonationComments
[set_automatic_formatting_option] => Give\Donations\Migrations\SetAutomaticFormattingOption
[move-donation-comment-to-donation-meta-table] => Give\Donations\Migrations\MoveDonationCommentToDonationMetaTable
[donors-add-phone-column] => Give\Donors\Migrations\AddPhoneColumn
[create_subscription_tables] => Give\Subscriptions\Migrations\CreateSubscriptionTables
[add_paymentmode_to_subscription_table] => Give\Subscriptions\Migrations\AddPaymentModeToSubscriptionTable
[donation-forms-clean-multiple-slashes-on-db] => Give\DonationForms\Migrations\CleanMultipleSlashesOnDB
[donation-forms-remove-duplicate-meta] => Give\DonationForms\Migrations\RemoveDuplicateMeta
[donation-forms-donation-levels-schema] => Give\DonationForms\Migrations\UpdateDonationLevelsSchema
)
)
[migrationLogFactory:Give\API\Endpoints\Migrations\RunMigration:private] => Give\MigrationLog\MigrationLogFactory Object
(
)
)
[1] => permissionsCheck
)
)
[parsed_json:protected] => 1
[parsed_body:protected] =>
)
)
)
[4] => Array
(
[file] => /home1/opwzyvmy/public_html/wp-includes/rest-api/class-wp-rest-server.php
[line] => 1063
[function] => respond_to_request
[class] => WP_REST_Server
[type] => ->
[args] => Array
(
[0] => WP_REST_Request Object
(
[method:protected] => POST
[params:protected] => Array
(
[URL] => Array
(
)
[GET] => Array
(
)
[POST] => Array
(
)
[FILES] => Array
(
)
[JSON] => Array
(
[id] => add-missing-transaction-id-for-uncompleted-stripe-donations
)
[defaults] => Array
(
)
)
[headers:protected] => Array
(
[accept] => Array
(
[0] => application/json, text/plain, */*
)
[accept_encoding] => Array
(
[0] => gzip, br
)
[accept_language] => Array
(
[0] => en-US,en;q=0.9
)
[connection] => Array
(
[0] =>
)
[content_type] => Array
(
[0] => application/json
)
[content_length] => Array
(
[0] => 68
)
[cookie] => Array
(
[0] => cookielawinfo-checkbox-necessary=yes; cookielawinfo-checkbox-functional=no; cookielawinfo-checkbox-performance=no; cookielawinfo-checkbox-analytics=no; cookielawinfo-checkbox-advertisement=no; cookielawinfo-checkbox-others=no; CookieLawInfoConsent=eyJuZWNlc3NhcnkiOnRydWUsImZ1bmN0aW9uYWwiOmZhbHNlLCJwZXJmb3JtYW5jZSI6ZmFsc2UsImFuYWx5dGljcyI6ZmFsc2UsImFkdmVydGlzZW1lbnQiOmZhbHNlLCJvdGhlcnMiOmZhbHNlfQ==; viewed_cookie_policy=yes; _ga=GA1.1.1846135016.1716198250; _ga_CFFJK4XDKY=GS1.1.1716198250.1.0.1716198257.0.0.0; wf_loginalerted_ee3975bf7015719c1a02b6688cb9e58b94c952537b4f4ba1ce3f9e03c607460f=8dbeb272a5a34efebe744bbc6eedebaa333100eeaeb43a2e03d53c476b2fe57e; wp-settings-11=editor%3Dtinymce%26libraryContent%3Dbrowse%26hidetb%3D1%26imgsize%3Dfull%26urlbutton%3Dfile%26align%3Dcenter; wp-settings-time-11=1716357084; wfwaf-authcookie-efed3bf82b066cfb0390ad6f976be646=11%7Cadministrator%7Cmanage_options%2Cunfiltered_html%2Cedit_others_posts%2Cupload_files%2Cpublish_posts%2Cedit_posts%2Cread%7C842052f9a9a541b7b694b6cab686afde7ce51757c36f70482e4dc2eeccf15285; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_73fadc4507e166ae82ef2da4c253207b=peter%7C1716886550%7CgwwzHexWyWQxicunk5nbqkXclUQPUi0JXpbHEcSFYex%7Caa6833e832a42b264b255c816027ddf2b8a007c8162bdee3d03bf602d223f7c2
)
[host] => Array
(
[0] => my-website.org
)
[referer] => Array
(
[0] => https://my-website.org/wp-admin/edit.php?post_type=give_forms&page=give-tools&tab=data
)
[user_agent] => Array
(
[0] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
)
[x_forwarded_for] => Array
(
[0] => 122.150.104.174
)
[cdn_loop] => Array
(
[0] => cloudflare
)
[cf_ipcountry] => Array
(
[0] => AU
)
[cf_ray] => Array
(
[0] => 889cb8933ec4572d-SYD
)
[x_forwarded_proto] => Array
(
[0] => https
)
[cf_visitor] => Array
(
[0] => {"scheme":"https"}
)
[sec_ch_ua] => Array
(
[0] => "Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"
)
[sec_ch_ua_mobile] => Array
(
[0] => ?0
)
[x_wp_nonce] => Array
(
[0] => 7f2e1775f8
)
[sec_ch_ua_platform] => Array
(
[0] => "Windows"
)
[origin] => Array
(
[0] => https://my-website.org
)
[sec_fetch_site] => Array
(
[0] => same-origin
)
[sec_fetch_mode] => Array
(
[0] => cors
)
[sec_fetch_dest] => Array
(
[0] => empty
)
[priority] => Array
(
[0] => u=1, i
)
[cf_connecting_ip] => Array
(
[0] => 122.150.104.174
)
[x_real_ip] => Array
(
[0] => 122.150.104.174
)
[x_eig_origin] => Array
(
[0] => 162.241.217.24
)
[x_https] => Array
(
[0] => 1
)
[authorization] => Array
(
[0] =>
)
)
[body:protected] => {"id":"add-missing-transaction-id-for-uncompleted-stripe-donations"}
[route:protected] => /give-api/v2/migrations/run-migration
[attributes:protected] => Array
(
[methods] => Array
(
[POST] => 1
)
[accept_json] =>
[accept_raw] =>
[show_in_index] => 1
[args] => Array
(
[id] => Array
(
[validate_callback] => Closure Object
(
[this] => Give\API\Endpoints\Migrations\RunMigration Object
(
[endpoint:protected] => migrations/run-migration
[migrationRegister:Give\API\Endpoints\Migrations\RunMigration:private] => Give\Framework\Migrations\MigrationsRegister Object
(
[migrations:Give\Framework\Migrations\MigrationsRegister:private] => Array
(
[set_paypal_standard_id_to_paypal_from_paypal_standard] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId
[remove-paypal-ipn-verification-setting] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\RemovePayPalIPNVerificationSetting
[set-form-donation-levels-to-strings] => Give\Onboarding\Migrations\SetFormDonationLevelsToStrings
[create_revenue_table] => Give\Revenue\Migrations\CreateRevenueTable
[remove_revenue_foreign_keys] => Give\Revenue\Migrations\RemoveRevenueForeignKeys
[create_migrations_table] => Give\MigrationLog\Migrations\CreateMigrationsTable
[migrate_completed_migrations] => Give\MigrationLog\Migrations\MigrateCompletedMigrations
[create_new_log_table] => Give\Log\Migrations\CreateNewLogTable
[remove_sensitive_logs] => Give\Log\Migrations\RemoveSensitiveLogs
[complete-removed-legacy-log-migration] => Give\Log\Migrations\CompleteRemovedLegacyLogMigration
[delete_old_log_tables] => Give\Log\Migrations\DeleteOldLogTables
[add-statement-descriptor-to-stripe-accounts] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddStatementDescriptorToStripeAccounts
[add-missing-transaction-id-for-uncompleted-stripe-donations] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddMissingTransactionIdForUncompletedDonations
[remove-log-with-card-info] => Give\PaymentGateways\PayPalCommerce\Migrations\RemoveLogWithCardInfo
[remove_payment_intent_secret_meta] => Give\PaymentGateways\Gateways\Stripe\Migrations\RemovePaymentIntentSecretMeta
[register-paypal-donations-refresh-token-cron-job-by-mode] => Give\PaymentGateways\PayPalCommerce\Migrations\RegisterPayPalDonationsRefreshTokenCronJobByMode
[copy-v2-gateways-settings-to-v3] => Give\PaymentGateways\Migrations\CopyV2GatewaysSettingsToV3
[add-missing-donor-id-in-donation-comments] => Give\Donations\Migrations\AddMissingDonorIdToDonationComments
[set_automatic_formatting_option] => Give\Donations\Migrations\SetAutomaticFormattingOption
[move-donation-comment-to-donation-meta-table] => Give\Donations\Migrations\MoveDonationCommentToDonationMetaTable
[donors-add-phone-column] => Give\Donors\Migrations\AddPhoneColumn
[create_subscription_tables] => Give\Subscriptions\Migrations\CreateSubscriptionTables
[add_paymentmode_to_subscription_table] => Give\Subscriptions\Migrations\AddPaymentModeToSubscriptionTable
[donation-forms-clean-multiple-slashes-on-db] => Give\DonationForms\Migrations\CleanMultipleSlashesOnDB
[donation-forms-remove-duplicate-meta] => Give\DonationForms\Migrations\RemoveDuplicateMeta
[donation-forms-donation-levels-schema] => Give\DonationForms\Migrations\UpdateDonationLevelsSchema
)
)
[migrationLogFactory:Give\API\Endpoints\Migrations\RunMigration:private] => Give\MigrationLog\MigrationLogFactory Object
(
)
)
[parameter] => Array
(
[$param] => <required>
)
)
)
)
[callback] => Array
(
[0] => Give\API\Endpoints\Migrations\RunMigration Object
(
[endpoint:protected] => migrations/run-migration
[migrationRegister:Give\API\Endpoints\Migrations\RunMigration:private] => Give\Framework\Migrations\MigrationsRegister Object
(
[migrations:Give\Framework\Migrations\MigrationsRegister:private] => Array
(
[set_paypal_standard_id_to_paypal_from_paypal_standard] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId
[remove-paypal-ipn-verification-setting] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\RemovePayPalIPNVerificationSetting
[set-form-donation-levels-to-strings] => Give\Onboarding\Migrations\SetFormDonationLevelsToStrings
[create_revenue_table] => Give\Revenue\Migrations\CreateRevenueTable
[remove_revenue_foreign_keys] => Give\Revenue\Migrations\RemoveRevenueForeignKeys
[create_migrations_table] => Give\MigrationLog\Migrations\CreateMigrationsTable
[migrate_completed_migrations] => Give\MigrationLog\Migrations\MigrateCompletedMigrations
[create_new_log_table] => Give\Log\Migrations\CreateNewLogTable
[remove_sensitive_logs] => Give\Log\Migrations\RemoveSensitiveLogs
[complete-removed-legacy-log-migration] => Give\Log\Migrations\CompleteRemovedLegacyLogMigration
[delete_old_log_tables] => Give\Log\Migrations\DeleteOldLogTables
[add-statement-descriptor-to-stripe-accounts] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddStatementDescriptorToStripeAccounts
[add-missing-transaction-id-for-uncompleted-stripe-donations] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddMissingTransactionIdForUncompletedDonations
[remove-log-with-card-info] => Give\PaymentGateways\PayPalCommerce\Migrations\RemoveLogWithCardInfo
[remove_payment_intent_secret_meta] => Give\PaymentGateways\Gateways\Stripe\Migrations\RemovePaymentIntentSecretMeta
[register-paypal-donations-refresh-token-cron-job-by-mode] => Give\PaymentGateways\PayPalCommerce\Migrations\RegisterPayPalDonationsRefreshTokenCronJobByMode
[copy-v2-gateways-settings-to-v3] => Give\PaymentGateways\Migrations\CopyV2GatewaysSettingsToV3
[add-missing-donor-id-in-donation-comments] => Give\Donations\Migrations\AddMissingDonorIdToDonationComments
[set_automatic_formatting_option] => Give\Donations\Migrations\SetAutomaticFormattingOption
[move-donation-comment-to-donation-meta-table] => Give\Donations\Migrations\MoveDonationCommentToDonationMetaTable
[donors-add-phone-column] => Give\Donors\Migrations\AddPhoneColumn
[create_subscription_tables] => Give\Subscriptions\Migrations\CreateSubscriptionTables
[add_paymentmode_to_subscription_table] => Give\Subscriptions\Migrations\AddPaymentModeToSubscriptionTable
[donation-forms-clean-multiple-slashes-on-db] => Give\DonationForms\Migrations\CleanMultipleSlashesOnDB
[donation-forms-remove-duplicate-meta] => Give\DonationForms\Migrations\RemoveDuplicateMeta
[donation-forms-donation-levels-schema] => Give\DonationForms\Migrations\UpdateDonationLevelsSchema
)
)
[migrationLogFactory:Give\API\Endpoints\Migrations\RunMigration:private] => Give\MigrationLog\MigrationLogFactory Object
(
)
)
[1] => handleRequest
)
[permission_callback] => Array
(
[0] => Give\API\Endpoints\Migrations\RunMigration Object
(
[endpoint:protected] => migrations/run-migration
[migrationRegister:Give\API\Endpoints\Migrations\RunMigration:private] => Give\Framework\Migrations\MigrationsRegister Object
(
[migrations:Give\Framework\Migrations\MigrationsRegister:private] => Array
(
[set_paypal_standard_id_to_paypal_from_paypal_standard] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId
[remove-paypal-ipn-verification-setting] => Give\PaymentGateways\Gateways\PayPalStandard\Migrations\RemovePayPalIPNVerificationSetting
[set-form-donation-levels-to-strings] => Give\Onboarding\Migrations\SetFormDonationLevelsToStrings
[create_revenue_table] => Give\Revenue\Migrations\CreateRevenueTable
[remove_revenue_foreign_keys] => Give\Revenue\Migrations\RemoveRevenueForeignKeys
[create_migrations_table] => Give\MigrationLog\Migrations\CreateMigrationsTable
[migrate_completed_migrations] => Give\MigrationLog\Migrations\MigrateCompletedMigrations
[create_new_log_table] => Give\Log\Migrations\CreateNewLogTable
[remove_sensitive_logs] => Give\Log\Migrations\RemoveSensitiveLogs
[complete-removed-legacy-log-migration] => Give\Log\Migrations\CompleteRemovedLegacyLogMigration
[delete_old_log_tables] => Give\Log\Migrations\DeleteOldLogTables
[add-statement-descriptor-to-stripe-accounts] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddStatementDescriptorToStripeAccounts
[add-missing-transaction-id-for-uncompleted-stripe-donations] => Give\PaymentGateways\Gateways\Stripe\Migrations\AddMissingTransactionIdForUncompletedDonations
[remove-log-with-card-info] => Give\PaymentGateways\PayPalCommerce\Migrations\RemoveLogWithCardInfo
[remove_payment_intent_secret_meta] => Give\PaymentGateways\Gateways\Stripe\Migrations\RemovePaymentIntentSecretMeta
[register-paypal-donations-refresh-token-cron-job-by-mode] => Give\PaymentGateways\PayPalCommerce\Migrations\RegisterPayPalDonationsRefreshTokenCronJobByMode
[copy-v2-gateways-settings-to-v3] => Give\PaymentGateways\Migrations\CopyV2GatewaysSettingsToV3
[add-missing-donor-id-in-donation-comments] => Give\Donations\Migrations\AddMissingDonorIdToDonationComments
[set_automatic_formatting_option] => Give\Donations\Migrations\SetAutomaticFormattingOption
[move-donation-comment-to-donation-meta-table] => Give\Donations\Migrations\MoveDonationCommentToDonationMetaTable
[donors-add-phone-column] => Give\Donors\Migrations\AddPhoneColumn
[create_subscription_tables] => Give\Subscriptions\Migrations\CreateSubscriptionTables
]]>WordPress database error Deadlock found when trying to get lock; try restarting transaction for query
INSERT INTO wp_actionscheduler_actions ( hook, status, scheduled_date_gmt, scheduled_date_local, schedule, group_id, priority, args )
SELECT 'cache-warmer_fetch_notifications', 'pending', '2024-05-14 12:19:48', '2024-05-14 14:19:48', 'O:32:\"ActionScheduler_IntervalSchedule\":5:{s:22:\"\0\0scheduled_timestamp\";i:1715689188;s:18:\"\0\0first_timestamp\";i:1715689188;s:13:\"\0*\0recurrence\";i:3600;s:49:\"\0ActionScheduler_IntervalSchedule\0start_timestamp\";i:1715689188;s:53:\"\0ActionScheduler_IntervalSchedule\0interval_in_seconds\";i:3600;}', 5, 10, '[]' FROM DUAL
WHERE (
SELECT action_id FROM wp_actionscheduler_actions
WHERE status IN ( 'pending', 'in-progress' )
AND hook = 'cache-warmer_fetch_notifications'
AND group_id = 5
LIMIT 1 ) IS NULL made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WP_Plugins_Core\Notifications->schedule_interval, as_schedule_recurring_action, ActionScheduler_ActionFactory->create, ActionScheduler_ActionFactory->store_unique_action, ActionScheduler_DBStore->save_unique_action, ActionScheduler_DBStore->save_action_to_db
I am developing a plugin and I use WordPress standard (Code Sniffer)
But I get the following standard error on this code
I need to know how can I use $wpdb->prepare in the following code to pass the standard?
My code:
$get_order = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$table_name} WHERE order_id = %d", $order_id ) );
I get this error:
Use placeholders and $wpdb->prepare(); found interpolated variable {$table_name} at "SELECT * FROM {$table_name} WHERE order_id = %d"
“code”: “WordPress.DB.PreparedSQL.InterpolatedNotPrepared”,
“severity”: 8,
“message”: “Use placeholders and $wpdb->prepare(); found interpolated variable {$table_name} at \”SELECT * FROM {$table_name} WHERE order_id = %d\””,
“source”: “PHPCS”,
Thank you for any help
I have a shop where all the products are using the same set of layers and content of these layers (color groups and swatches). Only the pictures are different but these are not in consideration right now.
If I have many products and colors availability may change because of supplier then I would like to be able to change layers and content for many products in bulk.
Is it possible using your plugin or I can make it by myself using php/db script I write by myself or with help of a developer.
The question is – how are layers and content saved in db and are they only in one place or some additional/extra knowledge needed for me to make this script?
Thank you very much in advance for guiding me in right direction.
]]>I have exported 3 tables related to quiz name, Question and Answers from DB.But what I found that – there are few answer which do not have answers. Like Q Id not found even if answer ID in table.Due to this i have say 100 questions in table but 442 answer in table ( but every question has 4 options only) How to solve this?
]]>After days of trying to make my default language to work on ‘the-events-calendar’, I decided to manually edit the problematic strings in the database (through phpMyAdmin), only to discover that my corrections have been reversed overnight.
Is there a way to prevent this?
]]>The SQLSTATE[HY000]: General error is a temporary error that happens when MailPoet could not establish a database connection at that time. It is automatically retried later and doesn’t affect how the plugin works.
Is MailPoet making multiple concurrent MySQL connections?
The error message states that WordPress exceeded the maximum number of database connections per user, but it does not state how many these are and which other processes took how many of them.
Can we, as WordPress users, do anything to prevent this problem? My customer’s installation has a lot of plugins doing their cron jobs, including WooCommerce + Germanized, MailPoet, JetPack etc.
Excerpt from the verbose error message:
Next MailPoetVendor\Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [1203] User ... already has more than 'max_user_connections' active connections in .../wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:10
Stacktrace:
... MailPoetVendor\Doctrine\DBAL\Driver\PDOConnection->__construct()
Can we, as WordPress users, do anything to prevent this problem? Can we be sure that MailPoet is still functioning correctly?
]]>