Support Forum

Multiple Issues – Can't Delete Posts, Can't Upload Files, Can't Open Admin Postbag, Can't Open Forum Tools

PT Philip Treacy
Philip Treacy
Member

WordPress 4.7
Genesis 2.4.2
SP 5.7.3

Hi,

Have been running SP for months without any hassles. But today I’m having multiple issues. Here’s a rundown.

Yesterday I update WP to 4.7, with no apparent issues.

Today the forum was loading but it looked like none of the CSS was loading/being applied.

The forum would appear but just on a white background, layout was all over the place.

Figuring it was a CSS issue I tried clearing my browser cache, clearing the site cache, but no joy. I tried this with FF, IE, Edge, Opera and Chrome, all showed the same fourm without styling.

I wasn’t running the latest ver of SP, so I thought I’d best update as the first thing you’ll probably tell me to do is update to the latest version.

So, I started the update from within WordPress, that seemed to take a long time but reported that it was successful.

It then prompted me to upgrade the database. I went ahead with this, and again it seemed to take a very long time but reported that it was successful.

None of this fixed the issue with the forum displaying without styling.

I read through your forums again and found something about unchecking the ‘Enable combining and caching of forum CSS files’ in Options. I did this and it fixed the display issue.

However, not long afterwards the whole site stopped working, my browsers reported a 500 Internal Server error.

I checked the web server logs and it was logging lots of these :

mod_fcgid: stderr: PHP Fatal error: Call to undefined function sp_add_membership() in /var/www/vhosts/myonlinetraininghub.com/httpdocs/wp-content/themes/epik/functions.php on line 2178, referer: https://www.myonlinetraininghub.com/wp-login.php

During logon I make calls to sp_add_membership() to do certain things, and this function wasn’t being found.

So I edited my functions.php and commented out any mention of sp_add_membership(). The site would now load.

I looked at the plugins page and saw a message at the top of the screen:

“The plugin simple-press/sp-control.php has been deactivated due to an error: The plugin does not have a valid header.”

I had a look at this file via FTP and it had a file size of 0. In fact all the SP php files were 0. Something had gone wrong in the update process?

I renamed the plugins/simple-press folder to plugins/simple-press-broken, and uploaded the simple-press folder from yesterday’s backup.

Once done I reinstated my calls to sp_add_membership() in my functions.php.

The site was loading and the forum was displaying again, except I saw that some of the SP plugins were not working. Checking the sp-resources/forum-plugins folder I saw that several of the plugins also had all PHP files at 0 size. Another consequence of a failed update?

I restored these plugins from my backup too, and reactivated them.

I performed the update to SP again, and the plugins. Now running SP 5.7.3 but having various issues.

1. When logged in as WP site admin, I can’t delete posts. I use Incapsula and when I try to delete a post Incapsula displays an error page because the URL in my browser is

http://www.myonlinetraininghub.com/excel-forum/excel/%3Cscript%20type=%22text/javascript%22%3EjQuery(document).ready(function()%20%7BspjDialogHtml(”,%20’%3Cdiv%20style=%22margin:%205px;%20border:%202px%20solid%20red;%20padding:%2010px;%22%3E%3Cp%3E%3Cimg%20src=%22https://www.myonlinetraininghub.com/wp-content/plugins/simple-press/admin/resources/images/sp_Message.png%22%20alt=%22%22%20style=%22float:left;%20margin:%20-4px%2010px%200%200;%22%20/%3E%3Cb%3EAccess%20denied%20-%20security%20check%20failed%3Cbr%20/%3EUnable%20to%20complete%20the%20request%3C/b%3E%3C/p%3E%3Cp%3E%3Cb%3EPlease%20reload%20the%20page%20and%20retry%20the%20operation%3C/b%3E%3C/p%3E%3C/div%3E’,%20’Security%20Alert’,%200,%200,%20’center’,%20”);%7D);%3C/script%3E

In the Error Log this is logged:

January 6, 2017 8:41 pm | spaErrError | 1 | security
Nonce Security Alert
spForumTools: failed nonce check
action spForumTools
targetaction delete-post
killpost 1803
killposttopic 397
killpostforum 1
killpostposter 74
page 1
_wpnonce 28a1b164cd
count 2
_ 1483699268068

2. I can’t open the Admin Postbag. On the forum it shows me that there are unread posts, but when I click ‘View New Posts’ the only thing that happens is the number of Unread posts disappears, that is, if there were 3 Unread posts, the number 3 disappears. Other than that, nothing happens. I can see calls to admin-ajax.php being made, and a status of 200 being returned.

In the Error Log

January 6, 2017 7:36 pm | spaErrError | 1 | security
Nonce Security Alert
spUnreadPostsPopup: failed nonce check
action spUnreadPostsPopup
targetaction all
first 0
group 1
count 0
_wpnonce 240c086400

3. If I click on Admin Links, I get a small window with the words ‘Administration Links’ in it.

