-
AuthorPosts
-
February 26, 2016 at 3:50 pm #813997
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?
February 27, 2016 at 1:54 am #814473Hi 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.
February 27, 2016 at 2:25 am #814487This reply has been marked as private.February 27, 2016 at 3:20 pm #814945Hi 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!
February 27, 2016 at 5:04 pm #815013Yes, 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!
February 28, 2016 at 1:54 am #815349Hey 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.
February 28, 2016 at 2:01 am #815351Hello,
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;
}February 28, 2016 at 2:15 am #815363May 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.
February 28, 2016 at 2:24 am #815373It 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.February 28, 2016 at 2:27 am #815376And, 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.
February 28, 2016 at 5:07 am #815466I’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.
March 1, 2016 at 3:13 am #818074Hello,
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!
March 1, 2016 at 4:26 am #818146Hi,
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
-
AuthorPosts