Edit-Flow icon indicating copy to clipboard operation
Edit-Flow copied to clipboard

Editorial Comments are not refreshed

Open littlesnitch opened this issue 9 years ago • 16 comments
trafficstars

Hello everybody,

we have an issue with EditFlow 0.8 containing "Editorial Comments". At the moment this must be done in order to see an Editorial Comment: -> open a new post -> Scroll down to the end of the post -> click on "Editorial Comments" -> click on "Respond to this post" -> -> click on "Submit Response" -> Comment is inserted but not visible -> NOW PRESS F5 FOR REFRESH -> Comment is inserted and visible

So I would feel this as a bug, because I would like to have that the comment is inserted and visible immediately.

Thank you.

littlesnitch avatar Mar 04 '16 09:03 littlesnitch

Hrm. Not sure I'm seeing the same thing. I'm using WordPress v4.5.1, what version of WordPress are you using?

Steps to reproduce

  1. Click "Add New" to create a new post
  2. Presented with a page captured in the screenshot below screen shot 2016-04-27 at 4 03 57 pm

You'll see in the screenshot after I create a new post I get the following message: You can add editorial comments to a post once you've saved it for the first time.

After saving the post, I get the following:

Steps to reproduce

  1. After saving the post, scroll down to "Editorial Comments" section.
  2. Click the "Respond to this post"
  3. Click on "Submit Response" and I get the following screenshot screen shot 2016-04-27 at 4 08 29 pm

cojennin avatar Apr 27 '16 20:04 cojennin

@littlesnitch are you still encountering this issue?

cojennin avatar May 12 '16 01:05 cojennin

Ah, sorry, I missed last answer. So, we have Wordpress v4.5.2.The steps to reproduce are the lsame like you, but the result is another one - see screenshot 2016-05-12 09_56_38-004534 After pressing "Submit Response" screen keeps like you see in screenshot 2016-05-12 09_57_57-004535 After I've initiated a complete refresh of whole Website using F5, the comments are shown then. So seems like here in our environsment refresh after "Submit Response" does not work.

littlesnitch avatar May 12 '16 11:05 littlesnitch

@littlesnitch do you have other plugins enabled on your site? If so, which ones are they?

cojennin avatar May 12 '16 13:05 cojennin

So, here are the plugins that are installed and their versions: Worpress 4.5.2

Akismet                          Version 3.1.7
Crayon Syntax Highlighter        Version 2.8.0
Edit Flow                        Version 0.8
NextGEN Gallery by Photocrati    Version 2.1.23
Series                           Version 1.0.0
WP Responsive Recent Post Slider Version 1.2.3
WP Statistics                    Version 10.0.5
WP-Benutzer-Avatar               Version 2.0.6

littlesnitch avatar May 24 '16 07:05 littlesnitch

Awesome, thanks for the info.

Haven't been able to recreate this yet using Edit Flow version 0.8.1 and with all the plugins you mentioned activated. Any chance you can upgrade to Edit Flow version 0.8.1 and see if the issue persists?

cojennin avatar May 25 '16 23:05 cojennin

System was upgraded to 0.8.1, but it still doesn't work.

littlesnitch avatar May 30 '16 08:05 littlesnitch

Hrm. Couple quick questions:

  • Does this still happen if other plugins are disabled?
  • What theme are you using? And does this still occur if you use the default WordPress theme?
  • Does this happen with every browser (Chrome, IE, Firefox)?
  • If possible, would you be able to copy and paste the output of the console in Chrome's or Firefox's Developer Tools?

cojennin avatar May 31 '16 16:05 cojennin

Hi there, I have done following tests:

  • I have tested following browsers: Chrome 50.0.2661.102m firefox 38.8.0 ESR IE 11
  • deactivated all plugins but EditFlow
  • Changed theme from NightMag 1.1 to default theme Twenty Sixteen 1.2
  • I kept Enable "Editorial Comments" only in EditFlow Settings It does not work. blog-test2-anonymized.har.txt

littlesnitch avatar Jun 10 '16 11:06 littlesnitch

Hi there, are there any news?

littlesnitch avatar Jul 29 '16 07:07 littlesnitch

Hrm, still not sure. From the logs you uploaded it looks like you're getting back the right response (The response with <wp_ajax>).

And you're not seeing any errors in the console, right (see below)? screen shot 2016-07-29 at 10 42 25 am

cojennin avatar Jul 29 '16 17:07 cojennin

The only message that comes up in console is: Deprecated TinyMCE API call: .onNodeChange.add(..) plugin.min.js:1

This one comes before: JQMIGRATE: Migrate is installed, version 1.4.1 load-scripts.php:9

