AnsPress 4.1.8 is READY for release!!!

15.55K viewsUpdatesrelease
2

Hello Everyone,

AnsPress 4.1.8 is ready for release. Please give it a try on on your development site and let us know your feedback. It can be downloaded from GitHub [zip].

This time it took more time to release AnsPress. I wasn’t able to work due to my personal problems. Thanks for your understanding.

This version will be published to wp.org on 17th April, if no critical bug discovered by that time.

Thanks you, happy coding.

Question is closed for new answers.
Marked as closed

Kuddos Rahul!
Gonna try it on my staging site. 😀

Thanks Fred.

0

[Bug Reporting]
If I make a question with some category, there is the question which I have make when I search other category in question list page.
But! If I change my browser ( Chrome -> Safari ), There is no the question when I search other category.

Is this a session problem?

Posted new comment

If you posted without logging in and question status is “moderate” or “private” then yes you’ll not be able to see it in other browser. Its because of AnsPress session.

Thank you for your reply,

Here is a scenario.

1. Login as a default user
2. Ask a question with some category( like… computer science )
3. search questions by category( like, music )
4. there is the question which I ask right before in very first position!
5. I checked the query string
– SELECT ….. OR ( wp_posts.post_author = 1
AND wp_posts.post_status IN (‘publish’, ‘private_post’, ‘trash’, ‘moderate’)
) )
OR ( wp_posts.ID IN (1402)

1402 -> the question in computer science category

6. open safari and enter my site
7. of course, there is the question which I asked right before.
8. search by category ( music ) again
9. of course, the question in computer science is not shown.

Is this a default session setting? or did I something wrong?

Check please!

Please create a new question for this issue. I will check your issue.

0

i use last version from github. i don’t know why, but users can’t edit their answers.
I think it happens after was fixed a bug with editing questions.

Posted new comment

@Rahul Aryan if you need, i can give you admin and user account on my website to demonstrate the error

Just tried it on demo and localhost and working as expected.

can i restore anspress setting to default?

Yes you can. add this code to functions.php and remove it again once you have refreshed the page.

delete_option( ‘anspress_opt’ );
delete_option( ‘anspress_reputation_events’ );
delete_option( ‘anspress_addons’ );

0

Thank you for plugin.
i think new update to v.4.1.8 disables site if either Tags for Anspress or Categories for Anspress are active.
Could be just my site (network/multisite) local.
error log at this link

Posted new comment

Please remove all old AnsPress addons:
tags-for-anspress
categories-for-anspress
anspress-email

0

Hi Rahul,

 

will it support Redis cache please?

 

Alex

Posted new comment

Hello Alex,
AnsPress don’t have to add redis support, it will depend upon plugin you were using. BTW which plugin you were using?

Hi Rahul,

We are using

Wp-redis :https://wordpress.org/plugins/wp-redis/
and nginx helper: https://wordpress.org/plugins/nginx-helper/

they work fine with all plugins.

For Anspress, the numbers of view and votes are always wrong, please check the screenshot:
http://prntscr.com/j4m8w8
https://prnt.sc/izlsi4

and recount tool does not work for these issue.

and you said that Anspress is not compatible with Redis cache, there are at least two issue related, please check the discuss before:
https://anspress.io/questions/question/ans-and-votes-count-show-incorrect-number-with-4-1-8-version/
https://anspress.io/questions/question/shorcode-different-behavior-in-different-browser/

This is quite important issue, Since Redis cache is much high performance, it would be great if you can make it compatible with Redis cache.

Alex

Hello Alex,
This site now using redis cache. I am using a plugin called “Redis Object Cache” created by “Till Krüss” and its working awesome.
Its look like w3tc does not play well with redis, so I completely removed it.

Hi Rahul,

I test it before, but I failed to make it work.

can you make it work with Nginx helper(https://wordpress.org/plugins/nginx-helper/)?

Alex

On your site, it is same issue with vote:

http://prntscr.com/j92quy
Alex

0

in lib/form/class-editor.php

$settings = array(
      'textarea_rows' => 10,
      'tinymce' => array(
        'content_css' => ap_get_theme_url( 'css/editor.css' ),
        'wp_autoresize_on' => true,
        'statusbar' => false,
        'codesample' => true,
        'anspress' => true,
        'toolbar1' => 'bold,italic,underline,strikethrough,bullist,numlist,link,unlink,blockquote,fullscreen,apmedia,apcode',
        'toolbar2' => '',
        'toolbar3' => '',
        'toolbar4' => '',
      ),
      'quicktags' => false,
      'media_buttons' => false,
      'textarea_name' => $this->field_name,
    );
 $editor_args = wp_parse_args( $this->get( 'editor_args' ), $settings );


I think it is not good to settle the ‘toolbar1’ buttons because other Editor Plugin not works. Your settings override other plugins button setting.
How about just use ‘mce_buttons’ hook?
wp-editor will merge your setting with other settings.
Now I’m using like this

function alp_remove_anspress_editor_buttons( $editor_args ) {
 unset($editor_args['tinymce']['toolbar1']);
 return $editor_args;
}
add_filter( 'ap_pre_editor_settings', 'alp_remove_anspress_editor_buttons' );
 function alp_add_anspress_default_editor_buttons( $buttons ) {
 $anspress_defualt_buttons = array( 
  'bold', 'italic', 'underline', 'strikethrough', 'bullist', 'numlist', 'link', 'unlink', 'blockquote', 'fullscreen', 'apmedia', 'apcode' );
 array_merge( $buttons, $anspress_defualt_buttons );
 return $buttons;
}
add_filter( 'mce_buttons', 'alp_add_anspress_default_editor_buttons', 1000, 1 );


Check this please.

Posted new comment

Hello,
That is is being done intentionally. This helps output controlled buttons to public users but if you want more buttons in tinymce you can override option using our hook.

2

There is a big problem that I have experienced with it. I use a popular plugin named Beaver Themer which is used for making post templates. When 4.1.8 is activated, its breaks Beaver Themer and all of a sudden any Beaver Themer shortcodes appear on the front end of my website.

Also, I am having a problem with the recount functions. It goes to 50 only.

Posted new comment

Hello,
Thanks for reporting. I did some changes related to shortcode but I think that should affect other shortcodes. Can you kindly send me the plugin to my support email.
Thanks

Hello,
I just tried it with the plugin and its seems fine to me. Please check.

“Also, I am having a problem with the recount functions. It goes to 50 only.”
i have the same problem

Hello Guys. All issues related to recount have been addressed. You can check this for more info https://github.com/anspress/anspress/issues/435.
Thanks for reporting.

Hey Adam,
Improved shortcode whitelisting. This should fix your issue.

Admin menu counts fixed as well

0

HI Rahul,

There are two really similar Translation fields, please check:

http://prntscr.com/j68w6g
http://prntscr.com/j68wbw

From my understand, they are actually same,  should they be one?

Alex

Posted new comment

Hello, Nothing is wrong in there.

0

Sorry, the recount still does not work for me:
http://prntscr.com/j69pkw
Alex

Edited answer
0

Hi Rahul,
there are still errors with TaskBreaker:
http://prntscr.com/j68oc4
or please access this page for check:https://forum.lovcour.com/project/
this issue will cause “update task” does not work:
http://prntscr.com/j68phl

Alex

Posted new comment

Alex, please consult with its author, not an AnsPress issue.

0

Reply comment does not work both on your official site and my site:
http://prntscr.com/j68mar
http://prntscr.com/j68mr8

Posted new comment

Yes, that’s a bug. This will be fixed.