Klenkes Posted January 17 Share Posted January 17 (edited) I have a few RPB blocks in _main.php. Nowhere else. When editing HOME and I make no changes, PW warns me about loosing changes all the time. Although no changes have been made. At first it all worked fine, but somewhere during the last few days, it started. I disabled RockMigrations and LiveReload temporarily, but no change. I am not sure how to troubleshoot this... Edited March 21 by Klenkes Problem solved 1 1 Link to comment Share on other sites More sharing options...
bernhard Posted January 17 Share Posted January 17 Thx. This one I have seen myself so it looks I need to fix this. These things are always hard to find as you never know where they are coming from, so a report like this is helpful as it says that it's coming from RockPageBuilder and not another module. BUT. Could you please provide step-by-step what you are doing and when you are seeing it? Because it does not appear when I'm just editing the homepage and then try to leave! There must be more steps involved? 1 Link to comment Share on other sites More sharing options...
Klenkes Posted January 17 Author Share Posted January 17 Oh my god... I am relieved that this time it's not only me (Stirnabwisch) I will report back! Link to comment Share on other sites More sharing options...
Klenkes Posted January 17 Author Share Posted January 17 Nothing special about it, twice leave the page the third time I did a F5 1 Link to comment Share on other sites More sharing options...
Klenkes Posted February 28 Author Share Posted February 28 @bernhard Any news on this? Funny thing... on a new project it only happens when a block is opened(uncollapsed) and then you do a reload. If you don't open a block the javascript message isn't shown, and everything is okay. Link to comment Share on other sites More sharing options...
bernhard Posted March 9 Share Posted March 9 Hey @Klenkes I've just been working on this again, but it's really hard to fix if I'm not able to reproduce ? I think the problem could be these lines in InputfieldRockPageBuilder.js: // make sure to add InputfieldStateChanged immediately after keydown // we do not intercept form.submit() because that somehow brakes the save process $(document).on("keydown", ".InputfieldRockPageBuilder input", function (e) { $(e.target).closest(".Inputfield").addClass("InputfieldStateChanged"); RockPageBuilder.changed(e); }); $(document).on("keydown", ".InputfieldRockPageBuilder textarea", function (e) { $(e.target).closest(".Inputfield").addClass("InputfieldStateChanged"); RockPageBuilder.changed(e); }); Could you try commenting these out and see if that makes a change? Link to comment Share on other sites More sharing options...
Klenkes Posted March 11 Author Share Posted March 11 Hi @bernhard Sorry, but commenting out these functions had no effect... ? (I did a module refresh and cleared compiled files, just to be sure) Link to comment Share on other sites More sharing options...
bernhard Posted March 11 Share Posted March 11 Ok thx I'll write you a PM ? Link to comment Share on other sites More sharing options...
bernhard Posted March 20 Share Posted March 20 Hi @Klenkes I've found the issue! Please download v5.3.1 ? FYI: The change event was triggered by the widgets field (or whenever more than one RPB field were present on one page in the backend). Could you please mark the topic as solved? ? 1 Link to comment Share on other sites More sharing options...
Klenkes Posted March 21 Author Share Posted March 21 Yeah! It works! In my case there were 6 RPB fields on one page in the backend. I'm sorry I couldn't be of much help in finding the culprit... 2 Link to comment Share on other sites More sharing options...
bernhard Posted March 21 Share Posted March 21 No worries, giving feedback is already much appreciated and helps a lot ? 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now