4. If I click on the Forum Tools, I get a small window with a 0 in it.

5. I can’t attach files to a post. After clicking Attachments->Add Files and selecting a file (text, Excel workbook, doesn’t matter), the file appears in the ‘Select Files’ window and it shows 1 files queued. If I click on ‘Start Upload’ it appears to upload : Status climbs to 100% but tthen I get the error message ‘Error 104 – You do not have permission to upload files’. I’m logged in as WordPress administrator. All the Storage Locations show ‘Location Found’ and ‘Write – OK’.

6. This has been logged in the Error Log

January 6, 2017 7:15 pm | 512 | 63 | php
file: /simple-press/sp-startup/site/sp-site-deprecated.php
line: 54
function: trigger_error
User Warning | The function sp_forum_api_support() has been deprecated and will be removed in a future update. Use the new function sp_forum_ajax_support() instead.

 

You can login to the site with the username ldtest21 and the password is H3lpM3Plz to check it out. If you need admin access let me know.

I’ve tried to provide as much useful info as I can, if there’s anything else please ask.

I’m in Australia and it’s late on Friday here. I would greatly appreciate it if there was any chance of fixing this before the weekend, assuming you won’t be working over the weekend?

Regards

Phil

13 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry to hear you had so much trouble updating. The WordPress updater can be a little flaky at times but I think that is the first time I have heard of it delivering zero byte length files.

If they were zero length files I don’t understand how they could have asked for an update in the first place to be honest. They should just sit there and do nothing with no code to run. The same goes for displaying the forum. How could it do that if the code files had no content? Something there doesn’t quite add up…

Anyway – let’s talk about the nonce check. I don’t know, of course, if you know what the nonce is but basically for any POST form or AJAX request, we follow WP standards and include a nonce – a one time unique number – that is then checked before data is returned. This stops outside hacking by just sending a URL. No nonce – no action takes place. I can see that the nonce checks are failing on your site.

As background – over the last two updates we have changed all of our AJAX logic to use the WP API instead of using our own code. In theory, of course, this brings our AJAX completely up to WP standards. The message  you are seeing will be displayed when the server, after accepting the AJAX URL, compares the nonce being passed in with what WP calculates it should be. If it fails – up comes the message.

So that leaves a strong suggestion that something is contaminating the nonce – or even removing it – prior to the server checks being made. I do not see any evidence of Script errors in the web console when running your forum page so whatever is happening is happening by design.

There is one wrinkle here. I used the Simple:Press ‘About’ popup to check this initially and I got the Nonce failure message. However, if I am NOT logged in, the popup works as expected. SO I rather think the ‘something’ that is causing this problem only comes into play with logged in users. You can, of course, verify this for yourself.

The question to ask at this juncture I believe – is what else has changed? Any new WP plugins, theme changes or updates? Especially in, perhaps, the security area?

YS Yellow Swordfish
Yellow Swordfish
Member

By the way – is you home page supposed to have the links listing above the heading? That looks like an error to me. Remember – I was logged out when I loaded it.

PT Philip Treacy
Philip Treacy
Member

HI,

The files were 0 length after the update.  And it was after the update that the site would not load because my calls to sp_add_membership() failed.

Yes I have some idea what a nonce is. 

When you say the nonce checks are failing, what are you looking at/checking?  Are you going on the error I posted form the Error Log?

When I watch the AJAX calls in my FF Dev Tools I can see that the calls to admin-ajax.php are returning a 200, so isn’t that successful?  But the expected behaviour isn’t happening, e.g. the Admin Postbag is not displayed.

When logged in I too get the error when clicking on About, but it displays correctly when not logged in.

I have no idea what could be contaminating the nonce.

The only updates I have done this week are WP to 4.7 and Genesis to 2.4.2.  That was 2 days ago and everything was fine for the first day.

I’m not seeing links above the header on the home page?

I’m stumped 🙁

PT Philip Treacy
Philip Treacy
Member

So looking at various AJAX calls made by SP to admin-ajax.php

Logged IN – Clicking on About SP – Access denied – security check failed.  But the call to admin-ajax.php returns 200
Logged Out – this works ok

Logged In – Click on Topic Print Options – Access denied – security check failed.  But the call to admin-ajax.php returns 200
Logged out – works ok

Logged In – Click on Most recent topics with unread posts – Access denied – security check failed.  But the call to admin-ajax.php returns 200

Logged In – Search for the term ‘pivot’ – works ok
Logged Out – Search for the term ‘pivot’ – works ok

The Search uses a nonce but the request to admin-ajax.php is a POST.  The requests that don’t work are all GET

Being logged in causes problems, except when the AJAX operation is a POST.  Why are the GET’s failing?

PT Philip Treacy
Philip Treacy
Member

What about the error when deleting a post?  Is that nonce related?  Why all the JS in the URL after I click ‘Delete Post’?

