The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [installing]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
30 views

After restoring, incorrect database credentials are used

I am trying to get a local drupal environment up and running using an sql dump from a production environment. I am attempting to follow instructions from drupal's documentation. So far, from our ...
-1
votes
1answer
38 views

Installing a module on a separate database

I currently have a Drupal 7 site with a big database. I have to install the Drupal Commerce module and I would like to install the module using a separate database. I know I have to setup the second ...
0
votes
0answers
28 views

How to install Drupal 8 with composer on Apache server?

I want to install Drupal 8 with the drupal-composer/drupal-project on a server with apache in the public_html folder. The issue is that I want to maintain the folder structure /projectname/web. So, ...
0
votes
0answers
42 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....
0
votes
1answer
31 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
0answers
41 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 ...
0
votes
0answers
18 views

Assign a particular permission to a specific user role while installing the module [duplicate]

I have custom permission called Access vm content list in my module's module_name.routing.yml. And I listed the same in the module_name.permission.yml to get it managed via admin panel. While ...
0
votes
0answers
5 views

Unable to install site when attempting to upload a Background Process module

We recently added a new module Background Process to our local drupal environment by running the command drush en background_process -y. After installing, I was able to use the method ...
0
votes
1answer
109 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
28 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
30 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
69 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
29 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
33 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 ...
0
votes
0answers
17 views

Installation on Oracle database using the Oracle driver

I have been trying to install/host Drupal 7 on Oracle Database as the primary database for last few days without any luck. Here is the Oracle driver link that I have looked at https://www.drupal.org/...
1
vote
2answers
58 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
vote
2answers
30 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 ...
0
votes
0answers
9 views

Drupal 7 Commerce KickStart 2 Installation [duplicate]

Upon installation of Drupal Commerce Kickstart, A warning prompt shows up. After finishing installation. My site looks like this. The site is a mess, images were non-existent. It's ugly compared to ...
0
votes
0answers
20 views

Fatal error: Call to a set_group_operator() on a non-object in views/includes/view.inc on line 1026

I copied all files and the database of a working drupal 7 installation. I made sure .htaccess and settings.php are fine for my local machine. Unfortunately neither accessing the page with the browser ...
0
votes
1answer
11 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 ...
0
votes
0answers
462 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 ...
0
votes
2answers
17 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
363 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\...
3
votes
1answer
137 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
0answers
37 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 ...
2
votes
4answers
546 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....
0
votes
1answer
29 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 ...
1
vote
3answers
144 views

What is the command to execute after manually editing the composer.json file?

I want to build a site broadly based on an exiting site and was thinking that the best way to do this would be to copy and paste required modules from the existing site composer.json and paste them ...
0
votes
0answers
44 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
1answer
33 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 ...
2
votes
4answers
282 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
1answer
24 views

How can I trigger custom code when some other module is being installed/uninstalled?

I am using a third-party module. Whenever it is installed or un-installed, I want to programmatically create/delete some menus. How can I detect that a module is installed or un-installed?
-2
votes
1answer
49 views

How to Install Prism Module

Prism.js is a useful syntax highlighter that is good for displaying code samples on web pages. I have installed the Prism module, and I have followed all of the instructions in the module's README....
-1
votes
1answer
337 views

Your PHP version does not satisfy that requirement [closed]

We use the following for our local development environment. When we run composer require 'drupal/module_name:^1.1', we get the following error message. We have doubled checked that all settings for ...
3
votes
0answers
21 views

Module Uninstall Validators and Lazy Services

I have recently been working on creating functionality for a module that requires certain content related to the module be deleted before the module itself can be uninstalled. https://www.drupal.org/...
0
votes
1answer
510 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 ...
-3
votes
1answer
92 views

Twig folder missing

After done a local migration, I do that for my production site. And I encounter this error when running CRON with drush: Error: syntax error, unexpected '?' in xxx/sited8/sites/default/files/php/twig/...
1
vote
1answer
43 views

How can I create a custom module that can be reinstalled without throwing an error?

I'm creating a custom module based off of Bootstrap Paragraphs, with a bunch of configuration files for custom paragraph types. The configuration includes a bunch of field.storage. files, which AFAICT ...
1
vote
1answer
36 views

How to add warning message before module is uninstalled

The module in question has a content entity, entity1, that has another content entity, entity2, that depends on entity1. I would like to add a warning before uninstall of the module if there are ...
5
votes
2answers
740 views

Disabling module with config sync and removing with composer

I have an issue disabling modules, I've searched but cannot find something useful: - Developer A disable module and via composer remove it - I pull his changes so i run composer install that remove ...
0
votes
1answer
70 views

Header and many components missing in Open Social

Just installed Open Social: https://www.drupal.org/project/social The problem is that there is no content on the front page. No header or other blocks. I have reviewed videos of installation on ...
1
vote
2answers
431 views

Is there any security risk to use getenv() inside settings.php to populate databases variable from a .env file?

I am using the Drupal composer project, which doesn't use getenv() by default. I wanted to use the following code inside the settings.php file in a production site. $databases['default']['default']...
0
votes
1answer
147 views

Programatically set the language

I'm trying to automate the setup of Drupal multi-site installations as much as possible, we're using each multi-site for a separate country so would like the languages localised for each. Is there a ...
2
votes
1answer
382 views

How do I programmatically install a module? [duplicate]

For Drupal 7, I found How do I programmatically install and enable a module? What is the equivalent code for Drupal 8? UPD: here Configuration Manager or hook_update() to enable modules I found the ...
0
votes
1answer
58 views

Manually removing database records of a module

I inherited a Drupal 7 site that appears to have a history. I'm receiving the following error when updating modules or clearing the cache: PDOException: SQLSTATE[42S02]: Base table or view not ...
-2
votes
1answer
43 views

Recovering a failed Commerce installation [closed]

Scenario: existing site 1G PHP memory install commerce modules locally do some dev and configuring cex my config and deploy upstream deployment fails with "php out of memory" try deployment again (4 ...
0
votes
0answers
24 views

Missing DB table blocking uninstall of custom module [duplicate]

Simple problem PITA to fix. I created a module with a custom entity and some other stuff. But there was an error during installation and the DB table did not get created. Attempting to uninstall ...
2
votes
1answer
652 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; ...
-1
votes
1answer
20 views

What is my next step?

I have drupal core installed on my web host server and would like to install a panopoly distribution to it now. I have uploaded and extracted the tar.gz file to my docroot and can't seem to figure out ...
3
votes
1answer
26 views

What argument to pass hook_update_n()?

We have a custom module, mymodule, that we are using to create a custom block programmatically. We tried to do the following and it does enable the module successfully, but i get the following warning....