Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example SimpleSAMLphp config gives fatal error when using memcache as session_store #2546

Closed
briantully opened this issue Feb 12, 2018 · 1 comment

Comments

@briantully
Copy link
Contributor

Also, we should indicate that using memcache instead of database is probably wise on high-traffic sites

My system information:

  • Operating system type: [replace]
  • Operating system version: [replace]
  • BLT version: [replace]

Output of blt doctor:


When I run this command:

[replace with command]

I get the following output:

[replace with ENTIRE command output. DO NOT enter partial output.]

And I expected this to happen:

@briantully
Copy link
Contributor Author

briantully commented Feb 12, 2018

PHP Fatal error: Uncaught Exception: /mnt/www/html/mtatodaystg/vendor/simplesamlphp/simplesamlphp/config/config.php: The option 'memcache_store.prefix' is not a valid string value. in /mnt/www/html/mtatodaystg/vendor/simplesamlphp/simplesamlphp/lib/SimpleSAML/Configuration.php:604

This is due to the fact that the $config['memcache_store.prefix'] is set to NULL.

function mc_session_store(array $config) {
  $config['store.type'] = 'memcache';
  $config['memcache_store.servers'] = mc_info();
  $config['memcache_store.prefix'] = $ah_options['database_name'];

  return $config;
}

Note that $config['memcache_store.prefix'] = $ah_options['database_name']; is called however the $ah_options array isn't passed in as an arg to the mc_session_store function.

I'll submit a PR for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants