Skip to main content

Questions tagged [updating]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
221 views

RewriteBase and Administer software updates permission not working

User 1 is unable to run /update.php, with the error: In order to run update.php you need to either have "Administer software updates" permission or have set $settings['update_free_access'] ...
0 votes
2 answers
980 views

Drupal database not found after running update.php

after installing a module I run update.php and then click take me to front page or take me to admin pages the page takes a while to load and eventually gives me the following error: PDOException: ...
0 votes
1 answer
461 views

Updating core to 8.9.6 fails

I'v installed Drupal 8 by composer. Everything worked fine, but when I tried to update core from 8.9.1 to 8.9.5 in ended up in 8.9.4. Today I tried to update from 8.9.4. to 8.9.6 by changing composer....
0 votes
1 answer
419 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 ...
0 votes
0 answers
75 views

Updating to 10.2.6 fails "autoconfigure" on core

https://stackoverflow.com/questions/78548043/drupal-updating-to-10-2-6-fails-autoconfigure-on-core Link to stackoverflow i opened. I still have the issue, while trying to upgrade to 10.2 or 10.3 . I ...
2 votes
1 answer
903 views

Unable to Update to latest core

Update from 8.5.0 to 8.5.1 is failing on one of my drupal instance. >composer update drupal/core --with-dependencies Loading composer repositories with package information Updating dependencies (...
0 votes
1 answer
910 views

Error while accessing admin section

I am facing the following error while trying to access Admin section in Drupal 8 (WAMP Server). I tried to install the Update manager module and from then I am facing this error. I am unable to access ...
0 votes
1 answer
917 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", ...
0 votes
1 answer
698 views

Update script fails due to Service capacity

I am trying to update the core of my Drupal site. I neglected updates for some time and the update script had 19 updates pending. Apperently the update script tries to do all of this in one go, and ...
-3 votes
1 answer
100 views

drush updatedb fails to complete: Bootstrap fails at phase 5, can't find Drush config file

Trying to use drush updatedb after running core updates. Updatedb fails. Code snippet below. EDIT: Project: Website built by 3rd party firm and handed over to my department after the contract to ...
4 votes
1 answer
3k views

What is the best practice for handling abandoned packages required by the drupal core?

When I run composer update on a Drupal 9 website, I get this warning: Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead. A similar question has ...
1 vote
2 answers
2k views

Error: Class 'Drupal\mysql\Driver\Database\mysql\Connection' after Drupa 9.3.14 to 9.4.1 update

I tried to update from Drupal 9.3.14 to Drupal 9.4.1. Everything went well in our test environment. I put the production site in maintenance mode, updated all the files for the update, successfully ...
15 votes
8 answers
7k 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
1 answer
137 views

Undefined index: php in system_requirements()

Whenever updating modules on an existing Drupal 7 site, I got lots of these error messages Undefined index: php in system_requirements() (line 471 of xxxx/modules/system/system.install) The code at ...
1 vote
0 answers
227 views

"You have requested a non-existent service 'callable_resolver'"

When I update from Drupal 10.1.7 to Drupal 10.2, the website doesn't work anymore and shows the following error message. The website encountered an unexpected error. Try again later. Symfony\...
0 votes
1 answer
134 views

Subtheme update

An update has become available for a given theme (Bootstrap Barrio). I had configured the previous release into a subtheme. How can I update the subtheme, or at least make a new subtheme of the ...
0 votes
1 answer
402 views

I can't upload images

I can't upload images with CkEditor 5 in my Drupal 10.1.6 website (which runs on PHP 8.2); all the other features work fine. In my recent upgrade of Drupal, I switched directly from Drupal 9.4 to ...
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 ...
0 votes
0 answers
80 views

How can I securely make a minor update?

Once in about a month I make a minor update using the following commands. cd website_directory chmod u+w web/sites/default composer update vendor/bin/drush updatedb vendor/bin/drush cache:rebuild ...
7 votes
3 answers
3k 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?
5 votes
6 answers
2k views

How to get the installed version of a module?

We have a "MyModule" module, which has a mymodule.install. Inside the file, there is mymodule_update_8001, 8002 ... etc. How can I tell programmatically that on which version the module has at the ...
2 votes
1 answer
258 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 ...
1 vote
1 answer
381 views

Checking Available Update data - AJAX error

I'm having problems with a local site that I imported to Acquia Dev desktop from one of my live sites. Everytime I try to Check for Available Update data, I get an Ajax error Error Checking Update ...
1 vote
1 answer
269 views

States on input type button broken since core update

I've updated my Drupal project from 9.5.3 to 9.5.7, but the submission button's #states property stopped working. $form['actions']['submit'] = [ '#type' => 'submit', '#value' => 'Accéder au ...
0 votes
1 answer
509 views

Issues updating from 9.4.3 with composer

I have a project that wasn't updated since a few months and I am stuck on 9.4.3 with composer refusing to update. Here is my composer.json { "name": "drupal-composer/drupal-project&...
17 votes
3 answers
12k 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. ...
0 votes
0 answers
115 views

Issues updating opigno_lms from 2.16.0 -> 2.29.0 -> 3.x using composer

Having an issue with updating an old Opigno server from 2.16 to 3.0 via 2.29. For those unfamiliar, it's a distribution of Drupal that has some extra features for lessons, courses, etc. When ...
0 votes
2 answers
8k views

Unresolved dependency error when updating

I Tried updating 2 different sites and both gave error messages saying "Unresolved dependency" missing from different modules. The pages no longer load on the site saying Fatal error: Call to ...
0 votes
1 answer
219 views

Modules are not updating to the latest version

I have some websites in the drupal. I need to update the security modules in the old version to the latest version. The list of security modules I tried to attempt is as below 1)colorbox (current - v2....
0 votes
1 answer
44 views

Why fails the comparsion between two identical version numbers in this script?

I try to compare in a Script two different version numbers of Drupal via drush status. The result should be printed out in a if-else. I made a minimal example: # put paths in vars WEBSITE_ROOT_LIVE=/...
0 votes
1 answer
728 views

Is there any replacement module for token actions and token starter modules in D7?

I am using TokenActions and TokenStarter modules in my one of the project which is in D6. Now, I have planned to upgrade it into D7. I have found the D7 version of Tokens module but I didn't find ...
2 votes
1 answer
1k views

Drupal incorrectly reporting that permissions need to be set on settings.php

I've updated a site to v8.5.3. Checking the status report I have various messages. One says: Not protected Protection disabled The file sites/default/settings.php is not protected from ...
0 votes
1 answer
590 views

Database update doesn't work after update from 9.2 to 9.3

I have unfortunately not found anything that seems to solve my issue. My Google-fu may be defunct. I have upgraded a Drupal site from 9.2 to 9.3. This works as expected with composer (I use drupal/...
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 ...
0 votes
1 answer
35 views

Impact of not doing these updates on the CMS [closed]

[ Hello, I am a new hired and tasked to manage a vendor who is supposed to update our website. They have not been doing so, I am not technical enough to know whether these Drupal updates will have a ...
2 votes
0 answers
337 views

Updating modules creates An AJAX HTTP request terminated abnormally error

Drupal 7.77. I have three modules that need to be updated. Trying to update any one of them results in this error: An AJAX HTTP request terminated abnormally. Debugging information follows. Path: ...
-3 votes
1 answer
131 views

composer drupal-core update fail because of zetacomponents/mail patch

I try to update a Drupalmachine on 9.4.5 site via composer 2.4.1. ~/bin/composer.phar update drupal/core "drupal/core-*" --with-all-dependencies (see below for composer.json) first try i can ...
0 votes
2 answers
459 views

How can I use hook_update_N() to update a FieldConfigStorage?

This is the code I am attempting to use to update a content type with a new field. When I run drush dbup I get this error. PHP Fatal error: Using $this when not in object context in ...
0 votes
2 answers
1k views

Issues with updating modules on Drupal 7

I have a Drupal 7 website that I upgraded from Drupal 6 awhile ago. I am trying to upgrade some of the modules that have had updates since then, but I am having issues doing so. When I click the "...
0 votes
2 answers
51 views

How do I find out which system.info my site is using?

I have 3 sites using the same host. I have updated them from 7.89 to 7.91 however only one site shows as using 7.91. I have hunted my host files for a system.info with 7.89 without any luck. Where do ...
0 votes
1 answer
1k views

Why is composer refusing update 9.4.3 -> 9.4.5

I am trying to update drupal core from 9.4.3 to 9.4.5. Can anyone see why it is not working? I executed composer update -W drupal/core* and it updated drupal/core-composer-scaffold and drupal/core-...
5 votes
4 answers
2k 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'); $...
0 votes
1 answer
53 views

How to prevent 'drush up' from deleting non native inodes in a sub-theme folder?

I installed the Basic theme, ran drush up, updated this theme. Once done, the sub-theme folder I created was deleted. Is there something to do to prevent Drush from deleting a directory?
1 vote
2 answers
76 views

Unable to display images after Drupal Update

I recently updated my site to Drupal 7.34 using these instructions - https://www.youtube.com/watch?v=_uDTyzE47pQ After update, I am not able to see the images in the site. All I see is the ...
0 votes
2 answers
392 views

Additional old_XXXXXXtaxonomy_term__field_XXX Tables after upgrading

After Upgrading from Drupal 8.6 to 8.7 I have tons of new (garbage?) tables in the database. The naming schema for the tables is old_XXXXXXtaxonomy_term__field_XXX Is there a drush command to remove ...
0 votes
0 answers
56 views

Module is required but can't uninstall because incompatible with core

I seem to be stuck with with a catch22, I updated from Drupal 8 to 9 and now I'm getting an error on many admin pages: 'The module t7_starbase does not exist or is not installed.' drush pm-enable ...
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 ...
-3 votes
1 answer
394 views

Error while updb, how to debug it?

I've updated opigno_lms to 2.29 version without any problems by composer and then "drush updb", then installed 3.0.2 version through composer, but "drush updb" gives me: [notice] ...
2 votes
1 answer
866 views

Shouldn't hook_update to add a new field to an entity use the field definition from the entity class?

I was writing an update hook to add a new field to a custom entity and was following the pattern shown here https://www.drupal.org/node/2554097 /** * Add 'revision_translation_affected' field to '...
0 votes
1 answer
2k views

Migrate PHP version - The "" plugin does not exist

I'm using Drupal 9.3.11 on PHP 7.3. Site is running perfectly. I need upgrade to PHP 8, but I am getting this error. Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin ...

1
2 3 4 5
15