Questions tagged [updating]

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

Filter by
Sorted by
Tagged with
14
votes
7answers
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 ...
35
votes
6answers
13k 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 ...
16
votes
5answers
6k 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 ...
34
votes
7answers
15k 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 ...
15
votes
2answers
8k 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. ...
40
votes
3answers
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
3answers
16k 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 ...
7
votes
4answers
3k 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?
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 ...
5
votes
2answers
1k 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. ...
0
votes
1answer
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 ...
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 '...
16
votes
5answers
8k 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 ...
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 ...
4
votes
1answer
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
3answers
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 ...
7
votes
5answers
5k 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 ...
5
votes
1answer
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
1answer
1k 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 ...
1
vote
2answers
466 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
1answer
858 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 ...
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 ...
2
votes
1answer
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
1answer
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
3answers
443 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,...
0
votes
1answer
757 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: ...
28
votes
6answers
23k 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-...
3
votes
2answers
5k 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 ...
15
votes
1answer
13k 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 ...
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 ...
0
votes
2answers
667 views

Conflict between package requirements when updating to Drupal 8.4

When running composer update, I get the following error: Your requirements could not be resolved to an installable set of packages. Problem 1 - Can only install one of: symfony/yaml[3.2.x-dev, ...
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)...
4
votes
2answers
573 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 ...
4
votes
1answer
1k 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 ...
1
vote
1answer
659 views

Will painless upgrading from Drupal 8 alpha 3.x to beta be possible? [closed]

I'd like to create a website with Drupal 8 Alpha 3. But I'd like to know for sure if it's possible to do a harmless upgrade to Drupal 8 Beta once that it's released. I heard something about the ...
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,...
4
votes
1answer
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 ...
3
votes
2answers
966 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
1answer
624 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 ...
3
votes
1answer
2k 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
2answers
3k views

How to get rid of 'security updates available' warnings?

I am using the ShareThis module on my website. Unfortunately, recent release 2.3 is flagged as a security update, but it is has a major bug (settings can't be saved). I have reverted to release 2.2. ...
2
votes
1answer
248 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
1answer
141 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 ...
2
votes
1answer
763 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() { $...
1
vote
1answer
707 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 ...
1
vote
1answer
2k views

drupal 6 to 7 site upgrade using drush_sup - how to download compatible drupal 7 modules

I used drush_sup to upgrade my drupal 6 to 7 site. everything went smooth except the drupal 7 modules were not downloaded to the upgraded website. During the upgrade process it did list the installed ...
1
vote
0answers
1k views

Drupal failed after update

I just updated Drupal core from 7.4 to 7.26. After running update.php site stopped working – both public and admin part. When I load it fatal error occurs: Fatal error: Call to undefined function ...
0
votes
1answer
300 views

Change target type of entity reference field in update hook

In an update function, I'm trying to change the target_type of an entity reference field, following the approach outlined on https://www.drupal.org/node/2535476). The previously used target entity ...
6
votes
3answers
954 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 ...
4
votes
1answer
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 ...