MP Mr Papa
Mr Papa
Member

Good detective work so far. A couple things (at 38000 feet on plane so limited access). 

When you are talking about the 200 and so forth for Ajax that is the http status code. Can be useful but just tells you it returned and things were fine. It doesn’t really give us the response. Every Ajax request returns somethiing. It could just be true or false. Or HTML code to display. Within the browser console where you are seeing the status code you should also see some ‘tabs’ for things like parameters, response and HTML. Would be nice to know what that response is vice the status code. 

So GETs are failing! That indicate potentially that something (i.e. Another plugin or server) may be adjusting or rejecting those.  

Do you run mod_security on your server?  It’s not wp plugin but apache module. It is one of worst abusers of query are blocking due to false alarms.

checking the nonces is just in response to the error you posted. Nonces are queue args (or GET args)  so may just be side effect of that issue. 

For grins and to rule stuff out, would it be possible to disable all other wp plugins and verify its still an issue?

PT Philip Treacy
Philip Treacy
Member

Not sure about mod_security – will check.  Web server is runngin nginx.  But the server config hasn’t been changed so if it is there, why am I only now having these problems?

My site uses Incapsula as cache/cdn and Sucuri for firewall.  Have been using these for a long time without issue.  Problems only arose after update to latest version of SP.

Will try tomorrow to disable all plugins and see what happens.

In the meantime here are request url’s and request/response headers for various things, both when I am logged in and when logged out.  Problems only occur when logged in.

Will have to post these in multiple replies as I can only have 10 links per reply.

Logged In – click on View New Posts

Request URL

https://www.myonlinetraininghub.com/wp-admin/admin-ajax.php?action=admin-bar-update&target=newposts&_wpnonce=5148f65dc6&item=unread&rnd=1483791939486

Request Headers

Host: www.myonlinetraininghub.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Accept: text/html, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://www.myonlinetraininghub.com/excel-forum
Origin: http://www.myonlinetraininghub.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache

Response Headers

Access-Control-Allow-Origin: http://www.myonlinetraininghub.com
Cache-Control: no-cache, must-revalidate, max-age=0
Content-Encoding: gzip
Content-Type: text/html; charset=UTF-8
Date: Sat, 07 Jan 2017 12:25:44 GMT
Expires: Wed, 11 Jan 1984 05:00:00 GMT
MS-Author-Via: DAV
Server: Sucuri/Cloudproxy
Set-Cookie: wp_woocommerce_session_ccfc1eea4cb0df53f8d6ab1799e139d7=f47522bc389fdb3fbd77e70cf086f337%7C%7C1483964744%7C%7C1483961144%7C%7C740d3738db94a46bf9213d52e8bd28d0; expires=Mon, 09-Jan-2017 12:25:44 GMT; path=/
visid_incap_806916=Xo/4kKYmS/WZ7/3sPVGqfeDdcFgAAAAAQUIPAAAAAACcf/MkUTRKrn3/lsXdxmZA; expires=Sun, 07 Jan 2018 08:36:55 GMT; path=/; Domain=.myonlinetraininghub.com
incap_ses_413_806916=2/zGN4FaL2MWCxst/EW7BUnecFgAAAAAVbl3r/8jt5tj0hOqFVmaHA==; path=/; Domain=.myonlinetraininghub.com
Vary: Accept-Encoding,User-Agent
X-CDN: Incapsula
X-Content-Type-Options: nosniff, nosniff
X-Firefox-Spdy: h2
X-Frame-Options: SAMEORIGIN, SAMEORIGIN
X-Iinfo: 4-49717607-49717608 NNNN CT(165 340 0) RT(1483791941245 0) q(0 0 5 0) r(35 35) U2
X-Sucuri-ID: 11010
access-control-allow-credentials: true
x-robots-tag: noindex
x-xss-protection: 1; mode=block

Logged In – Click on Admin Links

Request URL

https://www.myonlinetraininghub.com/wp-admin/admin-ajax.php?action=admin-bar-links&targetaction=manage&_wpnonce=c944f03703

Request Headers

Host: www.myonlinetraininghub.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Accept: text/html, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://www.myonlinetraininghub.com/excel-forum
Origin: http://www.myonlinetraininghub.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache

