fatal error

Stalker-g2 - May 26, 2008 - 17:47
Project:Memcache API and Integration
Version:5.x-1.8
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:Suhosin
Description

i have passed all installation instruction

after applying patch:
Notice: Array to string conversion in /usr/home/www.forexchat.ru/public_html1/includes/bootstrap.inc on line 396
z
Warning: require_once(z) [function.require-once]: failed to open stream: No such file or directory in /usr/home/www.domain.com/public_html1/includes/bootstrap.inc on line 932

Fatal error: require_once() [function.require]: Failed opening required 'z' (include_path='.:/usr/local/share/pear') in /usr/home/www.domain.com/public_html1/includes/bootstrap.inc on line 932

$conf = array(
'cache_inc' => './sites/all/modules/memcache/memcache.db.inc',
'memcache_servers' => array('localhost:11211' => 'default'),
'memcache_key_prefix' => 'zaposti',
);

incot@mail # ls -l./sites/all/modules/memcache/memcache.db.inc
-rwxr-xr-x 1 pankov pankov 8981 Jan 30 02:36 ./sites/all/modules/memcache/memcache.db.inc

#1

robertDouglass - July 18, 2008 - 19:59

Problems like this will usually go away if you turn off the memcache server, truncate the cache table in the database, turn the memcache server back on. The problem with having caches in two places is they conflict if they get out of sync (which typically happens most frequently upon installation). I am guessing you are using memcache.db.inc?

#2

bradharper - October 3, 2008 - 12:50
Version:5.x-1.7» 5.x-1.8

I'm also seeing the "Warning: require_once(A)" fatal error several times a day (in addition to sparse white screens) . Typically after I've left the browser up for a while without taking any action, but not specific to any particular role.

Configuration:

$conf = array(
'cache_inc' => './modules/memcache/memcache.inc',
'memcache_servers' => array(
'localhost:11211' => 'default',
'localhost:11212' => 'page',
'localhost:11213' => 'comment',
'localhost:11214' => 'path',
'localhost:11215' => 'filter',),
'memcache_bins' => array(
'cache' => 'default',
'cache_menu' => 'default',
'cache_page' => 'page',
'cache_comment'=> 'comment',
'cache_path' => 'path',
'cache_filter' => 'filter',
),
);

Cache tables are all empty. Any thoughts?

#3

ebizondrupalservices - December 11, 2008 - 19:04

Subscribed!! I am also getting same problem. I am also using:
cache_inc' => './sites/all/modules/memcache/memcache.db.inc'

I have changed this to: cache_inc' => './sites/all/modules/memcache/memcache.inc'

Would this help??

Sudeep Goyal
Ebizon Technologies
www.ebizontek.com

#4

ebizondrupalservices - December 12, 2008 - 04:57

Changing 'cache_inc' => './sites/all/modules/memcache/memcache.inc' did indeed solve my problem.

Sudeep Goyal
Ebizon Technologies
www.ebizontek.com

#5

ebizondrupalservices - December 12, 2008 - 04:59

Changing 'cache_inc' => './sites/all/modules/memcache/memcache.inc' did indeed solve my problem.

Sudeep Goyal
Ebizon Technologies
www.ebizontek.com

#6

singularo - December 22, 2008 - 07:02

We had this issue as well, and while not using the .db.inc version does appear to solve the issue, so does removing the "./" from the start of the offending lines in cck & views.

There is nothing obvious to me in the .db.inc that could cause the problems, any suggestions?

#7

hound - January 4, 2009 - 16:38

I've got the same error. As soon as I apply the DRUPAL-5-14-cache-serialize.patch (from Slantview's patches.zip) I get white screens. If I uninstall the patch things come back. If I enable verbose PHP errors then I can see that it is

Fatal error: require_once() [function.require]:  (on line 890, if I recall)

I've truncated the cache and cache_menu tables. No impact. I've tried both memcache.inc and memcache_db.inc. Same behavior.

Any ideas? I can run the site with no cache enabled, but it is pretty busy, and this would obviously be a big improvement.

#8

hound - January 6, 2009 - 03:45

Just wondering - I have this error on a box that is running Suhosin-hardened Apache and also Suhosin-hardened PHP5 (as installed fromt he Ubuntu 8.04 repos.) It occurs to me that maybe memcached does not play nicely with Suhosin.

Any comments are welcome here. This is driving me bats.

 
 

Drupal is a registered trademark of Dries Buytaert.