• Hacked a year ago and trying to fix things. I went to Appearance, Editor, Theme Header, and the third line has .xhtml” <“……?>>

    I removed the extra > at the end and hit “save.” I get

    Bad Request

    Your browser sent a request that this server could not understand.

    I put it back and get the same error. Yesterday I got the error but could save it as it first appeared.

    Why am I getting a 400 error by simply trying to save a file? Someone else is fixing the site but I was looking for the code the hacker inserted and saw the extra bracket

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    Have you tried:
    – Flushing any caching plugins you might be running, as well as server and/or browser caches. Not just your browser, but any op cache or content network cache as well such as Cloudflare. That will solve many weird JavaScript issues.
    – deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    – If you can’t get into your admin dashboard, try resetting the plugins folder by FTP. Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder (if you have created such folder). The easiest way is to rename that folder to mu-plugins-old.
    – switching to the unedited default Theme (Twenty Sixteen) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins). If you don’t have access to your admin area, use FTP , or your web-host’s cPanel or whatever file management application your host provides (no Dashboard access required). Navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding “-old” to the end of the folder name. Alternately, you can remove other themes except the default theme. That will force your site to use it.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you post here 3 lines of code; the line above, the line with “.xhtml” and the line after.

    Thread Starter SickSquirrel

    (@sicksquirrel)

    @t-p and @anevins: thank you. I tried to get the text but my fixer is in the middle of restoring. Nothing loads as index.php isn’t there. I tried to copy it from FTP but if I click (I’m on iPad now, not Windows ) it closes the program. Hopefully he either fixes it or restores it. I’d send over index.php as a blank page but it may FUBAR my site

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Save” gives error’ is closed to new replies.