I looked at the server logs and saw this:
[Fri Oct 19 11:16:44 2018] [error] [pid 6619] sapi_apache2.c(351): [client 146.96.33.246:34912] PHP Fatal error: Uncaught Error: Failed to create session ID: memcached (path: localhost:11211?persistent=1&weight=2&timeout=10&retry_interval=10) in /var/www/html/commons/www/wp-content/plugins/yourls-wordpress-to-twitter/plugin.php:73\nStack trace:\n#0 /var/www/html/commons/www/wp-content/plugins/yourls-wordpress-to-twitter/plugin.php(73): session_start()\n#1 /var/www/html/commons/www/wp-settings.php(305): include_once('/var/www/html/c...')\n#2 /var/www/html/commons/www/wp-config.php(183): require_once('/var/www/html/c...')\n#3 /var/www/html/commons/www/wp-load.php(37): require_once('/var/www/html/c...')\n#4 /var/www/html/commons/www/wp-blog-header.php(13): require_once('/var/www/html/c...')\n#5 /var/www/html/commons/www/index.php(17): require('/var/www/html/c...')\n#6 {main}\n thrown in /var/www/html/commons/www/wp-content/plugins/yourls-wordpress-to-twitter/plugin.php on line 73
In cac-env-config.php
, the session_write_path() was this:
session_save_path('localhost:11211?persistent=1&weight=2&timeout=10&retry_interval=10');
I changed this to:
session_save_path('172.29.29.141:11211?persistent=1&weight=2&timeout=10&retry_interval=10');
And those sites appear to be working now.
Boone, is this the right way to fix this? We have two memcached nodes now, but I selected the first one.
Edit - Boone, saw your post. Not sure if you flushed the cache before I modified the session_save_path()
.