Closed bmc38119 closed 1 year ago
Also - I just checked the front-end and all my custom loaded fonts and some styling is no longer present for the entire page.
Looks like assigned classes on page are also affected by this error. I just opened Home page and looked at this text that is supposed to be white (via a assigned class) and here is the message:
Looks like assigned classes on page are also affected by this error. I just opened Home page and looked at this text that is supposed to be white (via a assigned class) and here is the message:
Did you delete the class?
Email support@breakdance.com with a link to this ticket and your WP admin login details and we'll take a look.
@louisreingold Sending admin details now. Regarding the classes - I am not sure if it was related but the issues happened all at the same time. Shortly after reporting this bug - I noticed that History was available under Selectors - and I selected the history step prior to the current in that list and all classes were restored (prior to making that change - they were all missing). I know for a fact that I did not delete them all - so not sure what happened there. But this Global Block editing issue and the deletion of the classes all seemed to have happened right at the same time.
What host are you on and approximately how many classes do you have?
Host: Cloudways Maybe 10 classes created.
On Wed, Aug 17, 2022 at 5:30 PM Louis Reingold @.***> wrote:
What host are you on and approximately how many classes do you have?
— Reply to this email directly, view it on GitHub https://github.com/soflyy/breakdance-bugs/issues/240#issuecomment-1218557808, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4A77VE3Q6LWEQDN3MD67DVZVRYPANCNFSM562AZZWA . You are receiving this because you authored the thread.Message ID: @.***>
--
============================================ brandon mcneill . @.*** . 901-378-7981
I just looked into the Error Log for this and noticed where it was looking for $lastPreviewedItem in the wp_postmeta table. I looked this up in the MySQL DB and the record is below. It looks like I may have accidentally selected a page as a preview and this is causing the issue.
Screenshot below contains query results for 2 Global Blocks.
And I can confirm that this was the issue. I just changed the [template_last_previewed_item] key value to the same as 11616 - and the Global Block (11509) is now editable.
And it looks like this mistake is easy to make b/c Pages shows up as the first options in the select list. See screenshot below.
@bmc38119 do you know if the template_last_previewed_item
for the broken Global Block was for a non-existent page? Maybe you deleted the "Tap Menu" page?
Hello - apologies for my delay in responding. I came down with COVID last week and have been out of pocket.
The value of the template_last_previewed_item was an existing active page. What I think happened, was I was editing the Global Block and accidentally selected a Page *Tap Manu" as the Preview (pages show as first in the list in the select list). This was irreversible on the front-end b/c of the error in the builder after this happened.
The error was not fixed until I made the change in the database to a custom post type as the template_last_previewed_item.
Does this help? If you cannot replicate, I can attend to recreate and send video.
On Tue, Aug 23, 2022 at 12:01 PM Obed Parlapiano @.***> wrote:
@bmc38119 https://github.com/bmc38119 do you know if the template_last_previewed_item for the broken Global Block was for a non-existent page? Maybe you deleted the "Tap Menu" page?
— Reply to this email directly, view it on GitHub https://github.com/soflyy/breakdance-bugs/issues/240#issuecomment-1224351138, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4A77TT6WNN35PCEXMFXBTV2T7VDANCNFSM562AZZWA . You are receiving this because you were mentioned.Message ID: @.***>
--
============================================ brandon mcneill . @.*** . 901-378-7981
I wasn't able to reproduce the bug, but it sounds like one we fixed recently.
Could you update Breakdance to the latest beta and try to reproduce it? If you still get it, a video would be helpful.
I will do a video later - but I am using Beta 11 and can confirm that it is not corrected. Screenshot below. I just went to one of my global blocks, searched for a page(Tap Menu) in the Preview drop-down, selected it - and receive this message below.
[image: image.png]
On Mon, Aug 29, 2022 at 11:58 AM Obed Parlapiano @.***> wrote:
I wasn't able to reproduce the bug, but it sounds like one we fixed recently.
Could you update Breakdance to the latest beta and try to reproduce it? If you still get it, a video would be helpful.
— Reply to this email directly, view it on GitHub https://github.com/soflyy/breakdance-bugs/issues/240#issuecomment-1230579102, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4A77RV4Y2E2JGMOB3457LV3TT4FANCNFSM562AZZWA . You are receiving this because you were mentioned.Message ID: @.***>
--
============================================ brandon mcneill . @.*** . 901-378-7981
Here is a video I recorded this morning of this issue. I am on RC1 - so this does not appear to be corrected in a prior release. You will see that each time I select a PAGE as the preview, and refresh the builder, the Global Block errors on screen (the only exception is that the "Home" page works). All other pages error (I show "Contact Us" and "Awards" and "Test Breakdance Page" as examples). When I preview CPT_PRODUCT post type, there is no error. You can also see when I clear the value from the template_last_previewed_item meta key, the Global Block is then editable again after refresh.
@obedparla
I am wanted to re-surface this issue since I am experiencing it on Templates now as well (when previewing a page within a Template, exiting the template, and going back into it for editing) - so it appears to impact more than jsut Global Blocks.
I am using the latest Version 1.1 Beta 1 - and this issue still persists.
Thanks
I have looked into this further b/c the site I am building is utilizing a number of Global Blocks - and I am continuing to run into this issue regularly now. I have monitored the values being saved to the database each time I updated the Previewing Selection and the logic appears to be producing the following results:
This logic applies to Header, Footer and Global Blocks:
Set Preview to any Page other than "Home" - throws the above reported error
For temporary fix for now, I am added a script to blank out the meta_value for template_last_previewed_item if it is set to a page that is not "Home".
@obedparla found that this was caused by a custom snippet @bmc38119 had in WP Code Box. Disabling the snippet resolves the error.
Ticket ref: https://secure.helpscout.net/conversation/1982769511/194/.
@obedparla If that finding doesn't apply here, please let me know so that I can remove this comment. Otherwise, I think this can be closed.
Can be closed 👍
Thank you Breakdance team. And apologies that the issue was caused by some code on my end.
On Mon, Nov 28, 2022 at 7:48 AM Andrzej Dubiel @.***> wrote:
Closed #240 https://github.com/soflyy/breakdance-bugs/issues/240 as completed.
— Reply to this email directly, view it on GitHub https://github.com/soflyy/breakdance-bugs/issues/240#event-7903119152, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4A77RX3LHHADTZOR7DTZ3WKSZ2DANCNFSM562AZZWA . You are receiving this because you were mentioned.Message ID: @.***>
--
============================================ brandon mcneill . @.*** . 901-378-7981
Cannot edit existing Global Block. Have been able to successfully edit until this morning when I opened it up to edit. I get the following error below (see screenshot).
Also - This appears to only be affecting 1 of 2 Global Blocks and not to Headers or Footers.
I can provide link and credentials to my site if needed.
And here is the error message when I click the Troubleshooting dialog.