SimpleSAMLphp 不适用于内存缓存,出现白屏

SimpleSAMLphp does not work with memcache, whitescreens appear

版本信息:Drupal 7.50、SimpleSAMLphp 1.14.4、Memcache 3.0.8 和 php 5.6.24

我目前正在使用带有内存缓存的 simplesamlphp 进行单点登录。我希望能够使用 www.example.com/saml_login 之类的方式登录到我的 drupal 站点。

Simplesamlphp 在使用 'store.type' => 'phpsession' 时完美运行,这使得登录 SP 成为可能。但是当我将 store.type 更改为 'store.type' => 'memcache' 时,在 config/config.php 中,这是使用 simplesamlphp_auth 模块所必需的(https://www.drupal.org/project/simplesamlphp_auth),所有simplesaml页面,如www.example。com/simplesaml,变成白屏。

Memcache 已安装在我的 Drupal 站点上,根据状态报告,它已成功安装。

什么可以帮助解决白屏问题?有人遇到过类似的问题吗?

提前致谢。

更新一: 经过长时间的搜索,我可能发现了错误:

PHP 致命错误:未捕获异常 'Exception' 消息 '/home/example/var/simplesamlphp/config/config.php:选项 'memcache_store.prefix' 不是有效的字符串值。'在 /home/example/var/simplesamlphp/lib/SimpleSAML/Configuration.php:604\nStack 跟踪:\n#0 /home/example/var/simplesamlphp/lib/SimpleSAML/Store/Memcache.php(26): SimpleSAML_Configuration->getString('memcache_store....', 'simpleSAMLphp')\n#1 /home/example/var/simplesamlphp/lib/SimpleSAML/Store.php(46): SimpleSAML_Store_Memcache->__construct()\n#2 /home/example/var/simplesamlphp/lib/SimpleSAML/SessionHandler .php(109): SimpleSAML_Store::getInstance()\n#3 /home/example/var/simplesamlphp/lib/SimpleSAML/SessionHandler.php(39): SimpleSAML_SessionHandler::createSessionHandler()\n#4 /home/example/var/simplesamlphp/lib/SimpleSAML/Session.php(143): SimpleSAML_SessionHandler::getSessionHandler()\n#5 /home/example/var/simplesamlphp/lib/SimpleSAML/Session.php(328): SimpleSAML_Session->__construct( true)\n#6 /home/example...\nPHP 消息:PHP 致命错误:未捕获异常 'Exception' 消息 '/home/example/var/simplesaml php/config/config.php: 选项 'memcache_store.prefix' 不是有效的字符串值。'在 /home/example/var/simplesamlphp/lib/SimpleSAML/Configuration.php:604\nStack 跟踪:\n#0 /home/example/var/simplesamlphp/lib/SimpleSAML/Store/Memcache.php(26): SimpleSAML_Configuration->getString('memcache_store....', 'simpleSAMLphp')\n#1 /home/example/var/simplesamlphp/lib/SimpleSAML/Store.php(46): SimpleSAML_Store_Memcache->__construct()\n#2 /home/example/var/simplesamlphp/lib/SimpleSAML/SessionHandler .php(109): SimpleSAML_Store::getInstance()\n#3 /home/example/var/simplesamlphp/lib/SimpleSAML/SessionHandler.php(39): SimpleSAML_SessionHandler::createSessionHandler()\n#4 /home/example/var/simplesamlphp/lib/SimpleSAML/Session.php(143): SimpleSAML_SessionHandler::getSessionHandler()\n#5 /home/example/var/simplesamlphp/lib/SimpleSAML/Session.php(328): SimpleSAML_Session->__construct(真)\n#6 /home/example...\n'

在 simplesamlphp config/config.php 中,memcache_store.prefix 从 "null" 编辑为 "SimpleSAMLphp",这使得白屏消失了。

请注意,这实际上不是必需的,"null" 的默认值应该可以正常工作。查看错误:https://github.com/simplesamlphp/simplesamlphp/issues/496