SimpleSAMLphp不能与memcache一起使用,会出现whitescreens

时间:2016-08-10 11:25:04

标签: caching drupal drupal-7 memcached simplesamlphp

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

我目前正在使用带有memcache的simplesamlphp进行单点登录。我希望能够使用www.example.com/saml_login等登录我的drupal网站。

使用'store.type'=>时,Simplesamlphp非常适用'phpsession',可以登录SP。但是当我将store.type更改为'store.type'=> 'memcache',在config / config.php中,这是使用simplesamlphp_auth模块(https://www.drupal.org/project/simplesamlphp_auth)所需的,所有simplesaml页面,如www.example.com/simplesaml,都会转到whitescreens。

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

什么可能有助于解决白人问题?有没有人有类似的问题?

提前致谢。

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

PHP致命错误:带有消息'/home/example/var/simplesamlphp/config/config.php的未捕获异常'异常':选项'memcache_store.prefix'不是有效的字符串值。在/home/example/var/simplesamlphp/lib/SimpleSAML/Configuration.php:604\nStack trace:\ 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致命错误:带有消息'/ home /的未捕获异常'异常'示例/ var / simplesamlphp / config / config.php:选项'memcache_store.prefix'不是有效的字符串值。'在/home/example/var/simplesamlphp/lib/SimpleSAML/Configuration.php:604\nStack trace:\ 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 ... \ n'

1 个答案:

答案 0 :(得分:0)

在simplesamlphp config / config.php中,memcache_store.prefix从“null”编辑为“SimpleSAMLphp”,这使得whitescreens消失。

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