• Marco

    (@marcoherzog)


    I am running a wordpress multisite installation on google app engine with memcached.
    After activating the plugin I get an memcached-error:

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Uncaught Error: Failed to create session ID: memcached (path: 172.17.0.4:11211) in /app/wordpress/wp-content/plugins/chained-quiz/models/basic.php:190
    Stack trace:
    #0 /app/wordpress/wp-content/plugins/chained-quiz/models/basic.php(190): session_start()
    #1 /app/wordpress/wp-content/plugins/chained-quiz/models/basic.php(9): ChainedQuiz::init()
    #2 /app/wordpress/wp-includes/class-wp-hook.php(298): ChainedQuiz::install(”)
    #3 /app/wordpress/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #4 /app/wordpress/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #5 /app/wordpress/wp-admin/plugins.php(166): do_action(‘activate_chaine…’)
    #6 {main} thrown in /app/wordpress/wp-content/plugins/chained-quiz/models/basic.php on line 190

    I commented out that line 190 in basic.php.
    //if (!session_id()) @session_start();

    For now everything seems to be working (until the next update), but I guess the session is needed somewhere else if not found.
    Eg. contollers/quizzes.php line 161 or models/quiz.php line 108
    if(!empty($_SESSION['chained_completion_id'])) {

    https://cloud.google.com/appengine/docs/standard/php/runtime#PHP_Sessions

    Any help appreciated.
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Bob

    (@prasunsen)

    Yes, session is required. You have to contact your hosting support, sessions are used in so many apps, it’s not serious that they don’t have them configured.

Viewing 1 replies (of 1 total)
  • The topic ‘memcache-error after activating’ is closed to new replies.