proudcity / wp-proudcity

The ProudCity WordPress platform
https://proudcity.com
Other
21 stars 9 forks source link

Post Type Order not saving on live site #2445

Closed curtismchale closed 9 months ago

curtismchale commented 9 months ago

Builds

Logging Code removed

Source

On West Hampton you can't drag/drop the order of the document categories and have it save the new order. Locally on my (CM) machine with the West Hampton database downloaded for testing this does work without issues.

There are no errors thrown when you release the drag/drop action in the AJAX query that is made to do the saving. Query Monitor on the local site running PHP 8.2 does say there was an AJAX error though, it just doesn't show up in the console in Firefox or Chrome when I look.

When we run PHP 8.0.22 there is no AJAX error reported in Query Monitor and still none in the browser console.

I also double checked on another site and the drag/drop function does not work their either.

Redis Caching Issue If you turn off Redis then the drag/drop functions work as expected. If you drag/drop and then flush the Redis cache it also works as expected.

Redis FAQ

Describe the bug

A clear and concise description of what the bug is.

To reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

Add any other context about the problem here.

QA

Notes:

Links:

*

curtismchale commented 9 months ago

Created a pull request to add our cache flushing change into the mainline of this plugin.

https://github.com/hijiriworld/intuitive-custom-post-order/pull/63