• Resolved Patz

    (@patz)


    Hi,

    Amazing plugin btw, just what I’ve been looking for πŸ™‚

    Run into my first problems with it though, I’m after some help to eliminate the problem if possible – I think I could have damaged database table or something, but not sure how to check!

    I was adding posts after creating a few CPT, then I had a message ‘you are not authorized to edit this post’ (or words to that effect) when I tried to publish a post (after successfully creating a few posts with no problems). Then my CPTs disappeared on refresh. Went into plugins menu and it appeared deactivated. I now can’t reactivate it at all. I’ve tried deleting the plugin and starting again, as well as deactivating all other plugins etc.

    Any ideas? Thanks in advance….

    https://wordpress.org/plugins/custom-post-type-ui/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    That is the first I’ve ever heard of these types of issues, to be honest. Particularly the apparent self deactivation and inability to reactivate. My only hunch so far is perhaps someone else was logged in as an admin as well. However, I can’t say that for certain, and I don’t know how many users you have with any elevated permissions.

    Have you checked your server’s error logs at all, if you know where they are?

    Thread Starter Patz

    (@patz)

    Thank you for the response.

    This is just on my local (MAMP) setup. Where would I find error logs in this situation?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not quite sure with MAMP as I use XAMPP myself, but MAMP’s documentation should be able to point you to the right location.

    Thread Starter Patz

    (@patz)

    Hi again. I found the error log and it read this:

    [02-Jun-2014 11:15:07] WordPress database error Table 'wp_options' is marked as crashed and should be repaired for query SELECT option_value FROM wp_options WHERE option_name = 'cron' LIMIT 1 made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_cron, _get_cron_array, get_option
    [02-Jun-2014 11:15:07] WordPress database error Duplicate entry 'cron' for key 'option_name' for query INSERT INTO <code>wp_options</code> (<code>option_name</code>, <code>option_value</code>, <code>autoload</code>) VALUES ('cron', 'a:2:{i:1401707707;a:1:{s:16:\"wp_version_check\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:10:\"twicedaily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:43200;}}}s:7:\"version\";i:2;}', 'yes') ON DUPLICATE KEY UPDATE <code>option_name</code> = VALUES(<code>option_name</code>), <code>option_value</code> = VALUES(<code>option_value</code>), <code>autoload</code> = VALUES(<code>autoload</code>) made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_schedule_update_checks, wp_schedule_event, _set_cron_array, update_option, add_option
    [02-Jun-2014 11:15:07] WordPress database error Duplicate entry 'cron' for key 'option_name' for query INSERT INTO <code>wp_options</code> (<code>option_name</code>, <code>option_value</code>, <code>autoload</code>) VALUES ('cron', 'a:2:{i:1401707707;a:1:{s:17:\"wp_update_plugins\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:10:\"twicedaily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:43200;}}}s:7:\"version\";i:2;}', 'yes') ON DUPLICATE KEY UPDATE <code>option_name</code> = VALUES(<code>option_name</code>), <code>option_value</code> = VALUES(<code>option_value</code>), <code>autoload</code> = VALUES(<code>autoload</code>) made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_schedule_update_checks, wp_schedule_event, _set_cron_array, update_option, add_option

    I tried repairing the wp_options table using phpMyAdmin as it says there is a crash there. This didn’t help though!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    That would be a source of issue. The list of active plugins as well as CPTUI settings are both stored in the wp_options table. It sounds like it’s an issue at your database level, and not at the point of our plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin deactivate itself, now cannot re activate!’ is closed to new replies.