Questions tagged [updating]
Use it for questions about updating Drupal core and contributed modules.
715 questions
-2
votes
0
answers
18
views
Pantheon updates show success, but modules still outdated in admin interface. Any idea why?
I used the Pantheon Dashboard to run updates to my Drupal 10 site. It reported that all updates ran successfully. And yet, when I go to my Drupal site's module update page (/admin/modules/update), I ...
0
votes
0
answers
102
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 ...
-3
votes
1
answer
179
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 ...
0
votes
1
answer
192
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
274
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
208
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 ...
1
vote
1
answer
519
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 ...
0
votes
0
answers
83
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
...
0
votes
1
answer
557
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&...
1
vote
1
answer
295
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
264
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=/...
1
vote
0
answers
238
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
1
answer
682
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/...
0
votes
0
answers
129
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
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 ...
-3
votes
1
answer
142
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
52
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-...
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 ...
0
votes
0
answers
59
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 ...
-3
votes
1
answer
423
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
966
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 ...
-2
votes
1
answer
849
views
How can I install centreon/centreon?
My website is built with Drupal 8.3.2. I want to update to to Drupal 8.9.x, but I don't want to move to Drupal 9.x. I ran the following command.
composer update drupal/core-recommended:8.9 --with-...
2
votes
0
answers
133
views
How can I update an entity with a .yml file?
I see that EntityDefinitionUpdateManager::applyUpdates() has been removed.
Every time I add a new field to a .yml file or I add a new node.type.yml to the configuration directory in a module I am ...
1
vote
0
answers
235
views
Update.php gets "The page isn’t redirecting properly" error page
I recently moved our site to a new hosting company. After uploading all the files and importing the database I get this notice when I try to Run Updates and/or accessing the update.php page.
The ...
1
vote
2
answers
133
views
security updates reported but not actually available (recommended==installed)
I installed Drupal 9.3.6.
At /admin/reports/status, I see the error:
There are security updates available for one or more of your modules or themes
and at /admin/modules/update, two modules are ...
0
votes
0
answers
35
views
Mismatch in php version status vs php -v [duplicate]
I have multiple versions (7.2 and 7.4) on my ubuntu box and recently set the server to use 7.4 so that I could upgrade Drupal from 8.9 to 9.x.
Drupal reports/status shows my php version as 7.2, where ...
0
votes
0
answers
33
views
Upgrade notification urge me to "upgrade" a module to the currently using version
The below image is in Chinese so you might not understand. But in this screen, Drupal urge me to install PHP (PHP filter) version 8.x-1.1 while showing the currently installed version already is 8.x-1....
1
vote
1
answer
352
views
How do I update a Lightsail server?
I have decided I want to learn Drupal. To that end, I fired up an AWS Lightsail server with a Drupal site, to play around with. Having taken AWS's default Drupal 9 install and logged in, it is ...
4
votes
3
answers
912
views
Module is not longer supported on Drupal 8 but requires 8?
I'm updating a Drupal 8 site that hasn't been touched in about a year (just updated to 8.9.12). One of the module updates is Menu Token.
The module page reads:
Drupal 7.x and 8.x versions
No longer ...
1
vote
1
answer
119
views
How do I switch from a recommended release to a development snapshot?
Is there a non-Drush, Ludwig way to switch from the recommended release of a module to a development snapshot in Drupal 9, for example copying the development snapshot files and run update.php?
The ...
-3
votes
1
answer
942
views
Upgrading from 8.9.19 to 9 fails because of root composer.json require (^8.8.0)
My upgrade is failing. I am at 8.9.19 and I used upgrade-status to make sure all my modules are compatible with next major core version. I am following instructions at https://www.drupal.org/docs/...
0
votes
0
answers
48
views
Ajax message after node save
I am trying to add a Ajax Alert or popup message inside a hook_node_presave or hook_node_update, but it is not working.
My current code look like this, but I have tried a lot of other ajax
$response = ...
1
vote
1
answer
464
views
Fatal error: Cannot redeclare Drupal\views\Routing\ViewPageController::getTitle()
I have updated Drupal 9.0.1 to 9.2.2 via Composer. After updating, I am getting a fatal error.
Fatal error: Cannot redeclare Drupal\views\Routing\ViewPageController::getTitle() in /var/www/html/...
0
votes
1
answer
262
views
How to update a module in production?
I am using git to deploy my composer.lock to production. Contrib is not part of my git repo. Therefore, in production I then run composer install to add contrib to production.
What happens when I ...
0
votes
0
answers
104
views
Upgrading core from 8.7.10 to 8.9.16
My current site version is running on Drupal 8.7.10 and I want to upgrade it to 8.9.16.
I backed up all the files and folders. Should I backup the Pathauto module, update the new Pathauto module, and ...
0
votes
0
answers
34
views
Update installs a beta version [duplicate]
I'm trying to update Drupal from 9.1.8 to 9.1.9. However, running a composer update jumps to 9.2-beta2. I'm not sure how to fix it so that it sticks to the recommended version.
My composer.json has ...
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 ...
0
votes
0
answers
83
views
Swiftmailer prevent composer updates
I have an issue with composer and Drupal 8.9.13. When I try to update Drupal, I always get the next error and I don't find a way to solve it:
#$> php -d memory_limit=-1 composer.phar update drupal/...
0
votes
0
answers
79
views
Adding a new view to an existing module
I am trying to add a new view to an existing module. I created the view using Views UI and exported its YML to the 'config/optional' folder. If I install the module for the first time, the view is ...
2
votes
1
answer
130
views
Which releases are supported with semantic versioning of modules?
I have a site running Drupal 8.9.13. I have enabled email notification for "only security updates" and it generally works well - I get a mail for "urgent things" otherwise I wait ...
0
votes
0
answers
34
views
Issues with manual update from 7.77 to 7.78 on cPanel with PHP 7.4
I have been manually been doing Drupal 7 and 8 updates on cPanel for many years. I carefully read what files need to be updated and what files need to stay.
Recently, there was an update to PHP 7.4. I ...
0
votes
0
answers
117
views
After the update 8.7.14 to 8.8, the File module causes error when uploading a file
After updating Drupal 8.7.14 to 8.8, I have a problem with the File module: When I upload a file, I get the This value cannot be zero error message.
The file is however present in the site/default/...
3
votes
2
answers
312
views
When "drush updatedb" is executed, are scripts cached by OPCache invalidated?
For sites that have PHP OPCache enabled:
Does updating site using Drush require restarting the webserver to invalidate the scripts cached by OPCache?
Does Drupal core or Drush invalidate OPCache ...
0
votes
0
answers
506
views
Failed to update database after upgrading to 8.9.13
I'm new to drupal and was recently tasked with upgrading the drupal core version of one of our sites. I upgraded from 8.3 to 8.9.13 and everything went smooth enough until it came time to update the ...
0
votes
0
answers
111
views
upgrade from 8.9.2 to 9.1.0
I have a drupal 8.9.2 installation with many modules.
I ran upgrade_status and applied patches or upgraded modules to dev version like suggested.
fhebert@fhebert-communication:/var/www/domain.com$ ...
2
votes
0
answers
361
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: ...
1
vote
0
answers
1k
views
Issues updating core to 9.1.2 with Composer
On my local site, I had updates for 2 modules and Drupal core. To update, I typed in composer update, which had worked for me previously just fine.
Composer indicated everything updated, although on ...