_partial
2 years ago
analytics-consent-failed.php
2 years ago
analytics-consent-refused.php
2 years ago
analytics-consent.php
3 years ago
analytics-modal.php
2 years ago
backup-plugins-notice.php
2 years ago
beta.php
2 years ago
cache-directory-permission-problem.php
3 years ago
directory-listing-could-not-be-prevented.php
3 years ago
disabled-items-notice.php
2 years ago
disabled-optimizer-notice.php
3 years ago
free-backup-update-notice.php
2 years ago
logs-directory-permission-problem.php
3 years ago
low-memory-limit.php
5 years ago
mu-plugin-directory-permission-problem.php
2 years ago
no-db-prefix-notice.php
2 years ago
object-cache-skipped.php
2 years ago
outdated-wp-staging-hooks.php
3 years ago
outdated-wp-staging-version.php
3 years ago
pro-crons-notice.php
2 years ago
rating.php
2 years ago
settings_option_corrupt.php
3 years ago
staging-directory-permission-problem.php
2 years ago
staging-symlink-enabled-notice.php
2 years ago
table-tmp-prefix-conflict-notice.php
2 years ago
transient.php
5 years ago
uploads-outside-wp-root.php
2 years ago
vars-directory-permission-problem.php
3 years ago
wordfence-userini-renamed.php
3 years ago
wp-options-missing-pk.php
3 years ago
wp-version-compatible-message.php
3 years ago
wpe-permalink-issue-notice.php
2 years ago
wrong-scheme.php
3 years 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 |