HELP please – cannot access dashboard or site
-
Did something foolish. Was trying to center the headings on sidebar widgets, read a post and added this to the end of widgets.pp:
#sidebar_right h3 {
text-align: center !important;
}
Updated an everything went blank.
FTP’d to my site and looked at every file including widgets.php and nothing was updated at the time I crashed.What file can I edit or replace?
A little frantic. Appreciate your help.
Thanks.
And yes, I will read a child themes next so this never happens again…I hope.
~Bob
-
Searching for a solution. Just tried adding the site codes to functions.php as in one article:
<?php
update_option(‘siteurl’,’https://example.com/blog’);
update_option(‘home’,’https://example.com/blog’);
?>No success.
Got to get some sleep. I hope someone pops by willing to help me get this back.
If it helps, it “appears” that I may actually be connecting to the site, but nothing displays. There is no error message, nor login or anything else.
Just tried accessing from a different computer. It get a 500 error.
I’ll stop now. too tired. Could get in worse trouble.
~Bob
You have edited wp-includes/widgets.php and the whole thing fell over?
This may be a daft question, but can you not just restore to an archive copy of wp-includes/widgets.php from a clean download of WordPress? Probably you just have a misplaced comma or something that is preventing the php from doing its job.
It looks like your host may have things set up so that you don’t get a helpful (but potentially insecure) error message if you make a coding error, but usually there is an error log somewhere with that sort of host – maybe available via Cpanel or similar – which will help you pin down what it was that you broke.
Thanks Cycas. Unfortunately the date stamp and size on that file show it was not changed. The three files with date and time stamps around the time of the crash are in the twentyeleven theme and are functions, sidebar and style.
I replaced sidebar to no avail. Carefully checked functions and now looking at style.css. Looks good.
Just found the widgets.php in the style and that had the last change I made. I just edited. Cross fingers!
It’s back ??
It was missing the final ?> Took down everything!
Thanks for the help. With this and a little sleep, I got it.
~Bob
OK, all back, but poking around and I note my style sheet is scrambled, although everything is working. And example below. Will this be an issue and since I KNOW I edited this file, how can I restore the format?
background: #f9f9f9; border: 1px solid #ddd; border-width: 1px 0; margin: 0 -8.9% 1.625em; overflow: hidden; padding: 1.625em 8.9%;}.error404 #main #s { width: 95%;}.error404 #main .widget { clear: none; float: left; margin-right: 3.7%; width: 30.85%;}.error404 #main .widget_archive { margin-right: 0;}.error404 #main .widget_tag_cloud { float: none; margin-right: 0; width: 100%;}.error404 .widgettitle { font-size: 10px; letter-spacing: 0.1em; line-height: 2.6em; text-transform: uppercase;}/* =Showcase———————————————– */h1.showcase-heading { color: #666; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; line-height: 2.6em; text-transform: uppercase;}/* Intro */article.intro { background: #f9f9f9; border-bottom: none; margin: -1.855em -8.9% 1.625em; padding: 0 8.9%;}article.intro .entry-title { display: none;}article.intro .entry-content { color: #111; font-size: 16px; padding: 1.625em 0 0.625em;}article.intro .edit-link a { background: #aaa; -moz-border-radius: 3px; border-radius: 3px; color: #fff; font-size: 12px; padding: 0 8px; position: absolute; top: 30px; right: 20px; text-decoration: none;}article.intro .edit-link a:hover,article.intro .edit-link a:focus,article.intro .edit-link a:active { background: #777;}/* Featured post */section.featured-post { float: left; margin: -1.625em -8.9% 1.625em; padding: 1.625em 8.9% 0; position: relative; width: 100%;}section.featured-post .hentry { border: none; color: #666; margin: 0;}section.featured-post .entry-meta { clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); position: absolute !important;}/* Small featured post */section.featured-post .attachment-small-feature { float: right; height: auto; margin: 0 -8.9% 1.625em 0; max-width: 59%; position: relative; right: -15px;}section.featured-post.small { padding-top: 0;}section.featured-post .attachment-small-feature:hover,section.featured-post .attachment-small-feature:focus,section.featured-post .attachment-small-feature:active { opacity: .8;}article.feature-image.small { float: left; margin: 0 0 1.625em; width: 45%;}article.feature-image.small .entry-title { line-height: 1.2em;}article.feature-image.small .entry-summary { color: #555; font-size: 13px;}article.feature-image.small .entry-summary p a { background: #222; color: #eee; display: block; left: -23.8%; padding: 9px 26px 9px 85px; position: relative; text-decoration: none; top: 20px; width: 180px; z-index: 1;}article.feature-image.small .entry-summary p a:hover { background: #1982d1; color: #eee; color: rgba(255,255,255,0.8);}/* Large featured post */section.feature-image.large { border: none; max-height: 288px; padding: 0; width: 100%;}section.feature-image.large .showcase-heading { display: none;}section.feature-image.large .hentry { border-bottom: none; left: 9%; margin: 1.625em 9% 0 0; position: absolute; top: 0;}article.feature-image.large .entry-title a { background: #222; background: rgba(0,0,0,0.8); -moz-border-radius: 3px; border-radius: 3px; color: #fff; display: inline-block; font-weight: 300; padding: .2em 20px;}section.feature-image.large:hover .entry-title a,section.feature-image.large .entry-title:hover a { background: #eee; background: rgba(255,255,255,0.8); color: #222;}article.feature-image.large .entry-summary { display: none;}section.feature-image.large img { display: block; height: auto; max-width: 117.9%; padding: 0 0 6px;}/* Featured Slider */.featured-posts { border-bottom: 1px solid #ddd; display: block; height: 328px; margin: 1.625em -8.9% 20px; max-width: 1000px; padding: 0; position: relative; overflow: hidden;}.featured-posts .showcase-heading { padding-left: 8.9%;}.featured-posts section.featured-post { background: #fff; height: 288px; left: 0; margin: 0; position: absolute; top: 30px; width: auto;}.featured-posts section.featured-post.large { max-width: 100%; overflow: hidden;}.featured-posts section.featured-post { -webkit-transition-duration: 200ms; -webkit-transition-property: opacity, visibility; -webkit-transition-timing-function: ease; -moz-transition-duration: 200ms; -moz-transition-property: opacity, visibility; -moz-transition-timing-function: ease;}.featured-posts section.featured-post { opacity: 0; visibility: hidden;}.featured-posts #featured-post-1 { opacity: 1; visibility: visible;}.featured-post .feature-text:after,.featured-post .feature-image.small:after { content: ‘ ‘; background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Opera11.10+ */ background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* IE10+ */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=’#00ffffff’, endColorstr=’#ffffff’,GradientType=0 ); /* IE6-9 */ background: linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C */ width: 100%; height: 45px; position: absolute; top: 230px;}.featured-post .feature-image.small:after { top: 253px;}#content .feature-slider { top: 5px; right: 8.9%; overflow: visible; position: absolute;}.feature-slider ul
~Bob
it looks like you have lost all the linebreaks – in theory it should probably be OK without them, but it looks horribly difficult to edit!
Did the tool you used to edit the css file compress it, perhaps? If so, reopening in teh same tool should solve the problem.
Thanks again Cycas. I will try it.
That and only one more thing seems to have changed. For example, if I go to Appearance, Themes in the Dashboard, the first paragraphs of type are about 30 points. In th editor, the paragraphs are large and a new dropdown box appears that is wider than the form.
Anyway to replace a file that is causing this?
I’m going to try a reboot now and see if something odd is cached.
~Bob
OK, this crisis solved. I reformatted style.css and uploaded and all is back. Including dashboard look. Now off to solve other things ??
Thanks for the help.
~Bob
- The topic ‘HELP please – cannot access dashboard or site’ is closed to new replies.