Access-Control-Allow-Origin: http://www.myonlinetraininghub.com
Cache-Control: no-cache, must-revalidate, max-age=0
Content-Encoding: gzip
Content-Type: text/html; charset=UTF-8
Date: Sat, 07 Jan 2017 12:33:00 GMT
Expires: Wed, 11 Jan 1984 05:00:00 GMT
MS-Author-Via: DAV
Server: Sucuri/Cloudproxy
Set-Cookie: wp_woocommerce_session_ccfc1eea4cb0df53f8d6ab1799e139d7=0d107af0b6135b020cf4efc14d5dfe27%7C%7C1483965180%7C%7C1483961580%7C%7Cae7d9827abedc8c4169f3a426369d106; expires=Mon, 09-Jan-2017 12:33:00 GMT; path=/
visid_incap_806916=4Bl3Oh3tSgehU3HMqqTWTvzfcFgAAAAAQUIPAAAAAABk/fsFAB+SvgFtRgkbNY0+; expires=Sun, 07 Jan 2018 08:36:55 GMT; path=/; Domain=.myonlinetraininghub.com
incap_ses_413_806916=vrE/ZkM5Xwa/MRwt/EW7Bf3fcFgAAAAAk6Yg9rqdGLa/pMLOnzlnXA==; path=/; Domain=.myonlinetraininghub.com
Vary: Accept-Encoding,User-Agent
X-CDN: Incapsula
X-Content-Type-Options: nosniff, nosniff
X-Firefox-Spdy: h2
X-Frame-Options: SAMEORIGIN, SAMEORIGIN
X-Iinfo: 8-122301160-122301161 NNNN CT(166 338 0) RT(1483792378310 0) q(0 0 5 -1) r(25 25) U2
X-Sucuri-ID: 11010
access-control-allow-credentials: true
x-robots-tag: noindex
x-xss-protection: 1; mode=block

PT Philip Treacy
Philip Treacy
Member

Logged In – Click on About Simple Press (i)

Request URL

https://www.myonlinetraininghub.com/wp-admin/admin-ajax.php?action=spAckPopup&_wpnonce=8e2aa18316

Request Headers

Host: www.myonlinetraininghub.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Accept: text/html, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://www.myonlinetraininghub.com/excel-forum
Origin: http://www.myonlinetraininghub.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache

Response Headers

Access-Control-Allow-Origin: http://www.myonlinetraininghub.com
Cache-Control: no-cache, must-revalidate, max-age=0
Content-Encoding: gzip
Content-Length: 396
Content-Type: text/html; charset=UTF-8
Date: Sat, 07 Jan 2017 12:33:52 GMT
Expires: Wed, 11 Jan 1984 05:00:00 GMT
MS-Author-Via: DAV
Server: Sucuri/Cloudproxy
Set-Cookie: wp_woocommerce_session_ccfc1eea4cb0df53f8d6ab1799e139d7=dd758a14a49ce75e7e7fa576ec3001bb%7C%7C1483965231%7C%7C1483961631%7C%7C69bc149d9e352bca98a290d1f22e66e3; expires=Mon, 09-Jan-2017 12:33:51 GMT; path=/
visid_incap_806916=ulfNHD17TbSDXC4VqKdYsDDgcFgAAAAAQUIPAAAAAAAldsvv893/5OfXdkaBJ8Ed; expires=Sun, 07 Jan 2018 08:36:55 GMT; path=/; Domain=.myonlinetraininghub.com
incap_ses_413_806916=JXY3ATaugyX/TBwt/EW7BTHgcFgAAAAAiT2n4yfb8PrSk1qUFNf82A==; path=/; Domain=.myonlinetraininghub.com
Vary: Accept-Encoding,User-Agent
X-CDN: Incapsula
X-Content-Type-Options: nosniff, nosniff
X-Firefox-Spdy: h2
X-Frame-Options: SAMEORIGIN, SAMEORIGIN
X-Iinfo: 8-122304540-122304541 NNNN CT(165 167 0) RT(1483792428446 0) q(0 0 3 -1) r(36 36) U2
X-Sucuri-ID: 11010
access-control-allow-credentials: true
x-robots-tag: noindex
x-xss-protection: 1; mode=block

Logged In – Search for the term ‘pivot’ – Returns a 302 Found

Requet URL

https://www.myonlinetraininghub.com/wp-admin/admin-ajax.php?action=search&_wpnonce=68eb90b00d

Request Headers

