If you get errors like this:
2025/06/24 21:34:30 [error] 17690#17690: *99132 FastCGI sent in stderr: "PHP message: PHP Warning: Constant WP_POST_REVISIONS already defined in /var/sites/example.com/public_html/wp-config.php on line 109" while reading response header from upstream, client: 10.23.24.25, server: example.com.au, request: "POST /blog/xmlrpc.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/examplecom.sock:", host: "example.com.au"
A possible cause is due to adding constant definitions below the require_once ABSPATH . 'wp-settings.php';
statement.
Move them to above above the /* That's all, stop editing! Happy publishing. */
comment
define('WP_POST_REVISIONS', 2);
# define your constants above this point
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';
0 Comments