Questions tagged [installation-profile]

Installation profiles combine core Drupal, contributed modules, themes, and pre-defined configuration into one download.

Filter by
Sorted by
Tagged with
8
votes
2answers
800 views

Features versus Configuration Management

I am building a Drupal 8 site and I have done some research whenever I should use Configuration Management or Features to export configuration and include it in my profile. In order to export and ...
6
votes
2answers
2k views

How to switch 'standard' installation profile to 'minimal' in existing site? [closed]

I have built a druapl 8 site with 'Standard' installation profile. How can I switch 'standard' installation profile to 'minimal' in existing site?
2
votes
4answers
795 views

How to know current active installation profile like standard/minimal etc. on existing drupal site?

I have installed minimal installation profile. Is there any entry in database where profile name is mentioned, current active profile. I wanna get the profile name which is get installed in existing ...
8
votes
2answers
2k views

How to set a default theme programmatically

I am trying to build an install profile and I want to have my custom theme enabled and set by default after the installation. Adding in MYPROFILE.info.yml... theme: - my_theme ...is not enough. ...
2
votes
1answer
937 views

D8 Install/uninstall custom module - 'field_storage_config' entity with ID already exists

I created a custom module which essentially is a replica of the Article CT .yml files which come with the D8 standard install-profile. When I installed the custom module, it successfully created ...
1
vote
1answer
313 views

Enable field inside Manage Display from a .yml file

When I create a field field.field.node.custom.body.yml in my custom module with the following code: langcode: en status: true dependencies: config: - field.storage.node.body - node.type....
1
vote
1answer
186 views

Drupal 8 installation (bash) script. I want the latest stable v8 version each time. But how?

My Drupal 7 script utilised a make file which specified '7.x' as the Drupal version to install, drush make would fetch the correct core files. My current Drupal 8 script uses git to clone and then ...
1
vote
0answers
91 views

Libraries not found when installing from custom profile

I've created a custom Drupal installation profile which has the epsacrop project included in the makefile and as a requirement in the .info file. Also, the epsascrop project requires two libraries: ...
0
votes
1answer
82 views

How to get correct language code during installation?

I am programmatically creating some content during installation of my profile and I need to set the language for this content, otherwise it will be in English(which my site is not) and there will be ...
2
votes
1answer
79 views

Is it possible to do a Drush make custom installation profile?

Is is possible to make a selective Drush Make file? For example: The site has 3 modules, with 3 library files. A normal drush make will give me all modules and files. But it is possible to ...
2
votes
2answers
1k views

How to create programmatically menu links with just created nodes during installation profile in aegir ?can't get nid!

I am creating a set of nodes in an installation profile. When I try to create menu links for them in the same PROFILE_NAME.install, the links don't get created. I have also tried creating the menus ...
1
vote
1answer
67 views

Drush make SVN repository

I want to add a checkout of an SVN project in the .make file. However, the checkout only concerns a specific folder (new profile added). Has anyone made this before ? edit : Folder and not file. My ...
2
votes
1answer
2k views

How to use composer for installation profile?

I have a Drupal 8 installation profile with custom modules and themes and I am wondering how should I use composer so that I can run it and drupal core and other dependencies(like contrib modules) ...
0
votes
1answer
198 views

Install profile installation fails with “Base table or [error] view not found: 1146 Table 'xxx.system' doesn't exist'” on aegir

I tried to install a custom installation profile on aegir today, the installation failed with this message: Exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 ...
2
votes
0answers
109 views

How to include translations in custom install profile

I'm creating a custom install profile and want to be able to use drush make to quickly set up all files. What is the best way to have drush make download the drupal core translation files into my ...
0
votes
1answer
155 views

How to copy current directory into Drupal profile folder via drush?

I've this yml file in my current folder: $ cat profile.yml api: 2 core: 7.x projects: drupal7: type: "copy" download: url: "file://." and 3 empty files (just for now): drupal7.info, ...
2
votes
1answer
38 views

