Problems with Anspress 4 beta

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

Here is upload progress, just made a commit to Github.

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.

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

I think this is not needed twice. IMHO.

commented on answer

Yes you are right, I should remove header.

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

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

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

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

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

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