Okay, here's the deal. On a fairly fresh install of Drupal 4.6.3, I tried to install the directory.module from cvs (it is not available on the Modules page), but when I go to settings --> directory, I get an all-white or blank page with what appears to be a PHP error:

"Fatal error: Call to undefined function: node_get_types() in /[path]/modules/directory.module on line 52"
(Square brackets and text within are my paraphrase.)

Now, part of this could be that I've not installed the directory module correctly. The only files available in cvs are "directory.module" and "README.txt", which makes reference to an "INSTALL.txt file in this directory." As far as I could tell, there were no other files besides the module and the readme, so I just threw directory.module in my modules directory and crossed my fingers. Obviously, this didn't work.

Thanks in advance for any help! Here is the URL to the module in the cvs repository: http://cvs.drupal.org/viewcvs/drupal/contributions/modules/directory/#di....

Other relevant data:
Apache version: 1.3.33 (Unix)
PHP version: 4.3.11
MySQL version: 4.0.25-standard
directory.module: version 1.5 (the newest available on cvs)

Comments

pgscholt’s picture

I now notice that the directory module has created a "directory" menu item within the Navigation menu. When I click it either as admin or anonymous user, I get an error that prints out twice at the top of the screen:

warning: in_array(): Wrong datatype for second argument in /[path]/modules/directory.module on line 88.

As I say, it prints out twice, and then the regular site layout appears immediately below.

hooloovoo’s picture

I'm seeing the same error on line 52 when I try this module.

sethcohn’s picture

It would be nice to use this for 4.6...

Someone have a patch to fix this?

bomarmonk’s picture

I don't know how to overlap views, but the module provides a directory of everything. I can't figure out how to configure it! It looks like it has potential.

REEP’s picture

I read someone say that some things don't get dealt with because they are low on the priority list.

Is the absence of the install file low on the directory.module or has it been orphaned in anticipation of the new link bundle module?

heine’s picture

node_get_types is a function from Drupal 4.7. When looking at the code, I also saw use of the new forms api; the current CVS simply won't work on 4.6

CVS is the 'in development version' and should be approached with caution.

If a module only exists in CVS and doesn't have a tagged version, be even more careful. Some module authors will wait until Drupal 4.7 is released before tagging a module 4.7. Use of module.install files was only implemented recently in HEAD (& beta 5); modules developed on drupal 4.7 beta 4 usually won't have such files, but these may become available later.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

REEP’s picture

I think I understand what you are saying but It seems like an absence of directions is being used as a deterrent instead of a use with caution sign.

For those people who want to brave using it there doesn't seem to be any direction at all.

The people who claim to have it working had to have something to point them in the right direction.

-----------

The term troll is highly subjective.

When you focus on the poster and not the post your vision is blurry at best.

netlynx’s picture

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/directory/dir...

This one works - needs a bit of tidying up but its a very good start if you don't mind a little danger.

There are no install instructions but just load as usual and it should work.

REEP’s picture

Thanks Netynx

I don't know if you were following the USABILITY thread but danger is not my fear :)

Could you elab on what you mean on tidying up.

Also

I don't remeber which version I tried before but when I uploaded it to the module folder... It crashed the site.

By crash I mean the site would only show the php source code for that module no matter what link or page I went to.

When I deleted the module - the site went back to normal.

So when you say install like normal

Where (as in what folder) should it be placed.

And are there any other things that one might need to be aware of before they jump in harms way?

Thanks again.

-------------

The term troll is highly subjective.

When you focus on the poster and not the post your vision is blurry at best.

netlynx’s picture

By Danger I mean using something that is clearly not tested and is not supported.

To load you should be able to add the module to your modules directory and it should run - at least it does for me on my test site using 4.6.5

Regarding the tidying up I mean there are one or two display issues, (which I have not got around to looking at in detail), that could be better; when for example displaying two categories, but nothing major. Its a very nice start if you want to have something that allows you to 'walk' your taxonomy.