• wpdrift.no

    (@wordpressdrift)


    Hi.
    We have an issue with plugin running on a cluster. Seems that PHP is trying to parse wp-content/wp-cache-config.php while its being generated. Errorlog shows a lot of these:

    • [Fri Nov 30 02:10:12.501229 2018] [php7:emerg] [pid 216551] [client 10.191.50.178:54265] PHP Parse error: syntax error, unexpected ‘ = 0;’ in /var/www/wordpress/wp-content/wp-cache-config.php on line 104
    • [Fri Nov 30 02:10:12.551188 2018] [php7:emerg] [pid 216552] [client 10.191.50.178:40057] PHP Parse error: syntax error, unexpected ‘ = ‘hourly’;’ in /var/www/wordpress/wp-content/wp-cache-config.php on line 106

    We have a dev-site set up with identical wordpress, but not in a cluster and have no issues there.

    Error is causing the site to fail miserably with short downtime every time someone accesses the settings page for WP Super Cache, or whenever a setting is changed.

    Have you seen this before, and do you possibly know how we can fix this?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • It seems as corrupted wp-cache-config.php. There were some issues with older WPSC versions. When I’ve researched this issue, it was issue when file was openining twice for writing at similar moment (it’s possible that’s problem with file locking in combination with PHP file status cache/OPcache). Are you using the latest version of WPSC?
    Could you send more details about setup?

    Thread Starter wpdrift.no

    (@wordpressdrift)

    It should be latest version yes – currently Versjon 1.6.4.
    What kind of details do you need?

    Is the config file in a directory that is shared between the servers? Writing to the configuration file should be safe now but on a directory that is on an NFS or SMB server the file updates take longer. You should keep that file local to each server, which I know will make syncing changes much harder.

    As as aside, WP Super Cache isn’t really suitable for a cluster. You should use Batcache or another caching system that uses memcached. It’s safer as cache files are shared among the cluster of machines.

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

The topic ‘PHP Parse error with cluster setup’ is closed to new replies.