Hi !

 

I’d like to remove view count and date from question meta, but keep showing the category / tag.

I have been hacking the plugin : I went to includes/qaquery.php and commented out the following lines :

 

//  $metas[’views’] = ‘<i class=”apicon-eye”></i><i>’ . sprintf( __( ‘%d views’, ‘anspress-question-answer’ ), $view_count ) . ‘</i>’;

// $metas[’active’] = ‘<i class=”apicon-pulse”></i><i><time class=”published updated” itemprop=”dateModified” datetime=”‘ . mysql2date( ‘c’, $last_active ) . ‘”>’ . $last_active . ‘</time></i>’;

 

It works, it removes views count and date but I’m looking for a neat way to do this because in the next Anspress update my changes will be reverted back since I directly hacked the plugin.

How should I do ?

Thanks a lot  🙂

Quests cannot add any comments, the anspress show messenger that is not allowed.

And second problem is, that quest have not name field on this comment add form.

Hello,

 

The plugin works quite well, but I have a little problem.

When the base page and the question slug are the same, the ask page does not work.

my base page is: mysite.com/forum and slug for questions are mysite.com/forum/question

the ask page mysite.com/forum/ask is broken

I put the aks page shortcode on another page, and it works, but some functions as edit question are not working because they call the broken url, like

mysite.com/forum/ask/?id=13807&__nonce=640dadf214

it does not call

mysite.com/ask/?id=13807&__nonce=640dadf214

and it returns 404 page

 

Thanks for your help, we can pay for solving this (make /forum/ask/ work) if necessary, it is very important for us.

Hi aganin,

 

Can you also desactivate my Licence key, I think it was linked to an old site which doesn’t exist anymore? Thank you a lot.

 

Regards,

 

Olivier Drubigny.

Hello,

My orders disappeared on your site, could you please fix this issue?

Regards,

olivier Drubigny.

When I click one of my categories in the sidebar to limit the results it seems to reload anspress AND the sidebar inside the content section, which adds another sidebar next to the original one.  I’ve probably done something stupid here, but could someone please tell me how to stop this from happening?  Thanks!

The plugin seems to work fine but I noticed several visualization problems that make the plugin unusable

View post on imgur.com

please look into this.

Thanks in advance 🙂

Hello, I am having a huge amount of issues after updating the plugin from 3.x to 4.0.x.

First issue, I have downloaded AnsPress “4.0.6” from GitHub, I put 4.0.6 in quotes because either I’m blind or nobody is reporting this. But GitHub says its release 4.0.6, but the code and WordPress say it’s 4.0.5 but there are differences from the 4.0.5 I originally had, to make things more confusing, the AnsPress home page says to download 4.0.5. Need to get this straightened out.

 

Second the recalculate tools are not working, I have run the WP CLI upgrade command and it was successful, but when I go to recalculate all the things, Votes and Flagged Posts never finish, Answers Subscribers, Views do finish, Reputation says it “finished” but I get a list of SQL errors in the error logs.

From my testing, the votes and Flagged Posts both have 450 posts, the others have 246, Looking at the network votes and flagged are sending 6 ajax calls with increment “current” Parameters from 0 to 5, each group is doing 50 so that’s only 300 “being done”, there is no error logs when running them.

As for the reputation errors/warnings, the first one seems to just be a function deceleration issue

PHP Warning: Missing argument 2 for AnsPress_Admin_Ajax::recount_answer_reputation(), called in /var/www/#########/public_html/articles/wp-content/plugins/anspress-question-answer/admin/ajax.php on line 461 and defined in /var/www/#########/public_html/articles/wp-content/plugins/anspress-question-answer/admin/ajax.php on line 488

The function is “recount_answer_reputation( $user_id, $event )” $event is not passed and not used in the function

the SQL error is

WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘WHERE post_author = 0 AND post_type = ‘answer’ AND post_status IN (‘publish’, ‘p’ at line 1 for query SELECT ID FROM WHERE post_author = 0 AND post_type = ‘answer’ AND post_status IN (‘publish’, ‘private_post’) made by do_action(‘wp_ajax_anspress_recount’), WP_Hook->do_action, WP_Hook->apply_filters, AnsPress_Admin_Ajax::anspress_recount, AnsPress_Admin_Ajax::recount_reputation, AnsPress_Admin_Ajax::recount_answer_reputation

looking at the code seems to be a typo again, {$wpdb->ap_reputation} should be {$wpdb->ap_reputations} Missing s on this line
$wpdb->prepare( “SELECT ID FROM {$wpdb->ap_reputation} WHERE post_author = %d AND post_type = ‘answer’ AND post_status IN (‘publish’, ‘private_post’)”, $user_id )

But after fixing the typo it give the error
WordPress database error Unknown column ‘ID’ in ‘field list’ for query SELECT ID FROM wp_ap_reputations WHERE post_author = 0 AND post_type = ‘answer’ AND post_status IN (‘publish’, ‘private_post’) made by do_action(‘wp_ajax_anspress_recount’), WP_Hook->do_action, WP_Hook->apply_filters, AnsPress_Admin_Ajax::anspress_recount, AnsPress_Admin_Ajax::recount_reputation, AnsPress_Admin_Ajax::recount_answer_reputation

assuming that should be rep_id rather then ID but also the post_author column is not in there so I stopped going any further

 

Thank you for taking a look into these issues.