Questions tagged [installing]

Use it for questions about installing Drupal, modules, or themes.

Filter by
Sorted by
Tagged with
0
votes
1answer
109 views

How to delete content type menu item in .install file on module uninstall /disable

I have a module that adds a content type in the .install file. When I disable the module how do I remove the content type entry from the menu?
2
votes
1answer
110 views

What is the proper way to create a custom user field programatically?

I'm currently working a custom user registration module for a project I'm busy with. I need to add a boolean field which will be attached to user entities. The value will just serve as a flag to check ...
1
vote
1answer
377 views

How do I set permissions for user roles in the install profile

I have a content type which I am creating on install profile, and I want to create a user that has permissions to edit that content type. How do I create user roles and permissions for those roles in ...
0
votes
2answers
47 views

Is it possible to automatically create a .install file for a module?

I have a content type that I want to install as part of a module or install profile. Is there anyway to automatically create all the field_create_field and field_create_instances code that would go in ...
1
vote
2answers
2k views

Using Drush site-install with multisite and a single database

I am trying to make a script that will create and configure a new multisite in a drupal 7 install using drush 5.8. I have scripted creating the site folder and settings.php file manually and adding ...
1
vote
0answers
32 views

Prefixing Drupal Folders

Is it possible to prefix the root Drupal folders? Is there an option/way to define a prefix for theses folders? e.g /includes/ becomes /drupal_includes/ I'm implementing a site that will begin as ...
9
votes
3answers
37k views

Programmatically creating a content type with file field in a custom module

I'm writing a custom module, which I've done before, but this is the first time I've tried to create a content type with fields. I implemented hook_node_info and the Content Type is showing up in the ...
2
votes
1answer
144 views

During a Drush pm-uninstall, is there a way to see what sql queries were run?

Is there a way to find out what sql queries were run during a drush pm-uninstall module? The reason I want to find out is because I want to see if certain tables were removed during the uninstall. ...
-2
votes
1answer
2k views

Acquia drupal new site creation problem [closed]

I have installed Acquia Dev Desktop on my Windows 7 PC. I cannot import the new Drupal site from its control panel. Whenever I try to do it, it shows the following error: Cannot write file C:\...
8
votes
9answers
3k views

How to handle enabling new modules with Drush via makefile

At work we are moving to getting our new sites set up in git and doing local development. So far I've created a drush make file along with an installation profile, and I have this scripted via puppet ...
3
votes
3answers
176 views

How can 'programatically' configure my site?

I often find myself re-creating the same site: a 'clean' instance of what I have developed so far. It takes me several hours to do. So, I have created a .install file to create all of my content types ...
2
votes
3answers
739 views

How do I 'programaticaly' create a new content type with hook_install in D7?

I am trying to create a .INSTALL file which creates a content type (Apples) for my module (Fruit). I have dropped the following file (fruit.install) into my module folder with the .INFO file and ....
1
vote
0answers
182 views

How to add flash message to custom installation profile?

I have a custom installation profile and I want to display flash message by using drupal_set_message on home page after install. How can I do it?
2
votes
2answers
2k views

What is the proper way to uninstall a module that adds a content type

I heard that when uninstalling a module that is a content type, you should not use node_type_delete('my_module') in hook_uninstall(). Instead, you should let it be handled by Drupal that just disables ...
0
votes
3answers
14k views

How to get Drupal 7 installed in a sub-folder / sub-directory properly?

Currently i'm trying to installing a drupal 7 installation in a subfolder of another drupal public_html folder, but it doesnt seem to work. I am getting a redirect loop error in chrome. I already ...
1
vote
1answer
84 views

After adding a column to a module's schema, should the new column also be placed inside hook_schema?

I have my own module which implements its own schema. I now want to add a column to the table provided by the schema, which I plan on accomplishing via hook_update_N() and db_add_field(). My question ...
0
votes
2answers
296 views

How to deploy a site with open source?

