A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [updating]

Use it for questions about updating Drupal core and contributed modules.

Filter by
Sorted by
Tagged with
40
votes
3answers
6k views

How do I merge changes from a development copy of the site to the live site without losing new content?

What is the best procedure for merging work done on a development copy of a site to the live production copy? Often times there has been a lot of new content added to the site since development ...
35
votes
6answers
12k views

How do I avoid checking for updates for a specific module?

In a current project I have had to patch the life out of a few modules (node hierarchy, workbench access and a few more). These modules are now absolutely perfect for the project's needs and are very ...
34
votes
2answers
24k views

How to switch from recommended release of module to dev release?

For example, I'm currently using the Geofield module. I'm using version: 7.x-1.0-beta2 (2011-Nov-17) Now I see the development version has some functionality that I want. How do I correctly and ...
32
votes
6answers
12k views

How do I update the configuration of a module?

I'm building a custom module in Drupal 8. It includes some YAML config files. As I develop I need to change and add to the config, e.g. to add another field onto my custom entity. At present the ...
28
votes
7answers
21k views

drush updatedb for a single module

Is it possible to perform a single module's update function via drush? I can see drush updatedb which does not take an modulename as argument and runs all available updates. Then there is drush pm-...
20
votes
2answers
10k views

Best way to drop a field from a content type

What is the best way to remove a Drupal 7 field from a content type defined via the GUI? I want to use hook_update_N so the changes can be propagated to multiple servers upon running update.php. ...
18
votes
10answers
26k views

What are my alternatives to disable update notifications but without using module Update Notifications Disable?

I need to disable the update notification overall Drupal 7, rather than downloading the module Update Notifications Disable because it caused a fatal error, and the site went down. Is there any other ...
18
votes
7answers
14k views

Can I use PHP 5.5?

With the feature freeze for PHP 5.5 long past, I figured it was time I post an update to the popular PHP 5.4 and Drupal 7 question. So, can Drupal run on PHP 5.5?
18
votes
5answers
6k views

Is it possible to force your module's update hook to run?

I am the author of the Date iCal module, and the new major version I'm working on (3.x) requires a two-part schema update for users who had 2.x installed. I've written the update hook that makes these ...
16
votes
3answers
15k views

How to programmatically remove a field from a node?

How does one remove a field from a node programmatically? I have a migration in hook_update_N that moves the contents from a a field into a custom table. After that migration, I want to remove the ...
16
votes
5answers
6k views

What is the correct composer based core update workflow?

I want to use composer to manage Drupal 8 dependencies, but I'm not sure what is the right core update workflow. At the moment I'm using drush to update core to latest beta release, but I also have ...
14
votes
1answer
13k views

How do I update Drupal 7 Core with only security patches?

I have a old Drupal 7 installation and I would like to update my Drupal 7 to the latest release, but I know for a fact that some of my custom module will break on the latest update. All I want ...
14
votes
4answers
6k views

reseting the hook_update_n status of a module

I'm extending a module I've previously written and it needs some schema changes which I implement in hook_update_N. I've updated the module's version from 7.x-1.0 to 7.x-1.1 and implemented the ...
14
votes
2answers
7k views

What is the purpose of drush entity-updates?

After updating Drupal 8 modules, I have been warned on the Drupal 8 status page that: Entity/field definitions: The following changes were detected in the entity type and field definitions. ...
13
votes
7answers
17k views

How do I call the menu_rebuild function in Drupal 7?

I would like to call the menu_rebuild() function, but I am not sure of where exactly paste the code snippet. I can't find the update.php file anywhere in my local instance. The reason I would like ...
12
votes
7answers
5k views

Drush does not acknowledge release of new core update

I am trying to update my drupal 7.31 core to 7.32 via Drush. I ran the following commands $ drush pm-releases Project Release Date Status drupal 7.x-dev ...
12
votes
2answers
5k views

Resetting/reverting a custom module's update 'N value'

