Questions tagged [installing]

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

Filter by
Sorted by
Tagged with
1
vote
3answers
674 views

Can't uninstall module that depends on custom field type in use

Drupal 8 Using Yoast, I've removed it from all my content types but I can't uninstall because it says --> The Yoast SEO status & focused keywords field type is used in the following field: ...
0
votes
2answers
867 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', ); ...
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?
3
votes
1answer
222 views

applyUpdates() is deprecated. Is it really needed in hook_install() anyway?

I maintain a contrib module which defines two base fields, but these are not added to any content type on installation, as this is done during admin config. The module has // Add our base fields to ...
0
votes
1answer
185 views

“File not found error” when installing using composer

I'm running Docker on Ubuntu 18 with a container for MariaDB, Nginx and php-fpm (7.3). The PHP container has composer installed, and I used it to create a Drupal Commerce project. I can start the ...
0
votes
4answers
2k views

Why is the index.php file missing?

I installed Drupal via the following command. composer create-project drupal-composer/drupal-project:8.x-dev projectfolder --stability dev --no-interaction As a result I'm getting this structure. ../...
0
votes
0answers
55 views

How do I synchronize 2 sites, one installed with Composer and one from downloaded zip?

I have two sites: one, local, installed with composer create-project drupal-composer/drupal-project:8.x-dev mysitelocal --stability dev --no-interaction another one, remote, installed from drupal-8.7....
3
votes
1answer
2k views

Grant permission for custom role from hook_install programmatically

Drupal Version: 8.5.5 Need to assign permission to existing role during module installation: Am using below code in hook_install: use Drupal\user\RoleInterface; use Drupal\user\UserInterface; ...
0
votes
0answers
99 views

Can't install module Webform because more than 2MB

I keep getting the error that the file exceeds 2MB and that that is the maximum allowed. This is when I try to upload it. For now it only happens with the module Webform for drupal 8. Is there any ...
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 ...
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
1answer
250 views

Configuring drupal in a virtual directory

I am running drupal using apache on redhat linux. Currently drupal is running at the root of the apache site. However, I want to put drupal in a sub-directory/virtual folder, because it's possible ...
1
vote
1answer
198 views

How to share Drupal code across multisites that are each in subdirectories?

I have two websites on my own server (I have full control of the Apache config, etc.) I want to install Drupal 'into' each of them, in a subdirectory of the site root. I'd like to share a Drupal ...
0
votes
1answer
892 views

just installed 7.12 - but got stuck - how to access the backend and login

good day dear drupalers, just installed 7.12 - but got stuck - how to access the backend. i have no glue. see the page: http://www.boysday.org - i do not know how to proceed. how can i see the ...
0
votes
1answer
1k views

Installing on CentOS 6 with Apache 2.2.15

I'm trying to install 8.0 RC4 on CentOS6 with Apache2.2.15 and I'm being stopped by this error message: Apache/2.2.15 The minimum version of Apache needed to run Drupal without mod_rewrite ...
0
votes
2answers
808 views

Setting up a Drupal environment on Ubuntu

After a few years of setting basic Drupal environments on Windows only, with WAMP (both the installment and the WAMP program) and Drush 7.0.0, I came to the conclusion I also need to work with LAMP ...
0
votes
1answer
572 views

Can I use Apache 2.2.15 with mod_rewrite enabled?

I currently am running Centos 6 which only comes with Apache 2.2.15. Yeah, I know it is about time for me to upgrade... I get the following warning: The minimum version of Apache needed to run ...
0
votes
1answer
52 views

Site won't display after logging in

OK, so I have a weird one that I have never seen before. I have about 15 Drupal sites setup locally that are all running fine. I am attempting to setup a new one that I am setting up from a Drush ...
0
votes
1answer
20 views

How to install new drupal packages on local apache server [closed]

I have a drupal site set up on a local mysql and a local apache server. I am trying to install a new module the problem is it brings me to the login for server ftp. I'm not sure what credentials it ...
0
votes
1answer
756 views

ERR_EMPTY_RESPONSE during installation with PHP 7.3

I'm trying to install Drupal 8 with PHP version 7.3.0RC4. When I go to http://localhost it redirects me to http://localhost/core/install.php with the empty response error. I checked the Apache error ...
1
vote
1answer
39 views

Downloaded Drupal 8 with composer, now what? [closed]

I'm a complete Drupal newbie trying to install Drupal 8 for the first time on a new server. I downloaded the software following the instructions in section 3.5 of the User Guide, but there doesn't ...
5
votes
3answers
4k views

How to install with composer external library that drupal module depends on

Module bootstrap_languages depends on external library of same name how do we ask composer to require the external library that needs to go to libraries/bootstrap_languages folder The project's ...
9
votes
2answers
3k views

How do I add default values to a database table using hook_install()?

I am creating a custom module with its own schema of a few tables. These tables need to have some values pre-populated into them for the module to work (default locations, select options, etc). What'...
2
votes
4answers
1k views

How to add theme from github with composer

I have a Drupal 8 installation and I like to install a theme from github.com using composer. It is this theme https://github.com/forumone/gesso Can anybody help me what I have to add to the composer....
1
vote
1answer
21 views

No URLs in dashboard

After installing Drupal I cannot use the dashboard menu because none of the URLs are found. I cannot google my way to find a solution to this so.
0
votes
1answer
980 views

Delete a field from the database manually

I installed a module that left a ghost field that isn't tied to any entity bundle :( How would I go about safely and thoroughly deleting this field from the database? I have to delete this field to ...
1
vote
1answer
59 views

How to delete paragraph when uninstalling the module?

