Problems with Anspress 4 beta

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

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

1

[01-Jan-2017 20:59:44 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

0

01-Jan-2017 20:59:37 UTC] PHP Notice:  Use of undefined constant parent_q – assumed ‘parent_q’ in /home/website/wp-content/plugins/anspress/admin/anspress-admin.php on line 392

0

I try to remove an inserted image to a Question. I remove it, and while the inline image is removed …. the attachment stays as a bottom link in the post. Is that normal behavior ?

commented on answer

No its not. I will check.

0

In my browser debug i see:

 

GET http:// website. com/wp-content/plugins/anspress/assets/js/min/list.min.js

 

404 not found

commented on answer

And there is NO such file …

Just pushed a fix, please check latest commit

0

This is not a problem but rather a user experience improvement. During the upload of an image, there is nothing to inform the user this is happening. Especially when the image is large.

Not sure if something could be done about this.

commented on answer

Will you kindly create new private question of every issue? I have answered this as a new answer here.

I’m sorry. I didn’t know that everything should be in private. I will do so in the future.

Oh no need need to be sorry. I asked to post as private so that I can confirm if that is bug.

0

I think this is not needed twice. IMHO.

commented on answer

Yes you are right, I should remove header.

0

Permalinks !

I see some changes in Base Page permalink. Now it contains “index.php” for the Questions List page, Ask page, Categories page.

Is that nornal ?

0

Adding images to Q or A puts them in the library but there are NO thumbails when viewing the Media Library (so they are kinda of useless). While Blog Post images are ok.

commented on answer

Please do not consider it as bug, it was done for a purpose. I dont want wordpress to generate thumbs for publicly uploaded images. This will save some space in server.

Ok. So maybe when deleted they should also be removed totally ?

Yes, indeed.