Questions tagged [updating]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
3k views

Composer shows “nothing to update” but there is a new version of the module

I am managing a Drupal 8 site in Composer. Commerce 2.0 was just released; I currently have 2.0-rc2 installed on my site. This is my composer.json "drupal/commerce": "^2.0@RC", "minimum-stability":...
0
votes
1answer
177 views

No Available release found

On the module update area, my install of 7.56, can seem to find matches to core and a few modules. How do I begin to fix this? What I've tried so far: Based on translating an answer in Cannot ...
0
votes
1answer
1k views

Complicated module update error HTTP error 0 [duplicate]

I'm recently getting the error below: HTTP error 0 occurred when trying to fetch https://ftp.drupal.org/files/projects/captcha-7.x-1.5.tar.gz. Downloading updates failed: Failed to download ...
0
votes
1answer
429 views

How update programmatically node entity with empty field_image?

i need to make an import from one mysql table in my base. I create node with : $value= array( 'type' => strtolower($typeProduit), 'field_1'=>"test", ...
4
votes
1answer
1k views

How can I upgrade ONLY Drupal core with composer?

I knew that Drush make files were being phased out, but I kept using them, because in my opinion Composer isn't the best package manager in the known universe. It updates too much or too little, has ...
1
vote
1answer
460 views

Adding a new dependency to a module

As a module maintainer, I want to add a dependency to one of my existing modules, so that my entity can use a field type plugin declared by the dependency. What steps do I need to take to make sure ...
1
vote
0answers
209 views

ApcClassLoader.php completely breaks site on module update

I am working on a site that has installs on 3 different environments: a local development copy on a Windows machine, a staging copy on a Linux machine, and a production copy on a Linux machine. All of ...
2
votes
4answers
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: ...
0
votes
1answer
36 views

How can I rebuild my installation after attempting to manually update D8 core using D7 instructions?

After following the manual update instructions linked from the download page for Drupal 8.3.4, I got a "The website encountered an unexpected error. Please try again later." This is when I noticed ...
-1
votes
1answer
50 views

Finding out version, and updating to latest stable core version

I have inherited a site that uses Drupal, but I've not had any experience with it before. I'm trying to move it over to a server that has PHP 7 on, but I get all kinds of errors: warning: ...
0
votes
1answer
48 views

Did the updated module actually update?

Just performed an update to Drupal 7.56. In the process I updated all modules, including Google Analytics. The weird thing is that on my machine, where I performed the update, Google Analytics updated ...
1
vote
1answer
699 views

How long will the previous core version supported? [closed]

I want to start a new project at the beginning of 2018 but I don't know if it is better to start this project with Drupal 7 or Drupal 8. Actually, I am not familiar with Drupal 8 coding and template ...
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 ...
0
votes
2answers
553 views

Core listed as outdated, but composer is not updating it

I'm facing a strange issue with drupal-composer. It has been installed via the usual command line: $ composer create-project drupal-composer/drupal-project:8.x-dev ./ --stability dev --no-interaction ...
1
vote
0answers
287 views

Cannot run an update: entity_test module is missing

I've got this error after trying to update to the last Drupal 8 (8.3.2): Drupal\Component\Plugin\Exception\PluginNotFoundException: The "entity_test" entity type does not exist. dans Drupal\Core\...
1
vote
0answers
34 views

How do I merge composer manager composer.json with core 8.3 composer.json?

I was using Drupal 8.0.5 site with composer manager. Now I want to upgrade core to 8.3.2 which comes with composer. Composer Manager asked me to uninstall this module, as it is no longer supported ...
0
votes
1answer
59 views

Do I have to update to 8.3.0 first before I can update to latest stable release?

I pritty messed up my site by updating my 8.2.6 site as followed. Step 1: I edit my composer.json file. I replaced the replace to require "replace": { "drupal/core": "~8.3" to "require": { ...
0
votes
1answer
11 views

Disable email updates alert on expired domain

As per question, my domain already expired for over months now and im not planning on using it anymore but i keep getting the modules updates email alert coming from the domain. How can i disable it ...
1
vote
1answer
495 views

Getting configurePhpcs is not callable after update drupal to 8.3.2

I updated drupal with composer composer update Drupal is updated to 8.3.2 but when I install modules I get anytime this message Method Drupal\Core\Composer\Composer::configurePhpcs is not callable, ...
0
votes
0answers
48 views

How do I get core to detect when a module adds a new service?

I created a module that we are using internally for at least two projects. I pull it in via Composer and it ends up in modules/contrib. The first install went great, but now I have added a few ...
1
vote
2answers
326 views

Updates for custom module not showing in update.php list

I've created a custom module for my Drupal 7 website, under sites/all/modules/custom/tm_general which has the following updates in the tm_general.install (please see image attached). The site is ...
1
vote
1answer
152 views

Strange symptoms after Drupal 8 core update

I'm new to Drupal 8. After updating D8 Core to 8.3.2 when I try to access Block Configuration Page, I get this error: Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.block....
0
votes
3answers
3k views

Update fails with undefined function system_rebuild_module_data in update.inc but the function is defined in system.module

When I run drush updb on my Drupal 8.3.1 site, I get: PHP Fatal error: Call to undefined function system_rebuild_module_data() in /var/www/mysite/web/core/includes/update.inc on line 46 ...
0
votes
0answers
33 views

Drupal fails to run update.php when new services have been introduced and depend in inactive module

In production environment I have an active module that in a new deployment has changes to the mymodule.services.yml file. This new services file points to services located in an inactive module. I ...
3
votes
2answers
3k views

How to apply database updates once the module is installed and after a new entity has been created?

I have installed custom module. Then created entity: content type with drupal generate:entity:content Now, I'm trying to update the module, so that the entity is installed, but no clue. Since code ...
1
vote
1answer
220 views

Drupal 7: Is hook_update_N() called when a module is updated between minor versions?

Say I'm trying to update a module from version 7.03 to 7.04, and version 7.04 has a function called mymodule_update_7704() which updates the module's schema. If I go to the modules page and update ...
1
vote
1answer
35 views

Really confusing composer error output relating to working composer.json/.lock files

Warning: this may come across a little ranty! Up until version 8.3.0, I thought I had solved all my drupal + composer related issues. With the following in composer.json: "require": { "drupal/...
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. ...
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"...
0
votes
1answer
178 views

Module can't update after updating core

I updated my Drupal 8 website from 8.2 to 8.3. I have a module that has a block and includes a configuration form which has various data form fields. The block of the module appears to work fine. ...
-2
votes
1answer
143 views

Error after updating?

I am updating a development environment; after updating to Drupal 8.3.0, I can't access /user/login. These are the errors from my log. [Mon Apr 10 15:57:50.142266 2017] [:error] [pid 22325] [...
0
votes
1answer
279 views

Is there an automatic way to convert old versioning conventions?

Background I'm applying updates (including security updates) to a Drupal 8 site. Problem When I run composer update, I'm getting the following error multiple times: The requested xxxxx package ...
0
votes
1answer
27 views

Drupal module Date 2.7 update - Database Table name

I just updated the Drupal7 module Date from 2.9 to 2.10. There is a database table update that acccompanies that module update. What is the name of the database table that is updated? (or can you ...
0
votes
2answers
1k views

update 8.2.7 to 8.3.0 with composer [closed]

I want to update with composer (running the drupal composer drupal project), and already succesfully updated 8.2.6 - 8.2.7, but now it doesnt update to 8.3.0 $ composer update drupal/core --with-...
4
votes
1answer
133 views

What does -1 signify in system.schema_version?

The Drupal 7 {system} table has a schema_version column. Its default value is -1 as indicated by the DESCRIBE system; MySQL command. Sometimes an update function won't run if the module's ...
0
votes
1answer
436 views

How to update drupal (with composer) and not update to the latest major drupal release

not very familiar with composer yet I run composer update on a dev version (thank GOD) but from 8.2.6 drupal was updated to 8.3.0 but some functionality was broken due to the upgrade ... how can I ...
0
votes
2answers
39 views

Changing node values directly to database exhibits erratic behaviour

I needed to create a new field for each node in my website that would have as its value a concat of two existing fields. I firstly inserted the new rows in the newly created field table, and then ...
0
votes
1answer
259 views

Custom module update with project status url

My .info file is the following. name = {some_name} description = This will contain all {some_name} related information package = {Package_name} core = 7.x ; Information added by Drupal.org packaging ...
3
votes
3answers
213 views

What will happen if a custom module has the same name as a contrib module?

What are the consequences of two modules sharing the same machine name? For instance, if I write a custom module named 'views' and do not have the contrib module 'views' enabled, will the update ...
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?
2
votes
2answers
41 views

Create a field (defined within same module) during module installation?

Having this code: function mymybase_update_7200(){ if(!field_info_field('field_timer_exam')){ $field = [ 'field_name' => 'field_timer_exam', 'label' =>...
1
vote
0answers
526 views

How to update a field on a Custom Block Type?

I want to update a field on a Custom Block Type in an update hook. I've seen examples updating fields on nodes, but it appears this doesn't work on block fields, which is surprising. function ...
3
votes
3answers
925 views

How to create a field with hook_update?

I want to create a field with hook_update in my module. I have the following code that creates the configuration for a field_link field: $module_path = drupal_get_path('module', 'my_module'); $...
2
votes
1answer
377 views

Remove row from system table with hook_update_N

I've run into some trouble writing a hook_update_N function that will remove a row from the system table. Can anyone point me in the right direction? Finding little documentation..
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 ...
3
votes
2answers
1k 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.
2
votes
1answer
111 views

How do I push module update in a cached production environment?

I don't manage to update Flag module in remote server, while it worked like a charm on local environment. The stage site is cached with Zend opcache, Apcu, Varnish and Redis. I suspected Opcache was ...
0
votes
1answer
93 views

Drush pm-updatestatus No JSON output on success

My sites are running Drupal 7, Drush 8.0.3. I'm creating a dashboard to check what core and module versions my Drupal sites are running (they're all on the same server). I use a shell script to get ...
1
vote
0answers
51 views

error on update

I just updated from Drupal 8.1.x to 8.2.5 manually, I delete core and vendor folders first, and all the roots files from my instalaion, but When I try to acces the update.php I get this error, Fatal ...
3
votes
1answer
184 views

How do I update Drupal Distribution (Commerce Kickstart) on shared hosting environments?

We currently run a Drupal Commerce site from GoDaddy C-Panel shared hosting environment. I created the site with Commerce Kickstart and am now several distribution updates behind. If that's the ...

1 2 3 4 5 13