cron fails due to memcache

Events happening in the community are now at Drupal community events on www.drupal.org.
allandk's picture

crontab is failing to run with this error

Fatal error: Call to a member function increment() on a non-object in
...../sites/all/modules/memcache/memcache.inc on
line 262

any ideas for me please ?

Regards Allan

Comments

Have you searched or posted

Garrett Albright's picture

Have you searched or posted (in that order, please) in the Memcache module issue queue?

I have not been able to find

allandk's picture

I have not been able to find anything
http://drupal.org/project/issues/search/memcache?text=cron&assigned=&submitted=&participant=&status[]=Open&version[]=6.x&issue_tags_op=or&issue_tags=

yet another

allandk's picture

yet another error

http://www.site.com/node/278391/edit

Fatal error: Cannot use [] for reading in /usr/home/freja/public_html/sites/all/modules/memcache/memcache.inc on line 262

again line 262

Surround your Memcached

Dokuro's picture

Surround your Memcached settings in settings.php with this.

if ($_SERVER["HTTP_USER_AGENT"] != "") {

//Settings in here

}

Does that fix the issue?

Hi i added: if

allandk's picture

Hi

i added:

if ($_SERVER["HTTP_USER_AGENT"] != "") {

$conf = array(
'cache_inc' => './sites/all/modules/memcache/memcache.inc',
);

}

1.

trying to edit or make comment this error remains

Fatal error: Cannot use [] for reading in
............/all/modules/memcache/memcache.inc on
line 262

  1. crontab now makes a new error

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in ......./includes/database.mysql.inc on line 119 (or 118 or 121)

Regards Allan

Up your CLI memory Try to

Dokuro's picture

Up your CLI memory

Try to bump your CLI memory up to 128M /etc/php5/cli/php.ini

If it's saying memory

geekgirlweb's picture

If it's saying memory exhausted that sounds like you've reached the maximum amount of RAM/memory that is set by the server in php.ini

already there ;-)

allandk's picture

already there ;-) memory_limit 128M

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: