PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 4.9.2
WP STAGING – WordPress Backup, Restore, Migration & Clone v4.9.2
4.9.2 4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / views / notices / wp-options-missing-pk.php
wp-staging / views / notices Last commit date
_partial 1 week ago aios-salt-postfix-enabled.php 1 year ago analytics-consent-failed.php 1 year ago analytics-consent-refused.php 1 year ago analytics-modal.php 1 month ago backup-plugins-notice.php 7 months ago beta.php 1 year ago cache-directory-permission-problem.php 1 year ago cli-integration-notice.php 4 days ago cron-warning-notice.php 2 months ago directory-listing-could-not-be-prevented.php 7 months ago disabled-items-notice.php 1 year ago disabled-optimizer-notice.php 1 year ago elementor-cloud-notice.php 4 months ago logs-directory-permission-problem.php 1 year ago low-memory-limit.php 1 year ago mu-plugin-directory-permission-problem.php 1 year ago next-gen-engine-notice.php 4 days ago no-db-prefix-notice.php 1 year ago object-cache-skipped.php 11 months ago outdated-wp-staging-hooks.php 1 year ago outdated-wp-staging-version.php 1 year ago pro-crons-notice.php 1 year ago review-prompt-handlers.php 2 weeks ago review-prompt-modal.php 2 weeks ago settings_option_corrupt.php 1 year ago staging-directory-permission-problem.php 1 year ago staging-symlink-enabled-notice.php 10 months ago table-tmp-prefix-conflict-notice.php 1 year ago transient.php 1 year ago uploads-outside-wp-root.php 1 year ago vars-directory-permission-problem.php 1 year ago wordfence-userini-renamed.php 5 months ago wp-options-missing-pk.php 5 months ago wp-version-compat-notice.php 4 months ago wpe-permalink-issue-notice.php 1 year ago wrong-scheme.php 1 year ago
wp-options-missing-pk.php
23 lines
1 <?php
2 /**
3 * @var string $optionTable
4 * @var bool $isPrimaryKeyMissing
5 * @var bool $isPrimaryKeyIsOptionName
6 * @see \WPStaging\Framework\Notices\Notices::renderNotices
7 */
8 ?>
9 <div class="notice notice-error">
10 <p>
11 <?php if ($isPrimaryKeyMissing) : ?>
12 <strong><?php echo sprintf(esc_html__('WP STAGING - The table %s has no primary key index or missing autoincrement flag.', 'wp-staging'), esc_html($optionTable))?></strong>
13 <br>
14 <?php esc_html_e('This is a serious issue and needs to be fixed as soon as possible. The longer you wait, the harder it gets to repair it and can make your site inaccessible at worst. We recommend fixing it right now! This error has either been caused by a person with access to the database or by another plugin. You should not do any changes to your site until this is fixed.', 'wp-staging') ?>
15 <?php elseif ($isPrimaryKeyIsOptionName) : ?>
16 <strong><?php echo sprintf(esc_html__('WP STAGING - The primary key for table %s has been changed from option_id to option_name.', 'wp-staging'), esc_html($optionTable))?></strong>
17 <br>
18 <?php esc_html_e('If you encounter performance issues during cloning or backup, we recommend changing it back to option_id as the primary key.', 'wp-staging') ?>
19 <?php endif; ?>
20 </p>
21 <p><a href="https://wp-staging.com/docs/missing-primary-key-in-table-wp-options" target="_blank"><strong><?php esc_html_e('How to fix this.', 'wp-staging') ?></strong></a></p>
22 </div>
23