Problems with Anspress 4 beta

11.51K 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

as I said earlier, please do not updated from previous version. Its only for new install. I am am working on migration script.

commented on answer

Add instruction for early adopters to clean install beta on WordPress with previous Anspress installation. That would help. And, I think, You need to better communicate, that this beta cannot be installed on top of a older version.

Hello @priard and @Cagliostro I am available on slack for chat. You can ping me anytime there

Hi Rahul, I meant for other users, because lots of people will install beta on top of previous version for sure. You know how it is, almost no one reads installation notes before installation, but everybody will complain. 😉

You can write simple plugin or script for deleting anspress database, that will help users, who want to test new beta, but have old installation. There is option to do that in 3.0.7, but there are errors when deleting plugin.

There is no problem when updating from previous version except answer count and votes count will not work. But this will not happen with 4.0 stable version. When I release stable version everything will be migrated automatically under the hood. Currently I am working on migration script. So, until then kindly try on new install to check for bugs. Thanks

Ok, I’am now testing on top of previous version, and I needed to manual (nav bar url manipulation) switch to tools, to delete all options and database, because off style issue, and some errors with displaying options. I have another installation and will trace back the issue, but for now I’am testing this one.

When you find any bug please post all issues with backtrace and sceenshot. Thanks