Bug #10563

cllicking on links from site menu leads to 500 error

Added by Matt Gold over 3 years ago. Updated over 3 years ago.

Priority name:
Category name:
Target version:
Start date:
Due date:
% Done:


Estimated time:


viewing as non-logged in user

Related issues

Related to CUNY Academic Commons - Bug #10564: PHP 7.2 Incompatibility ProblemsResolved2018-10-19


#2 Updated by Boone Gorges over 3 years ago

Some of these are coming back after a cache flush.

#3 Updated by Raymond Hoh over 3 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] 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:

I changed this to:

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().

#4 Updated by Boone Gorges over 3 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.

#5 Updated by Raymond Hoh over 3 years ago

I didn't add the session_save_path() entry.

#6 Updated by Boone Gorges over 3 years ago

Sounds good. I'll follow up with Lihua shortly.

#7 Updated by Boone Gorges over 3 years ago

  • Related to Bug #10564: PHP 7.2 Incompatibility Problems added

#8 Updated by Boone Gorges over 3 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.

Also available in: Atom PDF