How to prevent installation to run from UI?

I have an installation profile that will be installed purely via Drush/CLI. So I need to prevent anyone to run the installation from web interface. What would be the best approach?
1
vote
0answers
45 views

Change profile makefile download location?

This is similar to Changing Drush make default subdir for install profiles, but with a twist. I'm using a set of nested profiles to inherit default modules, each with a makefile. Unfortunately, this ...
0
votes
2answers
68 views

Aegir hostmaster custom profile

I created a custom profile with a custom theme for Aegir. I would like to enable that theme by default when a user install hostmaster during the Aegir installation. In the Aegir installation ...
2
votes
1answer
116 views

Installing a profile inherited from an existing distribution

I would like to build a distribution based on the Standard profile coming with Drupal 7, by inheriting all the features of the parent distro and changing some of them with custom code. The title of ...
1
vote
2answers
114 views

Drush make: “Found makefile: myfile.make. Aborting”

I have a custom drush make file and custom drupal installation file for a new site. Both work fine on my local VM, and the local VM's of the three other developers who have tried it. However, when I ...
3
votes
2answers
321 views

Set site name in installation profile

I'm writing a custom installation profile, and most things work, except that I can't get it to change the site name. function myprofile_install() { include_once DRUPAL_ROOT . '/profiles/standard/...
6
votes
3answers
4k views

How to install an existing Drupal profile with drush?

Seems like searching for the answer on Google just leads me to how to create make files and profiles. I know how to do that. I also know how to install Drupal with drush. But I want to install one ...
2
votes
1answer
124 views

append settings.php during profile installation

I would like to add lines to my settings.php during my custom installation. I'm using some $conf['...'] to match external content to my drupal and i would like not to do this by modifying directly the ...
2
votes
1answer
87 views

Creating menu items for views during installation of a custom install profile fails

I have created a custom installation profile in which I enable some default features and modules. In the profile I added an extra task at the end in witch I enable a custom deployment module. That ...
2
votes
1answer
124 views

Changing from a Profile to Standard profile after the installation

Its possible from moving from a custom profile or a Distro and move to a the Standards profile ? The reason, I'm asking this is because I build a website with the Recruiter distro. At first everybody ...
0
votes
2answers
500 views

how do i programmatically set the ANONYMOUS USER permissions on a site install profile?

I am having trouble figuring out how to set permissions for users I personally did not programmatically create in my site installation profile. Can someone please help? I would like to set 'View ...
1
vote
1answer
36 views

best practice: what directory should the theme be located for a site install profile

I am building a site install profile. Trying to wrap my head around the file structure. I am creating a Drupal 7 install profile with a sub theme off of omega. Is it better practice to put the theme ...
0
votes
1answer
28 views

Force views to write exposed form block info to {block} table during install profile

In a D7 install profile, I am trying to modify the location of a exposed filter block with db_update(), where the view is defined by a module's hook_views_default_views(). At this point it doesn't ...
0
votes
1answer
165 views

Rebuild permissions needed after installation from profile

Once solved this issue: How to define settings from an install profile I would like to skip the Error Message I get on first load of the application: Message d'erreur Les permissions d'accès au ...
1
vote
4answers
445 views

How to define settings from an install profile

I am looking for the way to set some settings at the install step. function genius_profile_final() { // Enable default permissions for system roles. $filtered_html_permission = ...
0
votes
1answer
50 views

Architecture Guidance: Many off-the-shelf templated sites

I typically work on larger custom projects, but have found I have a lot of requests for projects at a lower price-point. I think I can serve this audience by creating a core Drupal installation ...
2
votes
2answers
144 views

Profiler builder with custom modules

First things first: happy 2015 to everybody. :-) Now, I am quite new with Drupal distributions and profiles and here is my situation: I have a running site where I have contributed modules and custom ...
1
vote
1answer
321 views

Why would taxonomy_term_save be slow when called from hook_install_tasks?

As part of making a site more easily deployable from scratch, I have generated two PHP scripts to pre-populate taxonomy vocabularies with a list of terms. The scripts are straightforward, creating ...
0
votes
2answers
203 views

Reverting blocks and other pseudo-exportables in an install hook

We have a medium-sized Drupal 7 site whose configuration is almost entirely stored in code, in a single Features module. In order to permit automated testing and a cleaner development workflow, I'd ...
2
votes
1answer
76 views

Install profile that automatically inserts data / config settings

I am trying to create a custom installation profile for small internal usage and I'd like to hide certain steps and also implement new functions as a quick-and-dirty way to pre-populate some default ...
0
votes
2answers
268 views

Drupal installation profile: menu_link_save() doesn't work for “import” path

In my installation profile, I am trying to add a menu link for the /import path (from feed_import module). menu_link_save() works for all my menu paths with the exception of /import. Anyone have ideas ...
3
votes
3answers
578 views

Is there a way to inherit a Drupal installation profile?

I want to create a Drupal installation profile based on an existing one. Is there a way to inherit the parent profile so I don't need to duplicate modules, dependencies, libraries definitions ?
0
votes
0answers
37 views

Installing site using custom profile gives error “call to undefined function libraries_get_path”

I have to change an already made site. It is using a different custom made Profile and not the standard profile. but when I install it, it gives error "Call to undefined function libraries_get_path on ...
0
votes
2answers
159 views

db_update query in custom installation profile gets ignored

I am currenty working on a custom installation profile that enables modules, performs some db queries and so forth. It also sets my default theme and admin_theme... Nothing too special ;-) I have 2 ...
1
vote
1answer
49 views

How do I update a site after its installation profile is updated?

Say I decide to add a new module to an installation profile I've created and used to build a bunch of sites with. Can I easily use Drush to update all of those sites to the latest version of the ...
1
vote
5answers
2k views

Hooks called after installation profile is installed?

I'm stuck writing an installation profile. There are certain things that I want to do only after the installation is completed. I analyzed top ten installation profiles and checked the documentation, ...
2
votes
1answer
58 views

How to add dev modules to a distribution without getting security updates warnings?

I have made a distribution, which contains some modules which are in dev state. These modules are being by drush make checked out by git. So my drupal-org.make file contains something like: projects[...
2
votes
3answers
332 views

How to install Drupal without interaction via web UI?

Is it possible to confgirue installation profile so it can be installed via web UI as usual but without any interaction, just the progress bar?
4
votes
0answers
62 views

How should the code structure of a distribution look like? [closed]

I'm making a distribution and so far it consists of only one module which holds the whole code. Since D8 is now fully OOP and has autoloader and other stuff I was wondering how should the structure ...
3
votes
1answer
1k views

What are the major differences in building an install profile for Drupal 8? [closed]

There is a good guide for drupal 7 which explains how to build a install profile for drupal 7. I built an install profile using it. But I want to build an install profile using Drupal 8. What changes ...
0
votes
1answer
361 views

custom block's BLOCK_VISIBILITY_LISTED not working on profile installation hook_install()?

Why this cannot work in my profile installation? array( 'module' => 'views', 'delta' => 'views-block', 'theme' => $default_theme, 'status' => 1, 'weight' => 0, 'region' =&...
0
votes
1answer
581 views

Create a user via the Installation profile

I am using Installation Profiles to automate the process of installing Drupal 7 websites I would like to create a user via the installation profile and assign it a username, password and email ...
0
votes
1answer
176 views

Module not found during installation

I am creating an install profile that requires, among other things, a slew of Features. Because of the intricacies of the project, which is a multi-site, I have in sites/mysite.com/modules/...
3
votes
2answers
318 views

Automate the creation of settings.php and files directory

I am using Drush make files and Drupal Installation profiles to streamline the creation of new Drupal websites (which are created in the sites directory of my Mac). Everything is working fine. The ...