Hi, although I have increased the memory of my drupal up to 900M, I keep receiving the following error by this drupalgeddon checking script:

Error: Allowed memory exhausted (tried to allocate 324 bytes) in includes/file.inc, line 2077

Comments

SpenserJ’s picture

Increasing the memory of a specific Drupal site will not have an effect, as Drush runs via PHP-CLI. Type php -i | grep 'memory_limit' and see if that is showing the same memory limit that you expect.

Chances are that the memory limit is not the core issue though. My first guess would be that you have a large number of files/folders, and it is trying to check each of them. I'm not sure if there is much advice I could give you without knowing what files/folders are in your Drupal install.

xurizaemon’s picture

Category: Bug report » Support request
Status: Active » Closed (works as designed)
radiobuzzer’s picture

Yes, the website is pretty big and there is a big amount of files and modules:

all/modules: 208 modules
sites: 9 sites
sites/mysite.com/files: 1008 files
sites/mysite2.com/files: 38 files (script crashes on both sites)

The question is, if this is the problem, how can it be fixed.
The module is not mentioning any limit on the amount of modules or files.
So if it raises memory issues, this should indeed be a bug.

radiobuzzer’s picture

Status: Closed (works as designed) » Active
xurizaemon’s picture

@radiobuzzer your contributions to debugging and improving tools on Drupal.org are most welcome.

To help resolve this, you could -

  • Give additional information.
    • What version of Drupal do you have installed? (line 2077 is a comment in current Drupal?)
    • What is your PHP memory limit in Drush?
    • What files does the script successfully manage to pass when scanning the directory?
  • Debug further. (Perhaps add debug to print out files and directories as you pass them; work out if there's something special about the final file or the one which would be inspected next.)
  • Investigate the site. Are there recursive symlinks? Are you running on Windows or AmigaOS or some other "less common" environment for Drupal?
  • Employ a professional to look deeper for you

Contributions on Drupal.org are offered freely, but there is no guarantee or implicit support with that - just a community. You may need to be the one to scratch your own itch here. Opening an issue is a great start because it can connect you with other engaged folk in the same boat.

If you're the only one seeing this bug, you need to be the one to decide what to do next.

HTH

xurizaemon’s picture

Status: Active » Closed (won't fix)

Closing due to lack of response from reporter.