Problems with Anspress 4 beta

11.21K viewsIssues
0

Some errors with the 4 beta.

 

[01-Jan-2017 15:06:49 UTC] WordPress database error Unknown column ‘fields’ in ‘field list’ for query UPDATE `wp_ap_qameta` SET `ptype` = ‘question’, `fields` = ‘a:1:{s:19:\”unapproved_comments\”;i:0;}’ WHERE `post_id` = 105 made by do_action(‘wp_ajax_ap_ajax’), WP_Hook->do_action, WP_Hook->apply_filters, AnsPress_Process_Form->ap_ajax, do_action(‘ap_ajax_delete_comment’), WP_Hook->do_action, WP_Hook->apply_filters, AnsPress_Comment_Hooks::delete_comment, do_action(‘ap_unpublish_comment’), WP_Hook->do_action, WP_Hook->apply_filters, AnsPress_Hooks::unpublish_comment, ap_insert_qameta

_____________

 

[01-Jan-2017 15:06:51 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/website/wp-includes/functions.php on line 3975

______________

 

[01-Jan-2017 15:06:54 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class ‘AnsPress_Views’ does not have a method ‘delete_votes’ in /home/website/wp-includes/class-wp-hook.php on line 298

All the above seem fixed with the latest commit. Thanks !

0

Just created a virgin WP with Anspress 4beta1.

I got:

[01-Jan-2017 19:13:38 UTC] WordPress database error Unknown column ‘fields’ in ‘field list’ for query UPDATE `wp_ap_qameta` SET `ptype` = ‘question’, `fields` = ‘a:1:{s:19:\”unapproved_comments\”;i:0;}’ WHERE `post_id` = 8 made by do_action(‘wp_ajax_ap_ajax’), WP_Hook->do_action, WP_Hook->apply_filters, AnsPress_Process_Form->ap_ajax, do_action(‘ap_ajax_new_comment’), WP_Hook->do_action, WP_Hook->apply_filters, AnsPress_Comment_Hooks::new_comment, wp_new_comment, do_action(‘comment_post’), WP_Hook->do_action, WP_Hook->apply_filters, AnsPress_Hooks::new_comment_approve, do_action(‘ap_publish_comment’), WP_Hook->do_action, WP_Hook->apply_filters, AnsPress_Hooks::publish_comment, ap_insert_qameta

So this has nothing to do with upgrade/update. It is just a bug.

commented on answer

Please get latest commit.

This come back again, even after the latest commit. Do i reed to start again fom scratch ? Reinstall ? Clean something ?

Ok, i edited the table directly and renamed to “fields”. Works ok now. Or seems to.

Yes. or you can simply rename custom_field column in qameta table to fields

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