Host: www.myonlinetraininghub.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://www.myonlinetraininghub.com/excel-forum
Cookie: wordpress_sec_ccfc1eea4cb0df53f8d6ab1799e139d7=PhilipT%7C1483965830%7CMVVpSQZFGYBiKQqgeG4bjgfZL1EzVY6A3nQYi3vsYdH%7Ce12a589e26af3915374a66ce6a7c5acf69c8e29a5deaf2d3d7aab5c74aedaf65; __utma=256452759.817082732.1440156506.1461538883.1473133389.670; __utmz=256452759.1460112486.657.18.utmcsr=easywebinarplugin.com|utmccn=(referral)|utmcmd=referral|utmcct=/dashboard/; wp-settings-74=m8%3Do%26m12%3Do%26m6%3Do%26m10%3Do%26m4%3Do%26editor%3Dhtml%26m7%3Do%26m3%3Do%26m2%3Do%26m1%3Do%26m5%3Do%26m0%3Do%26hidetb%3D1%26imgsize%3Dfull%26m13%3Do%26m9%3Do%26m14%3Do%26m11%3Do%26align%3Dleft%26libraryContent%3Dbrowse%26ed_size%3D700%26posts_list_mode%3Dlist; wp-settings-time-74=1480044224; fca_tc_eoi_cf_o=eyIyMzAyOSI6MSwiMjMwNTgiOjEsIjQyNDg5IjoxfQ%3D%3D; _ew_1=MXwyMjAuMjQ1LjEwNC4xNjk%3D; _ew_11=MTF8MjIwLjI0NS4xMDQuMTY5; _ew_12=MTJ8MjIwLjI0NS4xMDQuMTY5; moth_webinar_resource=yes; _ew_2=MnwyMjAuMjQ1LjEwNC4xNjk%3D; _ew_18=MTh8MjIwLjI0NS4xMDQuMTY5; _ew_20=MjB8MjIwLjI0NS4xMDQuMTY5; _ew_21=MjF8MjIwLjI0NS4xMDQuMTY5; _ga=GA1.2.817082732.1440156506; sforum_ccfc1eea4cb0df53f8d6ab1799e139d7=Philip+Treacy; _ew_26=MjZ8MjIwLjI0NS4xMDQuMTY5; _ew_29=Mjl8MjIwLjI0NS4xMDQuMTY5; _ew_30=MzB8MjIwLjI0NS4xMDQuMTY5; spPSize=65; _ew_31=MzF8MTcyLjE5Mi4yNTEuMjE5; _ew_32=MzJ8MTcyLjE5Mi4xNTAuMjE%3D; moth_udemy_dashboard_resource=yes; visid_incap_806916=uIpcQwIyQ5WoFxgpX329LJDVzFcAAAAAQUIPAAAAAABGrO0R7n4Oi20BVjqx0Jp7; plupload_ui_view=list; sucuri_cloudproxy_uuid_6dbc4f293=3d1c0ee0645170a874eb2bd64b2672f5; wordpress_test_cookie=WP+Cookie+check; incap_ses_413_806916=xHVmRKg0uANUsxYt/EW7BSDWcFgAAAAAL8mQOti3wTAYTNDsNk848w==; incap_ses_427_806916=h6ScStm5tgFvWAQMjALtBZUPb1gAAAAAaaBlprNmsUhbSv2NcZd0fw==; incap_ses_452_806916=pQu6ICE+Bg//6zEa6tNFBp8/b1gAAAAAh2oeDo03WpqRT24ahZphdw==; wp_woocommerce_session_ccfc1eea4cb0df53f8d6ab1799e139d7=74%7C%7C1483915316%7C%7C1483911716%7C%7Cc010a600eabbb73e9015ea9182a00d00; wlm_user_sequential=1; _gat=1; wordpress_logged_in_ccfc1eea4cb0df53f8d6ab1799e139d7=PhilipT%7C1483965830%7CMVVpSQZFGYBiKQqgeG4bjgfZL1EzVY6A3nQYi3vsYdH%7C68927c5449545cbea4d5cdb082fa8edf2a8a82a13e6eea5dd05cf54b1204f348
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Pragma: no-cache
Cache-Control: no-cache

Response Headers

Cache-Control: no-cache, must-revalidate, max-age=0
Content-Encoding: gzip
Content-Length: 20
Content-Type: text/html; charset=UTF-8
Date: Sat, 07 Jan 2017 12:45:59 GMT
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Location: http://www.myonlinetraininghub.com/excel-forum?search=1&new=1&forum=all&value=pivot&type=1&include=1
MS-Author-Via: DAV
Server: Sucuri/Cloudproxy
Set-Cookie: wp_woocommerce_session_ccfc1eea4cb0df53f8d6ab1799e139d7=74%7C%7C1483915316%7C%7C1483911716%7C%7Cc010a600eabbb73e9015ea9182a00d00; expires=Sun, 08-Jan-2017 22:41:56 GMT; path=/
Vary: Accept-Encoding,User-Agent
X-CDN: Incapsula
X-Content-Type-Options: nosniff, nosniff
X-Firefox-Spdy: h2
X-Frame-Options: SAMEORIGIN, SAMEORIGIN
X-Iinfo: 9-150762806-150760687 PNNN RT(1483793158490 0) q(0 0 0 -1) r(15 15) U6
X-Sucuri-ID: 11010
x-robots-tag: noindex
x-xss-protection: 1; mode=block

PT Philip Treacy
Philip Treacy
Member

Logged Out – Click on About Simple Press – this works ok

Request URL

https://www.myonlinetraininghub.com/wp-admin/admin-ajax.php?action=spAckPopup&_wpnonce=41bd7cd1de

Request Headers

Host: www.myonlinetraininghub.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Accept: text/html, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://www.myonlinetraininghub.com/excel-forum
Origin: http://www.myonlinetraininghub.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache

Response Headers

