After installing the module I get this error:

Bad Behavior Files missing
Required Bad Behavior files are not found. Please consult badbehavior/README.txt for details.

There is "bad-behavior" dir in the "...\sites\all\modules\badbehavior" dir.
with "Stable tag: 2.0.24" in it. Why do I get this error may be the version is incorrect?
in requiments it's written that I shall use "2.0.13".

Requirements
------------
- Drupal 6.x
- PHP 4.3.0 or greater
- BadBehavior 2.0.13
(http://www.ioerror.us/software/bad-behavior/bad-behavior-download)

In the behavior.install I see

if (!is_dir(BB2_CWD .'/bad-behavior'))....

shouldn't it be "if (!is_dir(BB2_CWD './bad-behavior'))...."?

Comments

Thomas Sewell’s picture

Title: Cant ionstall correctly » Cant install correctly - Required Bad Behavior files are not found
Component: Code » Miscellaneous
Assigned: gleb1982 » Thomas Sewell
Status: Active » Fixed

The error message and the is_dir are both correct. I ran into the same issue.

What you are seeing is the error message for when the module checks for specific files within the .../sites/all/modules/badbehavior/bad-behavior directory and doesn't find them.

The issue is that you did the sensible thing and unzipped the file download inside the badbehavior directory. You'll find that it actually created a bad-behavior/bad-behavior/ subdirectory where it has the files the module is looking for.

To fix it, cd to the .../sites/all/modules/badbehavior/ directory and run:
mv bad-behavior bad-behaviorfull && mv bad-behaviorfull/bad-behavior ./ && rm -R bad-behaviorfull

That's probably too late to assist you, but hopefully it'll save the next person time figuring it out.

Status: Fixed » Closed (fixed)

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