Hello,
I'm using a view refreshed in Ajax who is calling another view with content ordered via a meta ( basically a timestamp ).
https://toolset.com/wp-content/uploads/tmp/Capture_d_e_cran_2022_09_19_a_16.47.39_1.png
https://toolset.com/wp-content/uploads/tmp/Capture_d_e_cran_2022_09_19_a_16.47.28_1.png
https://toolset.com/wp-content/uploads/tmp/Capture_d_e_cran_2022_09_19_a_16.47.17_1.png
If you call the view directly or without Ajax ( hidden link ) the order is fine.
If you call the view by clicking on the Ajax button, ordering of the second view is broken. ( hidden link then click on day 29 )
Thanks,
Wilhem
Hello,
I assume we are talking about the post view "Projections / film / jour ( AJAX )":
hidden link
There isn't any frontend sortby control in it, are you going to filter the results by a custom date field "p-date"?
Please confirm it, thanks
Hi Luo,
Exactly, that view is calling another view : Projections \ jour ( projections-jour).
That second view is filtered by p-date and is ordered by a field called p-start-and-stop-time__begin which is basically a timestamp to help ordering.
That order is broken by the Ajax loading.
Thanks a lot,
Best regards
Wilhem
Thanks for the details, I can see the difference, please backup your website first, since you are using 49 plugins, there might be other compatibility issues in your website, please backup your website, then update here, I might need to deactivate plugins in your website, thanks
Hi Luo,
Well, thanks a lot.
I can propose you another solution, if you think it will work for you : we have a pre-prod version for another website, but with exactly the same issue AND 98% same views.
You should able to deactivate all plugins you want and run tests on it. It's not a live version.
What do you think ?
( backup will be very very heavy — unless we skip upload content )
If it's ok for you, I will need you IP adress in private and I will need to reply to you privately.
If not, I still can backup for you.
Best regards,
Wilhem
Hi Luo,
Client is complaining about a debug on film pages. Is it you ?
object(WP_Query)#28900 (48) ...
Luo, I found your debug, I can't let a debug in website for hours because website is an international film festival opening in few days ! So there is traffic at the moment.
Thanks a lot !
Sorry, I forget to deactivate the custom code snippet:
hidden link
In order to debug this issue without breaking your website, please provide a copy of your website in below private message box:
https://toolset.com/faq/provide-supporters-copy-site/
you can put the package files in your own google drive disk, share the link only
Thanks for the details, I am downloading the files, will update here if find anything
Hello Luo,
Hope you are fine ; did you found something for my issue ?
Best regards,
Wil
Hi Wil,
Luo is on vacation so I'll be following up on this ticket.
I will review this discussion, perform some tests, and share the findings accordingly.
Thank you for your patience.
regards,
Waqar
I've performed some tests on my website, but couldn't reproduce this issue.
This suggests that something specific to your website is involved. I'm currently downloading your website's clone.
It is a large file, so this investigation will take some more time. But, I'll keep you updated on the progress.
Ok, don't hesitate if you need help to find something.
I just wanted to let you know that I successfully deployed your website's clone on my test server.
We had an unusually busy forum queue over the weekend, but, I'll be resuming the troublshooting on this, today.