Access-Control-Allow-Origin: http://www.myonlinetraininghub.com
Cache-Control: no-cache, must-revalidate, max-age=0
Content-Encoding: gzip
Content-Length: 959
Content-Type: text/html; charset=UTF-8
Date: Sat, 07 Jan 2017 12:38:26 GMT
Expires: Wed, 11 Jan 1984 05:00:00 GMT
MS-Author-Via: DAV
Server: Sucuri/Cloudproxy
Set-Cookie: wp_woocommerce_session_ccfc1eea4cb0df53f8d6ab1799e139d7=9529dc1c9aab68f7bd92fe83e5356754%7C%7C1483965506%7C%7C1483961906%7C%7C6e34eb2566062adf966fb5980c574ea1; expires=Mon, 09-Jan-2017 12:38:26 GMT; path=/
visid_incap_806916=uzh9VCqWSHqGOmXPC471PELhcFgAAAAAQUIPAAAAAAAcTDfMORMO21qdBOTZY55q; expires=Sun, 07 Jan 2018 08:36:55 GMT; path=/; Domain=.myonlinetraininghub.com
incap_ses_413_806916=2GycNnhEn0xq4Bwt/EW7BUPhcFgAAAAAa9eFU2HPAdZ7xkQB41GbWg==; path=/; Domain=.myonlinetraininghub.com
Vary: Accept-Encoding,User-Agent
X-CDN: Incapsula
X-Content-Type-Options: nosniff, nosniff
X-Firefox-Spdy: h2
X-Frame-Options: SAMEORIGIN, SAMEORIGIN
X-Iinfo: 8-122321963-122321964 NNNN CT(171 339 0) RT(1483792704231 0) q(0 0 5 -1) r(24 24) U2
X-Sucuri-ID: 11010
access-control-allow-credentials: true
x-robots-tag: noindex
x-xss-protection: 1; mode=block

Logged Out –  Search for the term ‘pivot’ – returns 302 Found

Request URL

https://www.myonlinetraininghub.com/wp-admin/admin-ajax.php?action=search&_wpnonce=d308bd96de

Request Header

Host: www.myonlinetraininghub.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://www.myonlinetraininghub.com/excel-forum
Cookie: __utma=256452759.817082732.1440156506.1461538883.1473133389.670; __utmz=256452759.1460112486.657.18.utmcsr=easywebinarplugin.com|utmccn=(referral)|utmcmd=referral|utmcct=/dashboard/; wp-settings-74=m8%3Do%26m12%3Do%26m6%3Do%26m10%3Do%26m4%3Do%26editor%3Dhtml%26m7%3Do%26m3%3Do%26m2%3Do%26m1%3Do%26m5%3Do%26m0%3Do%26hidetb%3D1%26imgsize%3Dfull%26m13%3Do%26m9%3Do%26m14%3Do%26m11%3Do%26align%3Dleft%26libraryContent%3Dbrowse%26ed_size%3D700%26posts_list_mode%3Dlist; wp-settings-time-74=1480044224; fca_tc_eoi_cf_o=eyIyMzAyOSI6MSwiMjMwNTgiOjEsIjQyNDg5IjoxfQ%3D%3D; _ew_1=MXwyMjAuMjQ1LjEwNC4xNjk%3D; _ew_11=MTF8MjIwLjI0NS4xMDQuMTY5; _ew_12=MTJ8MjIwLjI0NS4xMDQuMTY5; moth_webinar_resource=yes; _ew_2=MnwyMjAuMjQ1LjEwNC4xNjk%3D; _ew_18=MTh8MjIwLjI0NS4xMDQuMTY5; _ew_20=MjB8MjIwLjI0NS4xMDQuMTY5; _ew_21=MjF8MjIwLjI0NS4xMDQuMTY5; _ga=GA1.2.817082732.1440156506; sforum_ccfc1eea4cb0df53f8d6ab1799e139d7=Philip+Treacy; _ew_26=MjZ8MjIwLjI0NS4xMDQuMTY5; _ew_29=Mjl8MjIwLjI0NS4xMDQuMTY5; _ew_30=MzB8MjIwLjI0NS4xMDQuMTY5; spPSize=65; _ew_31=MzF8MTcyLjE5Mi4yNTEuMjE5; _ew_32=MzJ8MTcyLjE5Mi4xNTAuMjE%3D; moth_udemy_dashboard_resource=yes; visid_incap_806916=uIpcQwIyQ5WoFxgpX329LJDVzFcAAAAAQUIPAAAAAABGrO0R7n4Oi20BVjqx0Jp7; plupload_ui_view=list; sucuri_cloudproxy_uuid_6dbc4f293=3d1c0ee0645170a874eb2bd64b2672f5; wordpress_test_cookie=WP+Cookie+check; incap_ses_413_806916=xHVmRKg0uANUsxYt/EW7BSDWcFgAAAAAL8mQOti3wTAYTNDsNk848w==; incap_ses_427_806916=h6ScStm5tgFvWAQMjALtBZUPb1gAAAAAaaBlprNmsUhbSv2NcZd0fw==; incap_ses_452_806916=pQu6ICE+Bg//6zEa6tNFBp8/b1gAAAAAh2oeDo03WpqRT24ahZphdw==; wp_woocommerce_session_ccfc1eea4cb0df53f8d6ab1799e139d7=74%7C%7C1483915316%7C%7C1483911716%7C%7Cc010a600eabbb73e9015ea9182a00d00; wlm_user_sequential=1; w3tc_logged_out=; _gat=1
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Pragma: no-cache
Cache-Control: no-cache

