Support

Account

Forum Replies Created

  • My only doubt in regards to Suhosin is that I have it running on all other versions of PHP that are installed (5.3,5.4,7.0) and the issue isn’t present. The issue was only in 5.6 and now appears to be gone in 5.6 as well after upgrading to 7 and then back down to 5.6. I haven’t modified Suhosin settings in any way.

    The max input vars setting hasn’t changed for me, it’s always been set at 1000.

    Suhosin is excellent in a shared environment for stopping all sorts of nasty php vulnerabilities.

    If the issue rears its ugly head again I’ll be sure to come back here and update the post.

  • John, I’ve done as suggested however now I can’t reproduce the issue!

    I downgraded PHP from 7 back to 5.6 and attemped the page update again and the blank value is now saving as it should. The post array was as expected, the field was present and empty and that was saved to the database.

    I would say the issue is related to PHP somehow, either a setting in php.ini, mod_security rule or perhaps Suhosin (but I don’t think Suhosin was the issue).

    Thanks for your help.

  • My last update for tonight 🙂

    I have confirmed the values are being posted correctly, however when I do an SQL query log in WordPress, their is no value pair for text field.

    I have just tested the site in php 7.0 and it’s working! There is obviously something going on with PHP/Suhosin/Wordfence/mod_security that is causing the issue but it’s tricky to narrow down.

    I hope my posts helps someone and can save them from hours of frustration!

  • Yeah, it’s strange. I don’t think it’s the plugin but it’s just strange as I’ve not seen it with wordpress before (on this same server). I’m on php 5.6.

    I have tried adding another field, this time a textarea and the same issue.

    I might try disabling other plugins first before going any further.

  • I’ve checked with Firebug and the post variable is set correctly each time. ie. when I set the text field value as “wookie”, the variable has the value in Firebug, and when I set the text field value as empty/blank, the variable exists but is empty.

  • I’ve disabled suhosin completely and the issue persists. I’ll keep searching for a solution.

  • Thanks for the info. I was just hoping there might be more info on the actual fix. Suhosin is very configurable so simply disabling is a bit of overkill. I’ll do some more investigating and report back here if/when I find the solution.

  • I am having exactly the same issue as described. I’m on WP4.6.1 and have just installed ACF for the first time. I’ve setup a basic image field and then a text field. When I enter text in to the text field and click Publish, the content is updated fine. When I remove all text from the text field and click Publish, the field seems to retain the last value. This only happens when the field is blank.

    I do not have WP-Cache as true, I have a very basic install. There are no conflicting field names/ids on the page.

    Any idea how I can fix this?

Viewing 8 posts - 1 through 8 (of 8 total)