Drupal Modules missing on new install and on existing sites. Please help
Help! somehow Drupal doesn't see the following modules (they are on the server under Drupalsite/modules). I haven't changed anything on my server- as a matter of fact i can't really change much if i wanted to- it was all working fine until a couple of days ago. Now all my sites are messed up. Please help!
Errors:
* The system module is required but was not found. Please move it into the modules subdirectory.
* The block module is required but was not found. Please move it into the modules subdirectory.
* The color module is required but was not found. Please move it into the modules subdirectory.
* The comment module is required but was not found. Please move it into the modules subdirectory.
* The filter module is required but was not found. Please move it into the modules subdirectory.
* The help module is required but was not found. Please move it into the modules subdirectory.
* The menu module is required but was not found. Please move it into the modules subdirectory.
* The system module is required but was not found. Please move it into the modules subdirectory.
* The taxonomy module is required but was not found. Please move it into the modules subdirectory.
* The user module is required but was not found. Please move it into the modules subdirectory.
This happens when I try to do a new installation while on the current install I have, Drupal still kind of works but it when i go to www.mysite/admin/build/modules it only shows these modules
Core>required
Node module
Watchdog module
Core>optional
Aggregator
Forum- Enables threaded discussions about general topics.Depends on: Taxonomy (missing), Comment (missing)
Profile
Search
Statistics
and all other modules do not appear on the lists.
All the modules are in the file system, but once again Drupal is not seeing them. I really need your help people.
Thanks in advance hope to hear from you guys soon.
Also all my other optional modules are not being listed.