Response Headers

Cache-Control: no-cache, must-revalidate, max-age=0
Content-Encoding: gzip
Content-Length: 20
Content-Type: text/html; charset=UTF-8
Date: Sat, 07 Jan 2017 12:40:09 GMT
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Location: http://www.myonlinetraininghub.com/excel-forum?search=1&new=1&forum=all&value=pivot&type=1&include=1
MS-Author-Via: DAV
Server: Sucuri/Cloudproxy
Set-Cookie: wp_woocommerce_session_ccfc1eea4cb0df53f8d6ab1799e139d7=74%7C%7C1483915316%7C%7C1483911716%7C%7Cc010a600eabbb73e9015ea9182a00d00; expires=Sun, 08-Jan-2017 22:41:56 GMT; path=/
Vary: Accept-Encoding,User-Agent
X-CDN: Incapsula
X-Content-Type-Options: nosniff, nosniff
X-Firefox-Spdy: h2
X-Frame-Options: SAMEORIGIN, SAMEORIGIN
X-Iinfo: 9-150733374-150733375 NNNN CT(159 160 0) RT(1483792806980 0) q(0 0 4 -1) r(25 25) U6
X-Sucuri-ID: 11010
x-robots-tag: noindex
x-xss-protection: 1; mode=block

YS Yellow Swordfish
Yellow Swordfish
Member

These are response headers. @mr-papa was actually asking about the response data portion – what is returned from the AJAX code itself. Some web consoles – or add-pons like Firebug – will show you the raw data and/or the html.

And what about Incapsula itself? If that is cacheing AJAX requests then that could do this every time. And would also explain the greater likelyhood of non-logged in users from having success. I would strongly suggest that you try disabling it, ensuring the cache is empty and then retrying some of these actions. If nothing else it can rule it out.

PT Philip Treacy
Philip Treacy
Member

I’m travelling at the moment so hard to find time to disable all plugins and test just now.

But I don’t think it’s Incapsula. It’s been running for months and is configured not to cache any url containing excel-forum or admin-ajax.php

But just to make sure I turned off Incapsula, edited my hosts file to bypass Sucuri and Incapsula and make my PC resolve all requests direct to my server IP address, and cleared my browser cache.

I had exactly the same behaviour/problems.

When logged in I get ‘Access denied – security check failed’ clicking on About SP.

Why is it only when I am logged in?

Should the nonce change if you are logged in or out? I thought the nonce was generated once per day for the URL?

Can you check the response data? I’m not an expert in this and not sure what you are looking for.

But, for requests that don’t work, the response data is either nothing (e.g clicking on View New Posts) or the error message e.g. I get this when I click on About SP

