Project

General

Profile

Bug #10563

cllicking on links from site menu leads to 500 error

Added by Matt Gold 9 months ago. Updated 9 months ago.

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

0%

Estimated time:

Description

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

viewing as non-logged in user


Related issues

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

History

#2 Updated by Boone Gorges 9 months ago

Some of these are coming back after a cache flush.

#3 Updated by Raymond Hoh 9 months 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().

#4 Updated by Boone Gorges 9 months 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 9 months ago

I didn't add the session_save_path() entry.

#6 Updated by Boone Gorges 9 months ago

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

#7 Updated by Boone Gorges 9 months ago

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

#8 Updated by Boone Gorges 9 months 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