Bug #10563
closedcllicking on links from site menu leads to 500 error
0%
Files
Related issues
Updated by Boone Gorges about 6 years ago
If you find instances, please share URLs.
https://medieval.commons.gc.cuny.edu/
https://americanstudiescp.commons.gc.cuny.edu/
Updated by Boone Gorges about 6 years ago
Some of these are coming back after a cache flush.
Updated by Raymond Hoh about 6 years ago
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()
.
Updated by Boone Gorges about 6 years ago
I don't recall adding session_save_path() to cac-env-config.php. Did you? I wonder if Lihua did it as part of the migration. Let's talk to him after the dust settles.
In the meantime, your change looks correct.
Updated by Raymond Hoh about 6 years ago
I didn't add the session_save_path()
entry.
Updated by Boone Gorges about 6 years ago
Sounds good. I'll follow up with Lihua shortly.
Updated by Boone Gorges about 6 years ago
- Related to Bug #10564: PHP 7.2 Incompatibility Problems added
Updated by Boone Gorges about 6 years ago
- Status changed from Assigned to Resolved
- Target version set to 1.13.12
Lihua responded that he hadn't changed anything, which means I must have done it at some point. Let's close this ticket and cover other PHP 7.2 issues in #10564.