I have been creating the custom module which have the paragraph configuration, when installing the custom module, the paragraph config will be stored in the database and then It will be available in ...
0
votes
1answer
96 views

Why did my site crash when I moved module and theme folders?

A little background, I am quite new to Drupal and IT in general, so this may be a silly/basic question (I am going to start learning HTML, CSS, PHP, etc. for Drupal). I first set up my Drupal site by ...
-3
votes
1answer
312 views

Getting PHP extension “gd” and Database support disabled error

I am trying to install Drupal 8.7.3 on my windows machine through the Xampp (PHP 7.3.6). But I am getting following errors: Errors: Please see the screenshot: https://snag.gy/06sMEa.jpg Tried to ...
0
votes
0answers
57 views

Clone project: refused to execute script

I just cloned an empty Drupal 8 project locally, initially I entered the web folder and I used php -S localhost: 8000 With this virtualization, every time I enter the "edit" rooting rule, a 404 ...
0
votes
1answer
69 views

Problem installing Knowledge base module

I installed Drupal using the Bitnami stack. I'm trying to install the knowledge base module from https://www.drupal.org/project/kb . I have installed and enabled the modules upon which it is ...
3
votes
2answers
183 views

How can I update existing config from a custom module's config/install yamls?

I added some config yml files to my module's config/install directory so that it is installed directly when installing my module, it works well only if there isn't a config file with the same name ...
-1
votes
1answer
615 views

Drush 6 installed on a centos server. How do i find out where its installed and upgrade it?

how do i find where is drush installed? its currently on drush 6 and looking to update it to drush 7 for drupal 8. Whats an easy way to find where its installed and update it?
1
vote
2answers
33 views

How to get my custom module to recognized a exported view?

I have created a view and then exported it normally to a yml file. Then I put this yml file into my mycustommodule/config/install folder. So current its named mycustommodule.view.user_assigned.yml ...
2
votes
4answers
1k views

Cannot uninstall modules due to missing table br_schedule

When I hit the Uninstall tab in the UI or try to uninstall a module with Drush I get the following errors: Drush: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'DATABASENAME....
1
vote
2answers
827 views

Drush installation problem [closed]

I've twice followed these instructions to install Drush 8. At the end of the process I can run Drush anywhere and it responds as expected. However, whenever my server connection is broken and I log ...
1
vote
2answers
712 views

Installation on OpenSuse Leap

I get following two warnings: Due to the settings for ServerTokens in httpd.conf, it is impossible to accurately determine the version of Apache running on this server. The reported value is Apache,...
6
votes
2answers
1k views

How to set the default theme programmatically

I've tried to set a theme as default theme in drupal 8 using the following code > $config = \Drupal::configFactory()->getEditable('system.theme'); > $config->set('default', 'test_theme')...
1
vote
1answer
388 views

What all is required to completely uninstall Webform?

After disabling and uninstalling Webform, I noticed that it appears to still be active. Existing Webform content are all still there and accessible. Apparently this is intended behavior. I can delete ...
0
votes
0answers
544 views

How to integrate CkFinder in drupal 8

I am struggling in the integration of CKFinder to CKEditor in a development drupal 8 installation. Where to place the folder and how to tell the Editor to use CKFinder
0
votes
1answer
20 views

SQL error when adding an other database table

The Code: In my module.install i am declaring my main database table. This works without any problems: function my_module_install() { create_initial_roles(); drupal_set_message("Installed module ...
1
vote
2answers
6k views

PHP Fatal error: Class 'Drupal\Core\DrupalKernel' not found

I have installed the EntityPrint module in drupal 8 for the pdf conversion. Followed below procedure: curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=...
0
votes
0answers
2k views

PDOException: SQLSTATE[HY000] [2002] Connection refused Upon Drupal 7 Installation

I have already installed LAMP in my Ubuntu 18.10 server. I have also downloaded Drupal 7 files. But after I navigate to http://10.0.34.74/drupal-7.65/ in my browser. The error below occurs: Error The ...
4
votes
3answers
1k views

How to remove subdir from base URL after installing site with Composer on a shared host?

I've managed to install drupal 8 using composer and following script: composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --stability dev --no-interaction I decided to ...
0
votes
2answers
25 views

How can I get rid of Contribute 8.x-5.0-beta3 module?

What's wrong with Contribute 8.x-5.0-beta3 module? After 8.6.10 update I have a problem with Contribute module. First it's marked as outdated/not supported but on some sites I can not remove it fully ...
6
votes
1answer
439 views

“Declaration of <function> must be compatible with <interface>” in Drupal 8.6.10

Up until Saturday I had a functioning Drupal 8.6.x instance. The I did composer update and Drupal 8.6.10 was installed. Since then I get the following in my error logs: Declaration of Drupal\Core\...
0
votes
0answers
38 views

Do we need any init steps in this scenario?

In Order to install Drupal Core using Code deploy, I follow these steps. Download drupal-7.x.zip /usr/bin/unzip -o /tmp/drupal.zip /bin/mv /var/www/drupal-7.x /var/www/drupal Similar steps to ...
0
votes
1answer
39 views

Not able to install modules

I installed Drupal on my localhost (LAMP Stack), and I am trying to install modules, but I get the following error. I tried changing the permissions of the folder, but still it is not working. It is ...
0
votes
0answers
87 views

What If I Need Conditional/Overriding (synchronized) .yml Config Install With a Custom Module?

With D8, the appropriate method for adding fields during install with a custom module is with the config system and .yml files in a config/install directory. I have a module for user theming I like ...
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 ...

1 2
3
4 5
14