SocialEngine 4: Memcache Errors After Migration or Configuration Change

This Blog addresses memcaching errors appearing which prevent your SocialEngine or SocialEngine admin panel from loading. These typically follow a server migration, or a large change in server configuration that shuts down memcaching. These error messages typically involve:

1 Warning: memcache_connect() [function.memcache-connect]: Can't connect
2 to localhost:11211

Because the memcaching errors prevent the admin panel from loading, it is recommended that your reset your caching and session settings to default via the MySQL database. To return the settings to default in the database:

  • 1 Access your MySQL SocialEngine database. This is typically done through phpMyAdmin, accessible in cPanel/Plesk.
  • 2 Open the table se_settings.
  • 3 There will only be one row in this table – edit this row. Set the following values, replacing the old entries:
    • setting_cache_default:
       file
    • setting_cache_file_options:
      a:2:{s:4:"root";s:7:"./cache";s:7:"locking";b:1;}
    • setting_cache_memcache_options:
      a:1:{s:7:"servers";a:1:{i:0;a:2:{s:4:"host";s:9:"localhost";s:4:"port";i:11211;}}}
    • setting_session_options:
      a:4:{s:7:"storage";s:4:"none";s:6:"expire";i:259200;s:4:"name";s:32:"46d2edf2200f2f5f9539d74812f77da0";s:7:"servers";a:1:{i:0;a:2:{s:4:"host";s:9:"localhost";s:4:"port";i:11211;}}}

Upon saving these settings, your cache and session settings will have returned to default, allowing you to access your site and admin panel.

In some instances, the server will continue to return error messages on the sessions and caching page of the admin panel. While these error messages are non-destructive, they can be addressed by simply clicking the X next to Server 1 in your memcache session settings, then click save. This will keep your server from attempting to contact the localhost to check the memcache settings.

Looking for quality Social Engine Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , , , , , , , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *


8 − 2 =

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>