* warning: Missing argument 1 for dbCache::flush()

int - February 8, 2009 - 14:34
Project:Cache Router
Version:6.x-1.0-beta8
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

Stefanos Karagos - February 10, 2009 - 12:38

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

#2

bacchus101 - February 17, 2009 - 15:52

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.

#3

goldschmidt.a - May 30, 2009 - 17:17

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

#4

ramones79 - June 15, 2009 - 09:34

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?

#5

gbuske - July 3, 2009 - 10:03

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) {

#6

ball.in.th - July 28, 2009 - 13:57

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

#7

morningtime - August 14, 2009 - 10:27

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

#8

mikl - August 15, 2009 - 14:21
Status:active» needs work

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

  function flush($flush = NULL) {

#9

slantview - September 3, 2009 - 08:19

This is fixed in latest cvs commit.

#10

slantview - September 3, 2009 - 08:20
Status:needs work» fixed

#11

System Message - September 17, 2009 - 08:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.