Project

General

Profile

Actions

Bug #10563

closed

cllicking on links from site menu leads to 500 error

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

Status:
Resolved
Priority name:
Urgent
Assignee:
Category name:
-
Target version:
Start date:
2018-10-19
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

https://commons.gc.cuny.edu/sites/

viewing as non-logged in user


Files


Related issues

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

Actions
Actions #2

Updated by Boone Gorges over 5 years ago

Some of these are coming back after a cache flush.

Actions #3

Updated by Raymond Hoh over 5 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().

Actions #4

Updated by Boone Gorges over 5 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.

Actions #5

Updated by Raymond Hoh over 5 years ago

I didn't add the session_save_path() entry.

Actions #6

Updated by Boone Gorges over 5 years ago

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

Actions #7

Updated by Boone Gorges over 5 years ago

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

Updated by Boone Gorges over 5 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.

Actions

Also available in: Atom PDF