If I click on "Respond to this post" I get this line: curl "https://blog.xxxxxxxxxxxxxxx.cc/wp-admin/admin-ajax.php" -H "Cookie: wordpress_sec_ac3fe121ad5b5960fa0ab05731464b5f=xxxxxxx%7C1471439007%7CVBO48w248PUGiyzqsz3vWvD6jxqO6up2fjvKT9LQU6S%7C8b586e613f77dfa451284f847713be1f58a799e7b01bfe75f8fc15307bb46d1f; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_ac3fe121ad5b5960fa0ab05731464b5f=xxxxxxx%7C1471439007%7CVBO48w248PUGiyzqsz3vWvD6jxqO6up2fjvKT9LQU6S%7C49998c4edebf810d95d61c522b900cf68c661354c94e6241b0f9a07e42960862; wp-settings-time-20=1471266224" -H "Origin: https://blog.xxxxxxxxxxxxxxx.cc" -H "Accept-Encoding: gzip,deflate,sdch" -H "Host: blog.xxxxxxxxxxxxxxx.cc" -H "Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4" -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Iron/27.0.1500.0 Chrome/27.0.1500.0 Safari/537.36" -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "Accept: application/json, text/javascript, */*; q=0.01" -H "Referer: https://blog.xxxxxxxxxxxxxxx.cc/wp-admin/post.php?post=1185&action=edit" -H "X-Requested-With: XMLHttpRequest" -H "Connection: keep-alive" --data "data%5Bwp-refresh-post-lock%5D%5Bpost_id%5D=1185&data%5Bwp-refresh-post-lock%5D%5Block%5D=1471266224%3A20&interval=15&_nonce=2c3b6da7ef&action=heartbeat&screen_id=post&has_focus=false"

After clicking on "Submit Response":

curl "https://blog.xxxxxxxxxxxxxxx.cc/wp-admin/admin-ajax.php" -H "Cookie: wordpress_sec_ac3fe121ad5b5960fa0ab05731464b5f=xxxxxxx%7C1471439007%7CVBO48w248PUGiyzqsz3vWvD6jxqO6up2fjvKT9LQU6S%7C8b586e613f77dfa451284f847713be1f58a799e7b01bfe75f8fc15307bb46d1f; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_ac3fe121ad5b5960fa0ab05731464b5f=xxxxxxx%7C1471439007%7CVBO48w248PUGiyzqsz3vWvD6jxqO6up2fjvKT9LQU6S%7C49998c4edebf810d95d61c522b900cf68c661354c94e6241b0f9a07e42960862; wp-settings-time-20=1471266224" -H "Origin: https://blog.xxxxxxxxxxxxxxx.cc" -H "Accept-Encoding: gzip,deflate,sdch" -H "Host: blog.xxxxxxxxxxxxxxx.cc" -H "Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4" -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Iron/27.0.1500.0 Chrome/27.0.1500.0 Safari/537.36" -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "Accept: /" -H "Referer: https://blog.xxxxxxxxxxxxxxx.cc/wp-admin/post.php?post=1185&action=edit" -H "X-Requested-With: XMLHttpRequest" -H "Connection: keep-alive" --data "content=test&action=editflow_ajax_insert_comment&parent=0&_nonce=d260bda610&post_id=1185"

curl "https://blog.xxxxxxxxxxxxxxx.cc/wp-admin/admin-ajax.php" -H "Cookie: wordpress_sec_ac3fe121ad5b5960fa0ab05731464b5f=xxxxxxxx%7C1471439007%7CVBO48w248PUGiyzqsz3vWvD6jxqO6up2fjvKT9LQU6S%7C8b586e613f77dfa451284f847713be1f58a799e7b01bfe75f8fc15307bb46d1f; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_ac3fe121ad5b5960fa0ab05731464b5f=xxxxxxx%7C1471439007%7CVBO48w248PUGiyzqsz3vWvD6jxqO6up2fjvKT9LQU6S%7C49998c4edebf810d95d61c522b900cf68c661354c94e6241b0f9a07e42960862; wp-settings-time-20=1471266224" -H "Origin: https://blog.xxxxxxxxxxxxxxx.cc" -H "Accept-Encoding: gzip,deflate,sdch" -H "Host: blog.xxxxxxxxxxxxxxx.cc" -H "Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4" -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Iron/27.0.1500.0 Chrome/27.0.1500.0 Safari/537.36" -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "Accept: application/json, text/javascript, /; q=0.01" -H "Referer: https://blog.xxxxxxxxxxxxxxx.cc/wp-admin/post.php?post=1185&action=edit" -H "X-Requested-With: XMLHttpRequest" -H "Connection: keep-alive" --data "data%5Bwp-refresh-post-lock%5D%5Bpost_id%5D=1185&data%5Bwp-refresh-post-lock%5D%5Block%5D=1471266240%3A20&interval=15&_nonce=2c3b6da7ef&action=heartbeat&screen_id=post&has_focus=true"

Hope that I did anonymize correctly.

littlesnitch avatar Aug 15 '16 13:08 littlesnitch

Hrm. Thanks for all the information, but at this point I'm not sure I'll be able to assist with the issue. It's strange that after deactivating all other plugins except Edit Flow and reverting to using Twenty Sixteen 1.2 you're still encountering this issue.

I haven't heard of other folks having a similar issue with using Editorial Comments. Sounds like there's something different about the environment or web host you're using that might be causing the issue. I'll leave this ticket open for a bit to see if anyone else can lend a hand (and to see if other users end up reporting having a similar problem).

cojennin avatar Sep 01 '16 15:09 cojennin

@littlesnitch Are you still experiencing this issue?

philipjohn avatar Jan 16 '18 08:01 philipjohn

@philipjohn: Yes, the issue still exists.

littlesnitch avatar Jan 16 '18 08:01 littlesnitch

Hi @littlesnitch,

I tried to replicate this for a bit as well, but could not. You mentioned in the replication steps with step one being "open a new post". Are you doing this on a post that has not been initially saved yet? This shouldn't be possible, but wonder if you're hitting an edge case around that somehow.

Otherwise, also wanted to double check that you've tried this with both all other plugins disabled and a default WordPress theme activated at the same time.

Other than that, the only thing I can think of is some oddities with the web host.

WPprodigy avatar Jan 16 '20 02:01 WPprodigy