Can't save Theme Panel, get a 406 error re admin-ajax.php

Posted in: Newspaper
Post count: 5

I’m running Newspaper 4.0.2 (I know there are newer versions, it’s just that I have my site exactly the way I want it already and I don’t want to mess it up).

I recently upgraded my site from http to https. Now, when I try to save the Theme Panel, it doesn’t work, and this error comes up in the Chrome JS console:

POST https://churchpop.com/wp-admin/admin-ajax.php 406 (Not Acceptable) load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:5

In the Firefox web console, it says:

Request URL: https://churchpop.com/wp-admin/admin-ajax.php
Request Method: POST
Status Code: HTTP/1.1 406 Not Acceptable

Request headers
X-Requested-With:XMLHttpRequest
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:21.0) Gecko/20100101 Firefox/21.0
Referer:https://churchpop.com/wp-admin/admin.php?page=td_theme_panel
Pragma:no-cacheHost:churchpop.com
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Content-Length:47699
Connection:keep-alive
Cache-Control:no-cache
Accept-Language:en-US,en;q=0.5
Accept-Encoding:gzip, deflate
Accept:*/*

Some stuff about Cookies

Response Headers
Server:Apache
Keep-Alive:timeout=10, max=500
Date:Tue, 22 Dec 2015 21:25:20 GMT
Content-Type:text/html; charset=iso-8859-1
Content-Length:226
Connection:Keep-Alive

Post count: 9544

Usually an Apache mod_security setting. Check with your web host on that.

Post count: 5

I brought that up with my web host today on the phone, and they said I’d have to edit my htaccess file myself? What do I need to do?

Also relevant, I have a subdomain that has the same theme, same plugins, has not been upgraded to https, and works just fine.

Post count: 9544

So, your host wouldn’t tell you how to edit your htaccess file to get your site to work ? Wow.

Google is a good resource.

“WordPress 406 error fix” …

e,g,
https://wordpress.org/support/topic/406-not-acceptable-3?replies=6

Post count: 5

I talked to the hosting, and they say they don’t think it’s a ModSecurity issue. Is there anything else that could be causing this problem?

Post count: 9544

Add explicit https full url to your wpconfig.php file, do clean install of wordpress core files, check htaccess and robits.txt for any http gremlins. Make sure yiu gave full 301 sitewide redirect in place for http to https.

Typing on ipad sorry ??

Post count: 9544

Fyi i did this with v4x in sub directory on our main site going from http to all https a year ago. Did nit get that error.

Post count: 5

“Add explicit https full url to your wpconfig.php file”

How do I do this?

Also, is there a way to edit the things in the Theme Panel any other place than in the Theme Panel? Is there a way to edit them from the my hosting file manager?

Post count: 5

Scratch that, in fact it was a ModSecurity issue. I got a tech support person at my hosting service to WhiteList the file with the problem and voila problem solved. Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.