Questions tagged [updating]
Use it for questions about updating Drupal core and contributed modules.
66
questions
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 ...
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 ...
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 ...
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 ...
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.
...
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?
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 ...
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 ...
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 ...
5
votes
2
answers
2k
views
Updating core with Composer doesn't work
I am on D 8.3.0-rc2 and want to update to D 8.3.0 stable. Composer is my only option (requirement of address module). Composer core update doesn't bring me beyond 8.3-0-rc2, not even forcing it. ...
1
vote
2
answers
501
views
8.5.6 Update not being recognized
I converted a Drupal 7.xx site to Drupal 8.x manually. Updated it to 8.4.5 and tried to use composer to update it to 8.5.6 (Latest stable release). I have the original site as the public_html/drupal ...
0
votes
1
answer
1k
views
How do I update core to 8.5?
After I realized that the thing I mostly enjoyed using Drupal for the last 10 years, Drush, is being axed, I started to set up all new Drupal sites with Composer. Unfortunately I can't update core as ...
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 ...
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 ...
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 ...
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 '...
5
votes
1
answer
1k
views
Set Update Manager to install to sites/all/modules/contrib?
I am able to use Update Manager to install new modules, instead of having to manually upload them. I previously put everything in sites/all/modules, but now have reorganized my modules into sites/all/...
4
votes
1
answer
2k
views
Should a site be in maintenance mode when running the Drush Up command?
I'm not asking if I can update my website with Drush. I'm not asking if Drush can make it in maintenance mode.
My question is ... if I'm using the command drush up to update my Drupal core or a ...
4
votes
1
answer
3k
views
Drupal queue / update module
I have a Drupal 7 site and the queue table has over 4K records. They are primarily for the "update_fetch_tasks" queue. Is the queue table by nature a temporary place holder?
I would like to clean it ...
3
votes
3
answers
5k
views
Updating core to a newer version
I can update Drupal 7 websites core with following instruction from "How to update Drupal core".
Make a backup of your Drupal instance (database). (For ex: with MySQL)
Download the latest release of ...
2
votes
1
answer
1k
views
How can I exclude folders when updating drupal using drush?
How can I use drush pm_update and exclude some folders? For example, I don't want to update Sites and Profiles folders.
2
votes
1
answer
1k
views
Drush: Update core from stable to dev
I would like to upgrade from drupal core 7.7 to 7.x-dev, is this possible using Drush?
UPDATE:
Ok, looks like either I needed Drush 4.5, or the process of updating Drush from 4.4 corrected something ...
0
votes
1
answer
937
views
Trying to add a column of Mysql timestamp through hook_update
I was trying to add the column of MYSQL Timestamp to the Database Table, the Query seems to be working correctly in mysql console.But when I execute the same in db_query() the following error is ...
0
votes
1
answer
771
views
Updating core from 8.4.4 to 8.6.1
I want to update Drupal from 8.4.4 to 8.6.1. I've tried to follow the steps from this page, but without success. When I run this command:
composer update drupal/core --with-dependencies
I get:
...
0
votes
3
answers
551
views
How does Drupal know when to run an update script?
How does Drupal 8 know what module needs updating and to what version he needs to update?
I have build a module and I'm trying to update it (adding a table). I implemented a update hook numbered 8001,...
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-...
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 ...
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 ...
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,...
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 ...
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 ...
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
2
answers
11k
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)...
4
votes
1
answer
2k
views
Putting new configuration files in module hook_update_N upgrade?
If I release a new version of a module, and want to include new configuration in the new version (particularly new fields, and updates to views to rely on those fields) by either making Drupal update ...
4
votes
1
answer
1k
views
Is it normal that a site changes to maintenance mode during a module update?
I have created a custom module with a .install file, which includes some hook_update_N() hooks, used to update existing nodes.
Whenever I run drush updb, the site automatically enters maintenance mode ...
4
votes
1
answer
2k
views
How do I change the type of a field attached to a content entity?
So I've been banging my head against this for a few hours, and I'm probably going to give up and just uninstall/reinstall the module (and update the View that relies on the old entity_reference field ...
4
votes
1
answer
2k
views
RSS feed not updating using feeds module
I have an RSS feed that has not been updated after the initial import. I actually managed to get it to update once using cron, but even that has since stopped working. Looking at the original feed, I ...
4
votes
1
answer
1k
views
How to remove "pending update"?
I updated a module, ran update.php, made some edits and backed up it's table for migration. And then HDD on server failed. Admins restored it from nightly backup, and from my backup as well (both was ...
4
votes
2
answers
578
views
How to manage version control for patched contrib modules?
I got some great feedback regarding patching contrib modules.
Is there a good way to keep track of patches to contrib modules?
For example, let's say I create a patch for a contrib module and submit ...
3
votes
2
answers
983
views
How to update Drupal securely using GUI/web interface
The admin/reports/updates/update page lists updates, and there's what looks like a handy button Download these updates at the bottom.
And then you're asked for your SSH user and password.
Now unless ...
3
votes
1
answer
3k
views
How to update the database schema without losing existing data
I have a custom module with my_module.install file defining my two data tables in mysql. Module is already installed and I am able to save data from forms into them. Now my requirements changed and I ...
3
votes
1
answer
3k
views
Installing an alpha dev version with composer
Block class module has a 8.x-1.x-dev version. Installing using the recommended command from the specific release page
composer require 'drupal/block_class:1.x-dev'
installs a versionless ...
2
votes
1
answer
906
views
How to update a module's view programmatically using hook_update_n?
We're writing some update functions for a custom module. This custom module provides some views:
/**
* Implements hook_views_default_views().
*/
function mymodule_views_default_views() {
$...
2
votes
1
answer
257
views
Why doesn't core get updated to 8.5?
I am trying to update via Composer following what reported in Update core via Composer, but when I do composer update drupal/core --with-dependencies, I get the following output.
Loading composer ...
2
votes
4
answers
7k
views
How do I update core to 8.4?
I checked the other questions related to this topic, but half of them didn't get any useful answer and the other half didn't help me out.
I face with several issues building up a site using Drupal 8:
...
2
votes
1
answer
3k
views
Why am i getting this Drush error after updating a site? [closed]
I use Drush 8.1.17 to update my Drupal 7 sites, and as I have been updating my sites today after the latest security update I have noticed that after I update a site if I try to run any update related ...
2
votes
1
answer
4k
views
Using field_create_field and field_create_instance to add a checkbox to a content type
I've written the following update hook to add a field to a content type. In an ideal world I'd like that field to be a single on/off checkbox. However, the code I've written outputs three radio ...
2
votes
2
answers
787
views
Drupal Commons 3 and Original Drupal Core Updates
I'm may be planning to switch over to Drupal Commons 3. When the original Drupal core gets security updates, will I be able to get those updates in the Drupal Commons or do I have to wait for Drupal ...
2
votes
1
answer
159
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 ...