Title: PHP Warning:  chmod() &amp; touch()
Last modified: August 31, 2016

---

# PHP Warning: chmod() & touch()

 *  Resolved [cbach](https://wordpress.org/support/users/cbach/)
 * (@cbach)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-chmod-touch/)
 * Hi,
 * We have recently had a security issue on our WordPress installation. Everything
   is patched up and cleaned I think. And it’s working.
 * My question is, in my Apache error_log I get MANY request as this:
 * [Wed Jan 20 11:37:59.884158 2016] [:error] [pid 16399] [client 66.249.xx.xx:59721]
   PHP Warning: chmod(): Operation not permitted in /var/www/html/www.mydomain.tld/
   wp-includes/nav-menu.php on line 568
 * [Wed Jan 20 11:37:59.884335 2016] [:error] [pid 16399] [client 66.249.xx.xx:59721]
   PHP Warning: touch(): Utime failed: Operation not permitted in /var/www/html/
   www.mydomain.tld/wp-includes/nav-menu.php on line 572
 * The IP 66.249.xx.xx looks like it’s a Google IP.
 * NetRange: 66.249.64.0 – 66.249.95.255
    CIDR: 66.249.64.0/19 NetName: GOOGLE NetHandle:
   NET-66-249-64-0-1 Parent: NET66 (NET-66-0-0-0-0) NetType: Direct Allocation OriginAS:
   Organization: Google Inc. (GOGL) RegDate: 2004-03-05 Updated: 2012-02-24 Ref:
   [http://whois.arin.net/rest/net/NET-66-249-64-0-1](http://whois.arin.net/rest/net/NET-66-249-64-0-1)
 * I’m really at a loss on what exactly is going on here.
 * So please, if anyone can give me a hint I would be happy.

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

 *  [dbiro](https://wordpress.org/support/users/brainesia/)
 * (@brainesia)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-chmod-touch/#post-6964977)
 * Hi,
 * It might be your website has been hacked. Uploading the WP Core files will resolved
   it. But better if you scan your website using [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)
   plugin.
 * Reference: [https://generatepress.com/forums/topic/nav-menu-php-vulnerability-check/](https://generatepress.com/forums/topic/nav-menu-php-vulnerability-check/)
 *  Thread Starter [cbach](https://wordpress.org/support/users/cbach/)
 * (@cbach)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-chmod-touch/#post-6965097)
 * Hi,
 * Thank you so much brainesia, you’re a lifesaver. Wordfence did the trick.
 * Have a nice weekend, when you get that far today. 🙂
 *  [dbiro](https://wordpress.org/support/users/brainesia/)
 * (@brainesia)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-chmod-touch/#post-6965131)
 * You’re welcome 🙂

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

The topic ‘PHP Warning: chmod() & touch()’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [dbiro](https://wordpress.org/support/users/brainesia/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-chmod-touch/#post-6965131)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
