Download & Extend

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

Project:Cache Router
Version:6.x-1.0-beta8
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

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

#2

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

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

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

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

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

#7

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

#8

Status:active» needs work

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

  function flush($flush = NULL) {

#9

This is fixed in latest cvs commit.

#10

Status:needs work» fixed

#11

Status:fixed» closed (fixed)

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

nobody click here