• Hi,
    I recently installed a new wordpress website using the Duplicator plugin, then I had to edit the function.php file of my theme for a small customization but got the error:

    “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.”

    In addition, my IP gets blocked and I can’t navigate the site, or using any FTP client without a VPN. The firewall plugin is deactivated, and the firewall on the server does not show any blocked IP.

    Another problem I get is that if I try changing product image in woocommerce, the image won’t update, I can upload it and choose it from the gallery, but it wont appear in the page editor as selected and if I save it won’t be present in the product page.

    I’m using PHP 7.4 and the health check doesn’t show any issues. I can’t understand whant may cause this problem. I’m sure it’s not a plugin conflict since it’s exactly the same website of my local environment. I’ve also tried the healt care plugin but without result.

    These are my PHP modules, am I missing something that’s not notified by WP?

    View post on imgur.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Yui

    (@fierevere)

    永子

    I can’t navigate the site, or using any FTP client without a VPN

    It is not a plugin, it is a hosting firewall protection.
    fail2ban log analyzer or something like this.

    Try asking your webhost support.

    Loopback connection problem is probably caused by the same. WordPress site should be able connect to itself, to perform certain tasks.

    Moderator Yui

    (@fierevere)

    永子

    regarding PHP extensions:

    nd_mysqli (native driver) is better than just mysqli
    enable it instead of mysqli
    Keep mysqlnd enabled.

    opcache – recommended for performance

    intl – some internationalization plugins may use it for charset and string conversions.

    pdo, pdo_mysql, pdo_sqlite – not used by WP

    phar – not used

    soap – used by WooCommerce, enable

    sodium – used for signatures check and cryptographic functions, enable

    sqlite3 – not used

    Thread Starter artemis21

    (@artemis21)

    Hi Yui,
    I can’t thank you enough, I’ve found there was ModSecurity “firewall” in the Plesk panel and deactivated it, I’ve also activated the PHP modules you suggested. Now I have no issues, I just hope the deactivated firewall does not bring issues and I hope Wordfence is enough.

    Moderator Yui

    (@fierevere)

    永子

    Yes, mod_security is common source for various weirdness.
    It can be used, but it needs to be configured, or i’d better say fine-tuned properly. Same as you should do with complex security plugins.

    In fact with WordPress, you can use https://perishablepress.com/7g-firewall/
    (htaccess or nginx rules version, if possible) or its WordPress (slower) alternative – https://wordpress.org/plugins/block-bad-queries/

    WordFence may offer something similar.

    There are no more people who are using SUHOSIN PHP extension, but thats been known root of many problems too.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Can’t edit PHP files and IP get’s blocked’ is closed to new replies.