-
binarywebinsites
Theme Version: 3.6.0
Plugin Version: 2.5.5Hi there, I have a client using the above versions of the theme and plugin who does not use block editor and was trying to add a background image to a section on a new page. He was able to do that no problem but then when he wanted to change it or remove it he was unable to. He said there was no visible option to remove the background image from the sections settings without deleting the section completely and recreating it.
Please advise.
Thanks.
Davood Denavi
Website Solutions Engineer -
Hi there,
Can you provide your client’s site admin login so we can take a look at the issue?
Let me know 🙂 -
binarywebinsites
No, sorry. For security my team do not provide access to our clients site.
-
binarywebinsites
Also, it is worth noting here that he does not plan to make any more pages using sections in the near future so using his live site would not be a solution here. Please ask questions which will allow me to provide information so that we can maybe get to an answer.
-
The sections module has been deprecated for a long time; I have never used it myself so I have no idea what the module is like or what the UI is like.
I can’t tell why it’s not working, unless I can see the issue myself.
I’ll forward your question to David, but I doubt he will be able to answer you either without seeing the issue.
-
binarywebinsites
Thank you for forwarding to David. I am sure he will be able and willing to ask me questions to help me figure out why it did not work correctly for my client.
-
Hi there,
the sections module was deprecated over 4 years ago as it was dependent on classic editor functions that WordPress was soon to end support for. Meaning there is nothing we can do IF Sections no longer work with core functions.
That said I re-enabled the module in an existing local install along with the core Classic Editor plugin:
https://wordpress.org/plugins/classic-editor/And it actually still works and as you can see in the below video I was able to add and update background images without problem:
https://app.screencast.com/3mIYO9t2OLX1u
So if the user is not seeing the same options as shown in the video then I suspect there is a conflict.
This may be a plugin or a code snippet; perhaps something that is extending/altering the classic editor functions.The most I can suggest is testing for conflicts by disabling plugins and snippets.
-
binarywebinsites
Hi David, Happy Thanksgiving. I was aware that the Sections feature was deprecated over 4 years ago. However, are you suggesting that if we are using the latest version of the theme (which we are) it could be causing a conflict with the background image settings because the code is not supported by the latest version of the theme?
-
Happy Thanks Giving to you,
No, thats not what I mean.
On the test site I shared the video from I am working with the latest version of WordPress, GeneratePress, GeneratePress Premium and the core Classic Editor. And as you can see in the video Sections is working correctly and I have the option change background images.If the client site is not behaving correctly then I am saying there is most likely a conflict elsewhere on the site. eg. a Plugin or Code snippet.
-
binarywebinsites
Thank you for clarifying.
While I was waiting for your reply I checked on my clients site to see if there is an error of any sort showing up in Chrome’s dev tools under the console tab… and I saw this:
Uncaught TypeError: Cannot read properties of undefined (reading 'url') at Object.success (generate-sections-metabox.js?ver=2.5.5:337:84) at Object.<anonymous> (backbone.min.js?ver=1.6.0:2:6791) at c (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:2:25304) at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:2:26053) at Object.<anonymous> (wp-util.min.js?ver=6.8.3:2:1230) at c (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:2:25304) at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:2:26053) at l (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:2:77782) at XMLHttpRequest.<anonymous> (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:2:80265)Understand this errorLooks like there is an error in the JS of the theme that might be causing the issue.
I suppose that a conflict could be getting caused because of another plugin but would you mind confirming that there is not an error in the JS of the theme?
-
I can confirm there is no known errors in the JS , the theme or GP Premium related to the Sections module. We haven’t changed any code in the last 4 years.
That error means the generate-sections-metabox.js request received an Undefined value when reading the URL.If this issue only affects one Section then it maybe the data has been corrupted and you would need to rebuild it.
If this issue affects all Sections on all Pages then its most likely a plugin/snippet conflict -
binarywebinsites
I knew what the error meant… However, I wanted to be sure there was no bug in the code because I was looking at a page on my customers site which is using the background image options in one of the pages sections and the remove button was not showing up. Thank you for confirming that it is not a bug in the code.
Over the weekend I will do some testing/debugging on a fresh wp staging site with the same plugins that client is using to see if I can duplicate the issue.
I will reply here once that testing is done just so the issue is actively documented in case anyone else who still might have a site using sections has the same issue arise.
- You must be logged in to reply to this topic.