Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Installing on a Linux/Unix Server / Fatal error session_start() - Failed to initialize storage module: memcache

Fatal error session_start() - Failed to initialize storage module: memcache

Started by acidlink on 19 Aug 2012, 5:48 AM · Views: 6,009

Results 1 to 6 of 6
19 Aug 2012, 5:48 AM
#1
acidlink avatar

acidlink

New Zenner

Join Date:
Aug 2010
Posts:
6
Plugin Contributions:
0

Fatal error session_start() - Failed to initialize storage module: memcache

I have checked all my config files and setting all seem to be correct

My debug log is the following

[19-Aug-2012 04:36:24 UTC] PHP Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: memcache (path: /home/4-web/41/9a/aquariumandpetworld.com.au/public/www/shop/cache) in /home/4-web/41/9a/aquariumandpetworld.com.au/public/www/shop/zc_install/includes/functions/sessions.php on line 92

This is the htaccess file

DirectoryIndex index.php

prevents inappropriate browsing

<FilesMatch "...">
Order Allow,Deny
Deny from all
</FilesMatch>
<FilesMatch "(^$|^favicon.ico$|.*.(php|js|css|jpg|gif|png|html)$)">
Order Allow,Deny
Allow from all
</FilesMatch>

IndexIgnore /

Older versions of the mod_security extension in apache may cause "406" errors to appear during installation.

If you are running into such problems, simply remove the # from the beginning of the following lines:

#SecFilterEngine off
#SecFilterScanPOST Off

This is a brand new fresh install

Any help would be really appreciated

19 Aug 2012, 9:49 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Fatal error session_start() - Failed to initialize storage module: memcache

acidlink:

[19-Aug-2012 04:36:24 UTC] PHP Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: memcache (path: /home/4-web/41/9a/aquariumandpetworld.com.au/public/www/shop/cache) in /home/4-web/41/9a/aquariumandpetworld.com.au/public/www/shop/zc_install/includes/functions/sessions.php on line 92
Apparently your webserver's PHP is configured to use memcache for session storage, but the required dependencies are missing. That is something you'll need to sort out with the server's administrator/superuser.
It is not a Zen Cart issue.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Aug 2012, 5:31 PM
#3
acidlink avatar

acidlink

New Zenner

Join Date:
Aug 2010
Posts:
6
Plugin Contributions:
0

Re: Fatal error session_start() - Failed to initialize storage module: memcache

could it be because Session Auto Start: off? on the server

19 Aug 2012, 6:44 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Fatal error session_start() - Failed to initialize storage module: memcache

Not likely. I always recommend session.auto_start be off. It is by default.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Aug 2012, 1:43 AM
#5
acidlink avatar

acidlink

New Zenner

Join Date:
Aug 2010
Posts:
6
Plugin Contributions:
0

Re: Fatal error session_start() - Failed to initialize storage module: memcache

memcache
memcache support enabled
Version 3.0.6
Revision $Revision: 310129 $

Directive Local Value Master Value
memcache.allow_failover 1 1
memcache.chunk_size 32768 32768
memcache.compress_threshold 20000 20000
memcache.default_port 11211 11211
memcache.hash_function crc32 crc32
memcache.hash_strategy standard standard
memcache.lock_timeout 15 15
memcache.max_failover_attempts 20 20
memcache.protocol ascii ascii
memcache.redundancy 1 1
memcache.session_redundancy 2 2

This is the memcache settings of the server

im a bit confused as to what to ask of them

Like do i just ask to turn off memcache?

20 Aug 2012, 3:20 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Fatal error session_start() - Failed to initialize storage module: memcache

I honestly don't know. I've never personally encountered a server whose only way of handling sessions was via memcache storage, let alone whose own server configuration just automatically breaks the first time it tries to even USE it's own configured settings.

Start by telling them exactly what you told us here. It's their server. They're the experts on how they configured the server. And since it's a non-traditional configuration, they're gonna have to be the ones to fix it because they're the ones who know why they configured the server that way in the first place. They probably set something up for one specific customer's needs and don't even know they're causing problems to customers like yourself because they've done it in a way that's globally affecting everyone instead of just that one customer. Or maybe it's worse than that. Again, only they will know.

If they can't fix it, try another host who uses a normal configuration.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.