In my custom module's install file I have a hook_update_N function. Let's say it's mymodule_update_7100. However, I've noticed that I've done it wrong and I want to change a line of code within this ...
11
votes
2answers
6k views

Must new tables be created in hook_update_N()?

When you create a new table in hook_schema(), should that table be added in a hook_update_N() as well? Or is there some trick, or something I missed, to have databae-updates automatically add tables? ...
10
votes
4answers
3k views

How to update disabled modules using Drush?

Is there a way to update disabled modules with Drush? Currently, when I try to update a disabled module with Drush, I get this message: Project has no enabled extensions and can't be updated ...
10
votes
4answers
5k views

Ask Drush to list which modules have database updates available

I specifically want Drush to list, of the modules that have available updates, which of those contain database updates. Is this possible with Drush? Edit for clarification: I know drush up will list ...
10
votes
4answers
2k views

How to rerun hook_post_update_NAME()

Drupal 8 introduced hook_post_update_NAME() which has some benefits over hook_update_n, for updating modules. Each hook_post_update_NAME() should only run once, but sometimes I want to rerun it, like ...
10
votes
1answer
2k views

What order should configuration import and module updates be run?

Since the schema version of modules is stored in the key-value storage, it is unique to each site and is not synced through configuration management. That makes sense, since updates may need to make ...
9
votes
4answers
9k views

Update status behind a proxy

I'm running Drupal in an intranet which is behind a simple HTTP proxy. I'd like for the module and core update checks to actually work. I seem to remember there was a core hack to do this on Drupal 6,...
9
votes
3answers
4k views

Automatically update Drupal core/modules for a large number of sites (with Drush)? [closed]

