_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 |