Cannot edit anything from links on the frontend.

4.57K viewsIssuesbug permission
0

It always says “You cannot edit this question/answer”. I am admin and I checked I have all the Anspress permissions. I am having this problem since 4.0. I can edit questions from within the admin area however.

Running the download from github branch 4.1.5 from today.

Got this in my logs:

[08-Dec-2017 01:54:55 UTC] WordPress database error Incorrect table definition; there can be only one auto column and it must be defined as a key for query ALTER TABLE wp_ap_activity ADD COLUMN `activity_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT made by activate_plugins, activate_plugin, do_action(‘activate_anspress-question-answer/anspress-question-answer.php’), WP_Hook->do_action, WP_Hook->apply_filters, AP_Activate::get_instance, AP_Activate->__construct, AP_Activate->activate, AP_Activate->insert_tables, dbDelta
[08-Dec-2017 01:54:55 UTC] WordPress database error Key column ‘activity_id’ doesn’t exist in table for query ALTER TABLE wp_ap_activity ADD PRIMARY KEY (`activity_id`) made by activate_plugins, activate_plugin, do_action(‘activate_anspress-question-answer/anspress-question-answer.php’), WP_Hook->do_action, WP_Hook->apply_filters, AP_Activate::get_instance, AP_Activate->__construct, AP_Activate->activate, AP_Activate->insert_tables, dbDelta

0

Though I made a commit to automatically delete old activity table. Check here: https://github.com/anspress/anspress/commit/52fc86e465c459c50ec291ae4c2193573db56e2d

You are viewing 1 out of 2 answers, click here to view all answers.