• Resolved samuelimbert1985

    (@samuelimbert1985)


    Hi,

    I’m using file_get_contents(‘php://input’) to receive image data from mobile app.

    If i activate Wordfence, even without Firewall enabled, the plugin blocked the php://input and i’m receiving empty load…

    I love your plugin, so please help me, because, for now, i can’t use it anymore.

    Thanks,

    Samuel

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @samuelimbert1985,

    There should be a record on the Live Traffic page that specifies the reason for the block.

    If you can find such record, could you please let me know what the “blocked for” reason appears to be?

    Hello!

    I hope we were successful in helping you resolve your issue with Wordfence! Since we have not heard back from you in the past 2 weeks I will now be marking this support thread as resolved. However, if we still haven’t resolved your issue please reach out to us as we would be more than happy to further assist you!

    Thanks and have a great day!
    Chloe

    Thread Starter samuelimbert1985

    (@samuelimbert1985)

    Hi,

    Sorry for the delay.

    Nothing appears in Live Traffic View.
    I see my connections and disconnection but nothing about blocking a request…

    I also tried to play with whitelist Urls and rules without success.

    Let me know if I can send more infos.

    Thanks,

    Samuel

    Hi @samuelimbert1985,

    Sorry about the delayed response.
    Does the issue persist if you temporarily switch the Firewall Status to Learning Mode?

    Also, just to make sure Wordfence firewall is actually involved in this situation, could you please manually remove the firewall setup (it’ll cause the Protection Level to switch to “Basic WordPress Protection”) an try again to send image data from the mobile app?

    Please make sure to carry out the optimization procedure again once the test is finished.

    Thread Starter samuelimbert1985

    (@samuelimbert1985)

    With Firewall deactivated or in Learning Mode, i can’t send image data.
    With optimization, image data won’t pass even when after deactivating WordFence plugin.

    Hope it helps you to understand what’s going on.

    wfyann

    (@wfyann)

    Hi @samuelimbert1985,

    Have you tried increasing the upload file size for PHP scripts?

    Thread Starter samuelimbert1985

    (@samuelimbert1985)

    We are already accepting large upload file.

    wfyann

    (@wfyann)

    Hi @samuelimbert1985,

    Can you see any errors in the PHP logs when you’re sending image data from the mobile app?

    Also, could you please try and enable WP_DEBUG in order to get more information on what’s happening?

    Thread Starter samuelimbert1985

    (@samuelimbert1985)

    Hi @wfyann,

    Nothing in the logs, with or without WP_DEBUG enabled…

    Is it a part of Wordfence code, which are scanning php://input before everything else ?

    wfyann

    (@wfyann)

    Hi @samuelimbert1985,

    Could you make sure PHP logging is fully enabled?

    Also, could you please confirm which PHP version you’re running?

    Thread Starter samuelimbert1985

    (@samuelimbert1985)

    We just upgrated php5 to php5.6 and it seems it solved the problem.

    With full logging enabled, I see now this warning :
    PHP Warning: Missing boundary in multipart/form-data POST data

    I guess, Wordfence with PHP5 was blocking when those boundary is missing.

    Thanks a lot @wfyann

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘File upload error’ is closed to new replies.