• Resolved Anderson So

    (@andersonso)


    Your PHP Native Sessions table is missing a primary key. Please run wp pantheon session add-index and verify that the process completes successfully and that this message goes away to resolve this issue on your live environment.

    I run the command in my server

    wp pantheon session add-index –path=/var/www/project

    but my site CSS is broken so I reverted it:

    wp pantheon session primary-key-revert –path=/var/www/project

    So how to proceed with it? Rollback to old version?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Chris Reynolds

    (@jazzs3quence)

    Hi @andersonso

    This notice is informing you about a database inefficiency we recently detected and the WP-CLI command we added to resolve the issue. The only thing the WP-CLI command does is add indexes to the database tables that the plugin uses to store sessions in. This could cause slower database performance as it is harder to query database tables that do not have indexes but it should not have had any effect on your site’s CSS.

    Rolling back to the last version of the plugin will simply remove the WP-CLI command without resolving the database issue. You can dismiss the notice and ignore it if you want to continue using the plugin as you have been.

    Thread Starter Anderson So

    (@andersonso)

    @jazzs3quence yeah you are right… I just run the command again but I didn’t include the path… I cd to my wordpress directory and all good now.

    Thank you!

    Plugin Contributor Chris Reynolds

    (@jazzs3quence)

    No problem! Glad it worked for you! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp pantheon session add-index’ is closed to new replies.