Questions tagged [updating]
Use it for questions about updating Drupal core and contributed modules.
709
questions
40
votes
7
answers
23k
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 only ...
39
votes
3
answers
7k
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 ...
36
votes
6
answers
14k
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
2
answers
25k
views
How can I update from the recommended release of a module to it development snapshot?
I'm currently using the Geofield module, 7.x-1.0-beta2 (released on November 17, 2011). The development snapshot has some functionalities I want.
How do I correctly and safely update to the ...
28
votes
6
answers
26k
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-...
22
votes
5
answers
13k
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 ...
20
votes
2
answers
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
10
answers
28k
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
6
answers
9k
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 ...
18
votes
7
answers
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?
17
votes
5
answers
7k
views
What is the correct 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 ...
16
votes
3
answers
17k
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
1
answer
15k
views
How do I update core to only include 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 ...
16
votes
3
answers
11k
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.
...
14
votes
7
answers
18k
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 ...
14
votes
9
answers
6k
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 ...
14
votes
7
answers
5k
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 ...
13
votes
2
answers
8k
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?
...
12
votes
6
answers
6k
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?
12
votes
5
answers
6k
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
4
answers
4k
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
...
11
votes
1
answer
3k
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 ...
10
votes
4
answers
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 ...
9
votes
4
answers
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
3
answers
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
4
answers
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
5
answers
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
3
answers
3k
views
Update fails because directories are locked by php-cgi.exe
I have some problem when using the Update manager. Some directories get locked by php-cgi.exe, and thus the replacement of the original directories with the newly downloaded ones (which are fresher) ...
8
votes
5
answers
8k
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 ...
8
votes
2
answers
21k
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 '...
8
votes
3
answers
7k
views
How can I install a specific core version?
Composer always installs the latest version of Drupal core, but I want Drupal 8.6, not Drupal 8.7.
How can I install a specific core version?
8
votes
2
answers
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
5
answers
17k
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.
8
votes
2
answers
2k
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
0
answers
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
4
answers
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
2
answers
8k
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
1
answer
713
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
4
answers
3k
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
3
answers
1k
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
2
answers
3k
views
Which table stores info about hook_update_N?
I want to re run same hook_update again. For example hook_update_8005. I am not sure where Drupal put info to track.
6
votes
3
answers
11k
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
3
answers
1k
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
3
answers
555
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
1
answer
316
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 ...
6
votes
2
answers
9k
views
Updating core to a specific version with Composer
My site hasn't been updated for two months, a few new updates has been released.
My site's core version is 8.5.6.
Before running composer update -with-dependencies I read the release notes to the ...
5
votes
1
answer
2k
views
programmatically enable and disable theme from update hook
I need to programmatically update my default theme and disable bartik on a live site. I know I need to update the config. In Drupal 7 I would have used theme_enable(), but I am not sure how to do this ...
5
votes
3
answers
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
2
answers
8k
views
composer update drupal/drupal does not work : Nothing to install or update
I’ve installed several Drupal 8 site with composer as it is strongly recommended.
I can update modules like this :
composer require drupal/pathauto:1.1
But I can't update core with
composer ...
5
votes
3
answers
2k
views
How do I get the last available hook_update_N() for a module?
I'm having trouble getting a custom module to install and update successfully. I'd like to examine the database for the modules update_N numbers. Is that possible? If it is, where do I look for it?