I created a Drupal 7 site on my localhost. I installed some modules, created some content types and fields, changed some preferences, etc. and also entered some real test data. (I want this data to be ...
0
votes
1answer
111 views

How to uninstall the Service links module?

I had a hard time with the Service links module (version 7.x-2.1) in Drupal 7. All the harder that links showed for some articles and not others. So while testing and trying to figure out how to ...
0
votes
2answers
866 views

Enable admin theme in my install profile

Is it possible to enable an admin theme in my install profile? Used this: // Enable themes $enable = array( 'theme_default' => 'geoslate', 'admin_theme' => 'adminimal_theme', ); ...
1
vote
1answer
42 views

Make the git repo part of the drupal site so I can commit my changes whilst testing

I've got a git repo on my desktop with a couple of make files. I am currently building the drupal site in my htdocs folder by copying the distro.make file there, running the command: drush make ...
2
votes
1answer
2k views

Can I create a drush make file and installation profile from existing site?

I have an existing Drupal site, that I would really like to be able to put entirely (or as much as possible) into code and use drush, a git repo, and installation profiles to be able to properly track ...
5
votes
1answer
2k views

What is the different between an install profile and a drush make file?

I am just getting into using drush and excited about using drush make and installations profiles. What is the different between a drush make file and an installation profile and do they /can they work ...
1
vote
2answers
6k views

The Nivo Slider library could not be found

This is the first time I use a CMS, and I'm trying to install nivo slider module into Drupal. I used the following commands drush dl nivo_slider drush en nivo_slider -y Then I added some pictures to ...
0
votes
1answer
351 views

DAMP / Aquia Dev (mac) apache fails on import of drupal core 7 [closed]

I'm attempting to switch from Bitnami to Aquia Dev Desktop for the mac (OS 10.8.2). I'd like to be able to develop a couple sites (using core drupal - not the aquia distro) simultaneously in a ...
0
votes
3answers
5k views

500 internal server error while installing [closed]

What is the reason for the error "500 internal server error" while trying to install drupal, i have created database successfully After that i have downloaded and extracted the drupal 7.22 in my ...
1
vote
2answers
903 views

Set “Use the administration theme when editing or creating content” to true in install profile

I am creating an installation profile, and I can succesfully download and enable my custom theme as default. The issue I am running into is the "Use the administration theme when editing or creating ...
2
votes
0answers
312 views

How can I bundle installation profile with translation (*.po)

I have tried a few different approaches to load a translation file (.po) from an installation profile. The build is pretty close to being typical: a make file downloads core, custom profile and ...
1
vote
1answer
266 views

Adding translations to installation profile upon installation

Creating an installation profile for a french site. I have hit a brick wall trying to have the profile install fr language translations. I have tried adding this to my profile as this comment http://...
0
votes
1answer
299 views

Multiple local Drupal sites for development on WAMPServer?

I'm still very new to Drupal. I'm hoping to create multiple site instances via my local WAMPServer WAMP stack. I have one. I realize that Acquia makes this very simple via their DAMP stack, but ...
4
votes
1answer
250 views

Changing the module path on custom install profile

I would like to have the profile install the modules I list in my profile .make to sites/all/modules/contrib instead of in the profile directory profiles/my_sweet_profile/modules/contrib is there any ...
0
votes
1answer
60 views

How to add different installation profiles in drupal 7

I have my own custom built theme. I want to add installation profile like many premium themes have. Is this is achievable by any module?
3
votes
0answers
588 views

website dont save /update content and any setting [closed]

I am develop in my laptop a drupal 7 on this enviroment: Windows 7 + IIS 7 + MSSQL Server 2008 R2 , its run fine. But when we upload to the webserver (Windows Server R8 + IIS 7 + MSSQL Server 2008 R2) ...
4
votes
1answer
92 views

Moving a DB table into a different module

Here is cleanetica_advanced.install file (of a "custom" module containing particulars of the site we work on): <?php function cleanetica_advanced_schema() { $schema['video'] = array ( '...
1
vote
0answers
1k views

Moved drupal 7 site to new domain, white screen of death

I've recently moved a drupal site to a different hosting section on the same server, the new site is under a different domain. If I edit settings.php to the new database settings, the site white ...
-1
votes
2answers
7k views

How to write .install file for a custom module [closed]

I am new to drupal and want to write a .install file for my custom module. here is the code of my module. function formModule_menu() { $items = array(); $items['form/formModule'] = array( //this ...
2
votes
2answers
2k views

Adding content to a database table during module install

I created a custom module and in the ".install" file, I create a table using hook_schema(). I have about 90 error codes that I have to associate with an error message. What is the most effective way ...
0
votes
1answer
379 views

Migration Issue: New Site won't open — server doesn't see file that is there

I am migrating a Drupal site from my localhost to the most current Bitnami Drupal AMI on Amazon: I uploaded the DB successfully. I moved the files correctly. I copied over the modules and libraries. ...
2
votes
2answers
996 views

Install module that has an external php script and a couple of other files

i want to develop a module that has some pdf modelling functionality. I have an external script I want to use and some javascript. i wonder what is the best solution to get a module working from the ...
0
votes
1answer
178 views

jQuery update - access denied

Trying to setup the latest jquery update dev version, needed for the installation of the amazing social_count mobile-friendly count widget, I can't configure the module. When logging as user #1 and ...
0
votes
1answer
345 views

WSOD while trying to install Drupal Commerce Kickstarter

I'm trying to install Drupal Commerce Kickstarter with core, but I cannot go past random WSOD, or hangs, to complete installation. WSOD happens randomly, but mostly after "Configure site" step. Very ...
18
votes
4answers
10k views

How do I programmatically install and enable a module?

There is a lot resource for doing it in Drupal 6, but I didn't find a solution for Drupal 7. How can I install and enable selected modules?
2
votes
1answer
1k views

Drupal does not recognize GD and PDO [closed]

sorry if this has been answered already, but my searches brought me to nowhere. I have just installed LAMP environment on Amazon EC2 instance. It runs on: Ubuntu precise 12.04 amd64 server PHP ...
0
votes
3answers
208 views

How should a custom module install a reference data dictionary?

I'm about to write a custom module dealing with chemical hazards symbols. It's basically a 300-item dictionary of simple objects: a symbol, its description (around 100 chars) and in some cases a ...
5
votes
3answers
6k views

What could be causing drupal to want to reinstall itself after I clear cache?

I am trying to update Drupal from 7.17 to 7.18. I uploaded a copy of my site from a test server to my production server. Everything installs fine, I actually see the site working, and I can navigate ...
2
votes
3answers
100 views

Checklist(s) for simplifying upgrades from Drupal 6 to 7 or higher in the future?

Is there any checklist to configure before upgrade for better deciding? Is there any checklist for it after upgrade?
1
vote
3answers
673 views

Setting up Multisite on windows server with IIS7

First off I'm not a server person. New windows box spun up, IIS7 was used to install one instance of Drupal 7. Great :) However I need to have multiple sites running. I've read several tutorials on ...
7
votes
1answer
424 views

Safe to remove core optional modules

I'm running on a restricted machine space/memory where I have to remove all un-needed modules. Is it considered safe to uninstall core optional unused modules?. modules like: Book, Forum, etc.
5
votes
4answers
4k views

How to install drush extension / addon globally?

I want to install drush-toolbox project globaly on my linux server box so all users can use it. How can I do it?
0
votes
1answer
329 views

Moving Drupal in a sub-directory

I want to install Drupal 7 in a new directory of my site, using the same database account used in my previous Drupal site. Will this cause any data loss?
1
vote
1answer
147 views

Setting admin theme using Profiler

I'm using Profiler to create a Drupal 7 installation profile, which works great -- however, it doesn't set Seven as an admin theme, and thus falls back on Bartik (The default theme). Is there any way ...