Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #813997

    journeysct
    Participant

    I am having a problem only when adding Custom CSS to the Customizer. I add the code, then when I click on the Save & Publish button, I get the “Error establishing a database connection”. I can do anything else in the Customizer, no problems at all. Only when adding the CSS is there an issue. Any ideas how it can be corrected?

    #814473

    Christopher
    Moderator

    Hi there,

    Can you confirm that you are fully updated? (Theme and Plugins)

    You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site.

    If you find anything to be out of date, you can review our update guide.

    You can provide us with URL and login credentials so w can take a closer look.

    Thanks.

    #814487

    journeysct
    Participant
    This reply has been marked as private.
    #814945

    Rad
    Moderator

    Hi there,

    Is it okay if I disable all the plugins? I like to test it clean and see if it’s related to performance, plugin, or settings.

    Thanks!

    #815013

    journeysct
    Participant

    Yes, please do what needs to be done. Hopefully, this will over others with the same problem a solution. Please do let me know what you find. Thank You!

    #815349

    Christian
    Moderator

    Hey there,

    I’m another support member and I’ve added a custom CSS in the Customizer and created a test page with Cornerstone without experiencing the issue you’ve said. See http://journeys.walnutcreekhoa.com/?page_id=1052. Has this been solved. If it doesn’t work on your end, please try clearing your browser cache or history.

    Thanks.

    #815351

    journeysct
    Participant

    Hello,

    I just tried it again and the very same error: Here is the code I added:

    /* Color of submenu background*/
    .x-navbar ul.sub-menu{
    background: #B40808 !important;
    }

    #815363

    journeysct
    Participant

    May I ask what browser you are using. I was using Chrome on a Mac when I got the error. I just tried adding the same code using Firefox and no error. I just tried to change the code you had entered from the red to blue using this code:

    .test {
    background:blue;
    color:white;
    }

    Again, using Firefox and it happened again.

    #815373

    journeysct
    Participant

    It appears somehow the browser is hanging on the second effort. I just used Chrome and added the same code and that took, so your test page is now a blue bar. What I am seeing is when I enter the code, the preview window to the right dims slightly and it hangs there. Doesn’t become bright again, and if I click the Save & Publish button, I get the error.
    I’m just trying to give you as clear a description as I can.

    #815376

    journeysct
    Participant

    And, yes, I have cleared the browser history/cache as requested. It is so inconsistent, I can’t seem to figure out what is causing the issue.

    #815466

    Christian
    Moderator

    I’ve tested again and and still no problem. I use Chrome on Windows. See https://cloudup.com/c_lmKX4gfmt (play in Firefox. But, based on what you’ve said, this sounds like an issue with your connection to your webhost or server. Please try checking with your web host.

    Thanks.

    #818074

    journeysct
    Participant

    Hello,
    As a follow-up, I did contact my hosting service. They had me switch to another theme (Twenty-Fifteen) and I added some CSS and it immediately updated. I actually added 3 different CSS snippets and each one took immediately. They told me since that was working that my issue has to be with the theme itself.

    I switched back to my X-Theme child and added the code. The first CSS snippet took about 5 seconds before the right side of the screen came back to full brightness. I hit the Save & Publish and it worked just fine.

    BUT, when I added the next CSS snippet, the right side of the screen dimmed for nearly 2 minutes. Then it returned to full brightness and I was able to save it. So, for some reason, it appears that the theme is causing a very long delay for the CSS to become effective. Is there anything I can do to speed that up? I think I was getting the “Error establishing a database connection” because I was not waiting for the right side of the screen to come back to full brightness before hitting the Save & Publish button.

    I am open to suggestions. The admin that I set-up for you to verify is still there if you need to look at what I am saying. Please try adding a couple of CSS snippets to see if you can get the problem to occur.

    Thank You!

    #818146

    Paul R
    Moderator

    Hi,

    Please note that it is not advisable to type in your code directly in custom > css area as it creates request in every letter you type.

    What you can do is to type your code in a text editor like notepad then copy your code as a whole and paste it in custom > css.

    Thanks