soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

Template Targeting Gets Stuck - Dynamic Data Preview Broken #3019

Open kevingeary opened 2 years ago

kevingeary commented 2 years ago

Describe the bug If you assign a template to the wrong place (like "all archives" when you meant to choose "post category archive"), you can't fix it. It gets stuck on its initial targeting. Thus, the preview dropdown and dynamic data features don't work.

Steps to reproduce the behavior:

  1. Create a new template
  2. Assign the template to "All Archives"
  3. Open the builder and check the preview dropdown. It'll have all archive pages listed. This is correct.
  4. Go back to the template targeting area in the admin
  5. Change the template targeting to "Taxonomies > All categories"
  6. Re-open the builder and check the preview dropdown. It'll still have all archive pages listed. And it'll never show anything else unless you completely delete the template and re-create it. This is broken.
adrien-robert commented 2 years ago

I already had this issue so many time since using Oxygen... Never knew why... Until now, thanks @kevingeary for reporting this bug! Hope it can get fixed inside Oxygen 4.1 @Spellhammer

Maybe when we save a template and the new informations from "Where does this template apply?" is different from what we have initially when we loaded the template page, we could overwrite the informations inside the database about what our template is applying to. Should be an easy fix, no?

derSebastian commented 2 years ago

This also happens when using a repeater with a custom query on ANY no template page. The preview does not work to show all items MOST of the time or an image gets repeated instead of replaced. There is always either one element that display "No Data Available" or uses the same data from a previous field even though on a previous page load it was there...

Sabaidi59 commented 2 years ago

I have the same problem and it took me a long time to find out the solution through kevingeary. However, it is very time-consuming and such a bug should not happen and must be fixed quickly.

Spellhammer commented 2 years ago

@kevingeary Thanks for the detailed report. I checked on a sandbox and am unable to reproduce. Can you reproduce on a demo site at https://oxygenbuilder.com/try and post the link?

I'd like to see what's happening in the postmeta table when this occurs.

kevingeary commented 2 years ago

@Spellhammer Can't reproduce in Sandbox. Perhaps a plugin conflict then?

kevingeary commented 2 years ago

@kevingeary Thanks for the detailed report. I checked on a sandbox and am unable to reproduce. Can you reproduce on a demo site at https://oxygenbuilder.com/try and post the link?

I'd like to see what's happening in the postmeta table when this occurs.

It doesn't appear to be a plugin conflict. I'm going to submit a ticket because it's happening on my private install with all plugins disabled except for Metabox. But Sandbox was working with Metabox installed.