<script type=”text/javascript”>
jQuery(document).ready(function() {
spjDialogHtml(”, ‘<div style=”margin: 5px; border: 2px solid red; padding: 10px;”><p><img src=”https://www.myonlinetraininghub.com/wp-content/plugins/simple-press/admin/resources/images/sp_Message.png” alt=”” style=”float:left; margin: -4px 10px 0 0;” /><b>Access denied – security check failed<br />Unable to complete the request</b></p><p><b>Please reload the page and retry the operation</b></p></div>’, ‘Security Alert’, 0, 0, ‘center’, ”);
});
</script>

And, when I click on View New Posts, why do the numbers beside Unread, Need Moderation and Spam disappear? Looks like SP is doing something?

Why does the backend work? SP uses nonces there too but works ok.

I’m obviously logged in here and this works, and this is through Sucuri and Incapsula.:

Request URL:https://www.myonlinetraininghub.com/wp-admin/admin-ajax.php?action=toolbox-loader&_wpnonce=01aff9dc77&loadform=toolbox&rnd=1483880322705
Request Method:GET
Status Code:200
Remote Address:107.154.151.45:443

Response Headers
cache-control:no-cache, must-revalidate, max-age=0
content-encoding:gzip
content-type:text/html; charset=UTF-8
date:Sun, 08 Jan 2017 12:58:46 GMT
expires:Wed, 11 Jan 1984 05:00:00 GMT
ms-author-via:DAV
server:Sucuri/Cloudproxy
set-cookie:wp_woocommerce_session_ccfc1eea4cb0df53f8d6ab1799e139d7=b0090ce76cfb5c3d737339649834a936%7C%7C1484050570%7C%7C1484046970%7C%7C18ba26303a35909c86c9f26c0fc6edc8; expires=Tue, 10-Jan-2017 12:16:10 GMT; path=/
status:200
vary:Accept-Encoding
x-cdn:Incapsula
x-content-type-options:nosniff
x-content-type-options:nosniff
x-frame-options:SAMEORIGIN
x-frame-options:SAMEORIGIN
x-iinfo:10-186476748-186476430 PNNN RT(1483880324321 0) q(0 0 0 -1) r(17 17) U9
x-robots-tag:noindex
x-sucuri-id:11010
x-xss-protection:1; mode=block

Request Headers
:authority:www.myonlinetraininghub.com
:method:GET
:path:/wp-admin/admin-ajax.php?action=toolbox-loader&_wpnonce=01aff9dc77&loadform=toolbox&rnd=1483880322705
:scheme:https
accept:text/html, */*; q=0.01
accept-encoding:gzip, deflate, sdch, br
accept-language:en-GB,en-US;q=0.8,en;q=0.6
cookie:wordpress_sec_ccfc1eea4cb0df53f8d6ab1799e139d7=PhilipT%7C1484050648%7CLPFWsMN55EvikNcBfTUlTAfCqCs3oXRfM5il14qSHkU%7C015d7177de8f7ce5bb7f7d529b27d0640f03767d5aac530af6e9510a3c9c743c; PHPSESSID=13hhkalmdbvuruutsri9v3pq54; sucuri_cloudproxy_uuid_b6d4274a2=e6d64f8be949939ea1f83f799e20bc3c; _ew_31=MzF8MTIwLjIyLjI1LjIyMg%3D%3D; _ew_32=MzJ8MTIwLjIyLjI1LjIyMg%3D%3D; fca_tc_eoi_cf_o=eyI0MjQ4OSI6MX0%3D; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_ccfc1eea4cb0df53f8d6ab1799e139d7=PhilipT%7C1484050648%7CLPFWsMN55EvikNcBfTUlTAfCqCs3oXRfM5il14qSHkU%7C66096410f1bb4198f80cfd7f6b00a1f14948a99793398f7bfd525063849de50d; sforum_ccfc1eea4cb0df53f8d6ab1799e139d7=Philip+Treacy; wlm_user_sequential=1; wp-settings-74=m8%3Do%26m12%3Do%26m6%3Do%26m10%3Do%26m4%3Do%26editor%3Dhtml%26m7%3Do%26m3%3Do%26m2%3Do%26m1%3Do%26m5%3Do%26m0%3Do%26hidetb%3D1%26imgsize%3Dfull%26m13%3Do%26m9%3Do%26m14%3Do%26m11%3Do%26align%3Dleft%26libraryContent%3Dbrowse%26ed_size%3D700%26posts_list_mode%3Dlist%26unfold%3D1%26mfold%3Do; wp-settings-time-74=1483877850; _ga=GA1.2.839415898.1483877809; wp_woocommerce_session_ccfc1eea4cb0df53f8d6ab1799e139d7=b0090ce76cfb5c3d737339649834a936%7C%7C1484050570%7C%7C1484046970%7C%7C18ba26303a35909c86c9f26c0fc6edc8; visid_incap_806916=hrEylS/3TACgkeP8OKh3RHY3clgAAAAAQUIPAAAAAACQ68QLWM99Tr7VAOrrceDH; incap_ses_436_806916=cVaoVvrZ5Hj3nBo+5vsMBno3clgAAAAAAO4gEs9ciimF4O04537B2A==
referer:https://www.myonlinetraininghub.com/wp-admin/admin.php?page=simple-press%2Fadmin%2Fpanel-toolbox%2Fspa-toolbox.php
user-agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
x-requested-with:XMLHttpRequest
Query String Parameters
view source
view URL encoded
action:toolbox-loader
_wpnonce:01aff9dc77
loadform:toolbox
rnd:1483880322705

YS Yellow Swordfish
Yellow Swordfish
Member

Well the main reason we don’t have an immediate answer is because nobody else comes close to having these problems. And when that happens the answer is invariably environmental and server or component related.

I agree with @mr-papa that paring things back to a clean slate with all plugins deactivated and even the theme changed for testing what is what might be the only way to trap the point of conflict. Unless he has any other ideas prior to doing that…?

YS Yellow Swordfish
Yellow Swordfish
Member

As an additional observation – and just for the record – if you are the only user accessing the admin then a rogue cache would still best explain what you are experiencing. You work in the admin and it would cache the nonce so your next trip in would use the same nonce and would therefore cause no issues. If you have a second admin account in SP it might be worth performing some actions with one account and then switching to the second to perform the same actions to see if they worked. If they failed – then caching becomes the most probable candidate. 

This is already perhaps the case on the front end of the site…