is this a host issue?
I was running my dev sites from siteground hosting, and had another account with cirtex hosting, so when I tried installing on cirtex it all worked. I haven't changed anything on my siteground hosting but it still give me this error. Any help would be great.
siteground
I'm seeing the same problem on siteground. Did you finds a resolution?
Siteground too - is it a server issue ???
I have same problem on Siteground too !!! is it a server issue ?!!
I first installed it through Fantastico and it was fine except that some of the optional core modules did not seem recognised by Drupal (the modules folders exist but not listed in modules admin).
I deleted the fantastico installation and did a manual fresh install and had the same DB configuration erros above. I reuploaded again and installed again and agin with the same problem.
Any clues, any one ???
Could anyone fix this yet ?
Hi everyone, I wonder if any of you has managed to fix this problem on Siteground (or other hosts if having same issue) yet. If so, please don't forget to post your solution here.
It would be nice if someone from the drupal support folks can give us their thoughts on this.
-- thanks
It IS a server problem
since this question has been posted few times over the last 2-3 months and no one cared to support or comment on it here, I would like to tell those who are still waiting for some expert to pop in and say hello that this is a known problem on "some" servers (at least that's the matter with Siteground).
so instead of waiting here endlessly and ending up rightly feeling ignored, just go hassle the nice support people of your host provider to have this vague problem solved.
What worries me here more than this problem itself is the seemingly non-existant support on these forums !!! at least in such an important matter (installation) unless drupal is sick of any more lovers.
...
You pay Siteground. You don't pay the forums. If no one who is not using Siteground is having your problem it seems like Siteground has some work and explaining to do. If no one is having your problems then it's very hard to Troubleshoot.
Emotional blackmail and threats of 'leaving' Drupal don't really work well in the forums. If you're already angry and going to 'leave' then why spend time on you? It's not personal, it's triage. People in the forums spend what time they can. They'd like to help but if there is not sufficient information in the posts then it's very difficult so may get skipped. It may be a busy week and less people spend time in the forums. Lot's of reasons why questions don't get answered.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
you have a point but did I say "leaving" ?!!!
it is very late reply I know but have been off for long and just read your reply Steven. I would like to thank you and appologise for my now-seemed-to-me very emotional post which unfortunately you gave a more emotional response I think. My post was just an expression of frustration with a program I finally really liked and found to be the best. That's why my frustration was a bit exagerrated. I appologise for this again. BUT have I said ever or threatened by leaving ?!!!!! I love Drupal and you can count on this
Cheers
Solution to this problem
In fact I too had this problem and I got it sorted out. This happens because of the server php installation. PHP 5.0.5 causes this problem, please ask your hosting company to upgrade it to PHP 5.1.6 and you will see everything working fine. Thanks to my hosting company for such a quick response.
http://me.googling.in/2007/04/09/modules-invisible-shown-missing-in-drup...
Kishore Asokan
wondering
Could it have been the php include_path did not include '.' ?
Just a guess.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
re: solution...
I run Drupal 5.1 under php 5.1.6, but I do have this problem anyway. Any other ideas? Could it be related to other php settings like safe-mode, or server features such as PHPsuexec/CGI?
same issue here
mine is even weirder.
I only see the following modules: Blog API, book, help, poll, search and statistics --
the Forum module has its checkbox greyed out and this message:
Depends on: Taxonomy (missing), Comment (missing)
even though the file modules are in the right directories.
What the heck is going on? Drupal 5.1 is not backward compatible?
btw, i've another site on the same server running Drupal 4.5.x and it's still running just fine and showing all the modules.
Probably, I should downgrade the 5.1 to the earlier version :-(
incompatible
got the php upgraded to 5.1.6, problem dissapears ....... so far.
i guess i have to quickly setup, enable and configure all the modules, just in case the problem reappears like previous user says.
Localizer
My problems disappeared when I uninstalled Localizer. Running i18n now.
I had almost the same
I had almost the same problem. The comment module was missing. After removing the phpbb2drupal module (made for drupal <=4.7) the comment module was back.
same problem
I have the same problem. I can not install Drupal, it says that almost all modules are missing.
And this is not just installation problem. It also affects any modules and themes that you upload to server. Drupal does not "see" more than half of them.
In my case server has php version 5.2.1.
Any ideas?
I had this problem as well.
I had this problem as well. I could not get the comment module to be listed and therefore, I could not activate the forum module.
Workaround: move the module from its current directory to site/all/modules (if the modules directory under sites/all is not there, create it). This will list the module properly and it can then be enabled.
Not sure why it does - but it does it...
HTH
kreaper
http://rajeev.name
Moving the menu, path and
Moving the menu, path and profile modules to /sites/all/modules/ sorted this problem for me. Thanks!
Thank you Rajeev
Thank you so much Rajeev Karamchedu,
Your sugesstion is working perfectly, After moving the search module from module folders to sites/all/modules folder, it is working perfectly.
Thanks
AB
Same problem
Thanks kreaper your solution has work for me... but I can not find the reason behind this problem... no changes and sudenly my node module was missing and no installation was possible.
I am runing a multisite and the order sites runned without problem, but in the modules list was also without the node.module... it is a mistery...
"Modules Missing" on PHP 5.2.1
I have the same problem with attempts to install Drupal 5.0 or 5.1 on my PHP 5.2.1 CentOS server.
Copying or moving the modules to sites/all/modules does not help.
I've tracked the problem down to one line in the file_scan_directory in includes/file.inc :
while ($file = readdir($handle)) {
readdir succeeds for the first n modules (where n is something like 7 or 8) and then consistently returns false after that, no matter what is in the module directories.
Very strange because I have what appears to be exactly the same function and line in a 4.* installation on the same machine and it works just fine.
A patch that works
I rewrote file_scan_directory to use scandir() rather than readdir(), and was able to install Drupal 5.1. Unfortunately scandir is only available for PHP 5.
So this looks like a readdir() problem - possibly a bug in PHP or libc.
I posted a bug report here on the Drupal issue tracker:
http://drupal.org/node/154746
Buggy libc?
My bet is that this is a bad libc problem on certain systems (mine is CentOS 5 final). This has happened in the past with GCC 2.95.3 appearing to miscompile readdir(), eg.
http://bugs.php.net/bug.php?id=28890
So the "bug" resolution from a Drupal perspective might just be to put a remark somewhere in the release notes.
But this is just a guess. Now that it is in the issue tracker, I expect that it will be dealt with appropriately.
Same issue, comment missing
I have just, just upgraded a working 5.1 site to 5.2 and the "Comment" module is missing.
Reading through the above posts, it's a bit "rich" saying this is a "server issue".
Same server, same site, new code = something is broken
I also run about 5 other Drupal sites using 4.6, 4.7 5.1 and AFAIK the comment module seems to work fine there.
I have a standard layout for the locations of my installation with core modules in /comment and add-on modules in /sites/all/modules
Optional modules (sites/all/modules) are displaying as are the optional core modules with the exception of comments.
Hosting co = Bluehost
PHP version = 4.4.6
Linux AFAIK = Red Hat
Kernel version = 2.6.21-3_1.BHsmp
Any suggestions?
Casper Labuschagne
Where am I on the Drupal map on Frapper?
same here
Same here
I used to have a 5.1 installation, and many modules were missing, like taxonomy and comment.
then i started moving them to sites/all/modules and they appeared
but i know some modules are still missing.
I have upgraded to 5.2, same issue
Yesterday i have installed the feedback module and the archive module in the above folder, and tinyMCE is gone but still works.
I have then moved those modules to the standard folder, they keep on not working, and tinyMCE is still gone...
this is nonsense.
My host is Electric Kitten
MySQL 4.1.21-standard
PHP 4.4.6
Possible Solution
Recently I moved a site to a host and noticed this same problem.
The host is running 4.7 and 5.x sites fine.
The sites was a 4.7 install that was upgraded to 5.1 on old host. It has many junk/old modules in its modules dir.
I tried an upgrade to 5.2 once it was on the new host but that did not work. I tried cleaning the old modules. I even tried removing them. None worked.
I did a clean 5.2 install. Enabled all modules that came with it. Pointed the new install to the old DB and voila. All works and modules are still visible.
So, I dare to say. It does not look like a PHP version issue.
I hope this helps someone.
Serving None.
This is how I fixed it
In order to make it work for any version of php(4, 5) I rearange the order of executions in file_scan_directory in file.inc under indludes folder like this:
function file_scan_directory($dir, $mask, $nomask = array('.', '..', 'CVS'), $callback = 0, $recurse = TRUE, $key = 'filename', $min_depth = 0, $depth = 0) {
$key = (in_array($key, array('filename', 'basename', 'name')) ? $key : 'filename');
$files = array();
$file_array=array();
if (is_dir($dir) && $handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
$file_array[] = $file;
}
closedir($handle);
}
if( count($file_array) >0){
foreach( $file_array as $file){
if (!in_array($file, $nomask) && $file[0] != '.') {
if (is_dir("$dir/$file") && $recurse) {
$files = array_merge($files, file_scan_directory("$dir/$file", $mask, $nomask, $callback, $recurse, $key, $min_depth, $depth + 1));
}
elseif ($depth >= $min_depth && ereg($mask, $file)) {
$filename = "$dir/$file";
$basename = basename($file);
$name = substr($basename, 0, strrpos($basename, '.'));
$files[$$key] = new stdClass();
$files[$$key]->filename = $filename;
$files[$$key]->basename = $basename;
$files[$$key]->name = $name;
if ($callback) {
$callback($filename);
}
}
}
}
}
return $files;
}
Check for duplicates in /sites/
That change didn't do squat for me. What did was doing a search of my /sites/ folder for taxonomy.module ... and renaming that to taxonomy.module.bak. Worked a treat.
I have to thank you sooooooo much Hetta!
I implemented your change and immediately was able to access the taxonomy access control. This not only fixed my missing Taxonomy, but also was able to allow me to fix my anonymous user access. I am soooo bowing to you right about now. That was the fix I needed!
This workaround... works!!!
Your patch works very good!
Thank you hamidrj!
Bye
gl
duplicate modules
i found some duplicate modules in the root module folder. i deleted these and problem solved.
Well spotted. Duplicate
Well spotted. Duplicate modules was my problem as well.
Thanks! duplicates were the
Thanks!
duplicates were the problem!!!!!
Renamed the files and reloaded the modules page and it worked!
Thanks!
Dup Files
I had the same prob of the comments module disappearing. After reading the numerous "solutions" in this thread I looked at my modules folder and saw that I had accidentally uploaded comments.module to the root of modules when I was making a tweak. I removed and all is well. I suspect the folder scan got confused.
Still need a definitive answer!
I have two Drupal installs on my servers (Direct access. They are in the next room.) Drupal 5.7 running on PHP 5.0.4.
One is a multi-site setup I use for hosting, and the other is a site under development for a client which I will migrate to another provider when done. Both installs have been working fine, and are independent. If it were a server problem, one would expect both installs to behave the same. It is not a server problem!
Yesterday, the Comments module disappeared from the multi-site install (from ALL hosted sites). I corrected the problem by moving the module to sites/all/modules, but it does not give me a warm fuzzy feeling that any module might drop from the list and become unavailable without warning.
We don't need a 'this worked for me' type of fix. We need to know why this is happening, and how to correct the problem.
We need to know why this is
Right. So if you can please describe how to replicate the problem, somebody might be able to help come up with a fix. If no developers can make it happen, then no developers will be able to definitively fix it.
It follows that if it works one way on one machine, and differently on a different machine ... there may be a difference in the machines configuration that can be identified.
Like - what did you do recently there? Most of the posts here point to a certain version of PHP and the way it scans directories (sounds odd, I know, but it's the only clue anyone has provided).
If anyone else seems to get this behaviour, please go to the database and take a dump of the 'system' table. That's the one that records what modules are available and where they are. Any anomoly may show up there.
I can't imagine why just visiting the admin - modules page and pressing save won't fix all problems.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
I solved it by removing Comments OG
I met the same problem today. I have Drupal 5.7 installed. I removed all the modules in sites/all first, and tried to put modules back one by one and see if there's any of them conflict with the core Comments. And I found OG Comments made the core Comments appear missing. Then I read the "Read Me" in the OG Comments. It seems there's some patches required to make it work. I haven't tried it yet. But for now, I just removed that module, in order to make my Drupal back to function right.
I don't know if this helps?
This works for me....
Thanks to all of you for trying to work out a solution.
For me, the Comment_OG deletion worked. Core comments module was "missing;" but when I deleted comment_OG, voila, it reappeared. So I would say there is a correlation there. Perhaps there is a bug when the two are combined.
What about you others? Did you have comment_OG installed? Does core comments module return when you delete comment_OG?
If so, perhaps we have a trend, and a call for a bug fix...
cheers
geoff gevalt
http://www.youngwritersproject.org
Yup
Same here.
Comment OG was the culprit
I removed it and the comment module appeared. I do not think they are compatible