I'm the administrator of a lot of Drupal websites on different hosting providers. Some have drush; others don't (and can't: like shared hosting). Every time there is a Core upgrade, I spend 1 or 2 ...
9
votes
4answers
5k views

Updating core from 8.2 to 8.3 via composer

I am trying to update Drupal core to 8.3 but am running into difficulties. At the bottom of the page is the composer.json file I am starting with. If i change "drupal/core": "~8.2" => "drupal/core"...
9
votes
5answers
3k views

How do you update a Live drupal server without overwriting the contents?

I have a site that is live and people are actively putting in content. However, I have had to make some changes in the development environment, which has taken me a couple of weeks to do. The changes ...
9
votes
3answers
2k views

IIS problem with Drupal - Update manager: Update failed! Directories are locked by php-cgi.exe

I have some problem when using the "Update manager" on the GUI. Some directories get locked by php-cgi.exe, and thus the replacement of the original directories with the newly downloaded ones (which ...
8
votes
2answers
2k views

Can't update drupal core to 7.27

I'm tring to update using drush, with the command drush up, but core is not updating. it says on the drush output: Project drupal was updated successfully. Installed version is now 7.27. but it's ...
8
votes
2answers
1k views

What is the correct way to update existing module's rules programmatically?

I want to provide an update for my custom module, which also has some rules provided via hook_default_rules_configuration. Now, how can I update those existing rules? Can I re-import them? Override ...
8
votes
1answer
3k views

How do I update Drupal core on composer install? [duplicate]

I installed (or downloaded) drupal 8 via: composer create-project drupal/drupal my_site_name 8.0.* Which, at the time I ran it, downloaded Drupal 8.0.1. Now drupal 8.0.2 is available and I'd like ...
7
votes
5answers
4k views

Why is hook_update_N not running?

I am porting a module to Drupal 7. The module has hook_update_N() functions called from hook_install(). There are some insert queries made inside one of the hook_update_N() functions. But my ...
7
votes
4answers
3k views

Right way to update a drupal distribution?

I have a site which is a Commerce Kickstart distribution. My distribution version is 7.x-2.0-rc1 and now the 7.x-2.0-rc2 version is available. How do I update a distribution? I tried these method (...
7
votes
2answers
20k views

How do I update a module manually?

I need to update my Views module in Drupal 7. Drupal won't do it automatically. It says the download is not available. I have downloaded the new version manually, but when I try to install it via '...
7
votes
2answers
7k views

How to update drupal 7.7 to 7.8 manually?

I found that there is a warning on my site saying that manual updates of Drupal core is required. How can I do it safely?
7
votes
5answers
14k views

How can I install modules using the FTP method?

I got a error when trying to install modules. What should I set up for the FTP? I just learned Drupal. Who knows what happen? I am using Drupal 7.7.
7
votes
1answer
682 views

Maintain in-house repository of custom modules?

Whenever a contributed module has a new version, Drupal's update manager will show a notification and allow automatic downloading of the updates. After that, the user is guided through "update.php". ...
6
votes
3answers
2k views

Cannot update: “No available releases found”

I cannot update some of the modules and the Drupal core itself from "Available Updates" menu. The error is "No available releases found". However, I can list the updates with drush ups. Why?
6
votes
3answers
2k views

Get list of available updates

I need to be able to easily get a list of available updates for a site. I've come across the update_get_update_list() function, but that only returns an array of " information about database updates ...
6
votes
3answers
602 views

Can I delete old hook_update_N functions?

Suppose you have a custom module, and you have hook_update_N() implementations in your .install file. If you have old update functions, and all updates have run in all sites that the module is ...
6
votes
3answers
10k views

Is there a way to safely downgrade modules after installing a version that has a database update?

I have a site with a lot of modules running Drupal 7. I just installed a bunch of module updates, ran update.php, and then started running some tests, upon which I noticed that one of the module ...
6
votes
3answers
904 views

Update Drupal Modules - skip a version?

I've neglected a site for a while, and now I need to update some modules that are several versions out of date. Can I just jump to the newest version of the module or do I need to copy each version in ...
6
votes
2answers
10k views

How to programatically update existing user profile field in drupal 7

We are using Drupal 7 and the Profile2 module. We create and add a value to a field in the profile using this code: $profile = profile_create(array('type' => 'main', 'uid' => $account->uid)...
6
votes
3answers
543 views

Can the 'update' module be made less aggressive?

Running an update check on all the installed modules on my site takes quite some time, and sometimes even exceeds PHP's runtime limits. Leaving the module enabled makes using the web based ...
6
votes
1answer
304 views

Best practice when testing module updates

A problem I face on a regular basis is trying to test sites that have recently had a lot of module updates. My usual process is to take each module on a case by case basis and test site features ...
5
votes
3answers
2k views

How to Import features back to database

I have lots of feature modules in my site. I want to import it back to database for upgrade purposes. Any idea how can I do that?
5
votes
1answer
286 views

Why does Drupal say I need to upgrade to 8.0.0 beta 6 when I'm already checked out on that tag?

I followed the git instructions at: https://www.drupal.org/project/drupal/git-instructions to get Drupal 8 : git clone --branch 8.0.x http://git.drupal.org/project/drupal.git . I then checked out ...
5
votes
1answer
308 views

Can we use a hook_update_N for a module without hook_install?

I am working on a custom module which does not have an install file but nevertheless uses a lot of tables. The one who worked on it previously, created the database tables manually. Now I want to add ...
5
votes
1answer
3k views

Is Composer incapable of updating a project that has already been installed from the .zip distribution?

I'm very new to composer, I've only used it to install the occasional necessary library for our D8 projects. At each Drupal update I normally run drush up drupal Which (among other things) replaces ...
5
votes
1answer
1k views

When running DB updates, in what order are module update hooks called?

I'm watching a Drupal 6 to 7 upgrade run, wondering at the order these updates are called. Aside from being in numeric order per each module, it seems that the module updates have been combined and ...
5
votes
3answers
2k views

Site not working after the database update

I cloned a repo of a site to my local computer, imported the database and ran "Composer install --with-dependencies" after the installation had been done I entered the local site and it worked, then I ...