Posted by sharrison on May 16, 2009 at 6:29pm
Jump to:
| Project: | Image |
| Version: | 6.x-1.x-dev |
| Component: | image.module |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I just installed the Image module on my Drupal 6.12 installation.
The module installed but it didn't create an image content type.
I then deactivated, uninstalled, and reinstalled the image module.
Again, no content type.
Is there anything I should have done differently to get this module up and running.
Thanks,
Stan
Comments
#1
Have you actually checked the path at node/add/image -- going to it directly rather than via the menu? It could be you have a problem with your menu cache for example.
#2
Thanks for writing.
I think I've uncovered what went wrong.
I created a "3rd Party image" content-type which is showing up when I go to node/add/image
So, I'm thinking that the image module can't install it's content type because I've already used it.
I'm going to delete my 3rd Party image content type and see what happens.
I'll let you know by tomorrow.
Again, thanks,
Stan
#3
Yup, if you created a node type called 'image' yourself then image module's node type won't get picked up.
Can you confirm that's what the problem was?
You may need to empty your cache before the node type is picked up -- or try disabling and re-enabling image module.
We should maybe add a check for that in the installer.
ETA: actually, I think maybe Drupal core should check when looking at a new node info hook that the content types aren't already there.
#4
Yup. That was it. I
And, yes, the Image content type appeared.
Self-created problem resolved.
Thanks,
Stan
#5
I think we've had a few support requests about this.
How about checking for a pre-existing image node type in hook_requirements on install?
#6
hook_requirements() sounds nice. But only display something before the module is installed, not afterwards (wouldn't make sense) - I wonder whether that is doable...
#7
I think that's really a job for core: #468976: Module-defined bundle is not installed when a custom with same name already exists
But we can return REQUIREMENT_ERROR and prevent module installation.