Drupal database update

* warning: Missing argument 1 for dbCache::flush(), called in /home/int/public_html/www.infonoticias.eu/public/sites/all/modules/cacherouter/CacheRouter.php on line 57 and defined in /home/int/public_html/www.infonoticias.eu/public/sites/all/modules/cacherouter/engines/db.php on line 83.
* warning: Missing argument 1 for dbCache::flush(), called in /home/int/public_html/www.infonoticias.eu/public/sites/all/modules/cacherouter/CacheRouter.php on line 57 and defined in /home/int/public_html/www.infonoticias.eu/public/sites/all/modules/cacherouter/engines/db.php on line 83.

Comments

Stefanos Karagos’s picture

I'm receiving the same Warning...
Any ideas plsss?

bacchus101’s picture

Getting the same thing.

Edit: I am going to chalk this up to my inability to read directions. I did not update the engine in the settings.php to memcache. I have not seen the error since updating the file to the correct format for the engine in use.

goldschmidt.a’s picture

Same warnings here too.
When I switch my settings.php info to anything but the default 'engine' => 'db', I get other errors. Do I need to install anything else beyond this module to make these warnings go away? memcache, apc, etc.?

Thanks,
Andrew G

ramones79’s picture

same as #3

any ideas? (because warning messages over a production site isn't exactly pleasant) :))

btw I guess some or maybe all of these error messages are due to the limitations of the shared hosting?

gbuske’s picture

in line 83 the function signature of flush hasn't any default value for flush, but if it is empty flush is set to time(), so i think it is desired that flush is able to be empty -> a default value to the param should fix the problem:

Old:
function flush($flush) {

New:
function flush($flush = null) {

ball.in.th’s picture

getting the same error on a fresh install of cacherouter too.

Anonymous’s picture

@#5: that's it. I got the error on a clean install too.

mikl’s picture

Status: Active » Needs work

That should be fixable by changing line 83 of engines/db.php to this:

  function flush($flush = NULL) {
slantview’s picture

This is fixed in latest cvs commit.

slantview’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.