Questions tagged [updating]
Use it for questions about updating Drupal core and contributed modules.
709
questions
0
votes
1
answer
50
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
67
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
...
-2
votes
1
answer
387
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
145
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
129
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
43
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
105
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
313
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
90
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
34
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
111
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
42
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
1
answer
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
52
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
232
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
592
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
1k
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
756
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
120
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
192
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
109
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
32
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
261
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 ...
-1
votes
1
answer
938
views
Updated from Drupal 8.9.20 to 9.0.0, but can't run update.php due to errors
Here's what I get when attempted to run update.php:
Requirements problem
Errors found
MISSING UPDATES FOR: SYSTEM
The installed version of the System module is too old to update. Update to a version ...
4
votes
3
answers
881
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
116
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
860
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
34
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
342
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
0
answers
86
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
33
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
2k
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
76
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
54
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
110
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
32
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
98
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
261
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
441
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
108
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
257
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 ...
0
votes
1
answer
185
views
Fatal error: Cannot redeclare uc_order_views_data()
After clicking Continue @ /update.php, we receive:
Fatal error: Cannot redeclare uc_order_views_data() (previously
declared in
/home/user/public_html/sites/all/modules/ubercart/uc_order/views/...
0
votes
0
answers
56
views
Unable to access Admin page after core update (minor version 7.? to 7.77)
After manually updating Drupal 7 core - I am unable to access the /admin or /user page.
Here's my process:
backed up db
entered maintenance mode
manually downloaded Drupal 7.77 (deleted default '...
4
votes
1
answer
58
views
List module releases that are "Recommended by the project’s maintainer."
On the project page of a Drupal module there is a list of releases. The project owner can set for each one whether it is recommended, and the page displays that fact. For example if there are ...
0
votes
0
answers
33
views
I updated a contributed module in error
I updated Panels in Drupal 7, forgetting that I had customised it, panicked, deleted the updated module and replaced the correct one via ftp.
Now I can't run update.php as it says the website ...
0
votes
1
answer
1k
views
Problem upgrading via Composer
I am currently trying to upgrade my site from drupal 8.9 to drupal 9. I ran these commands to give permissions:
$ chmod 777 web/sites/default
$ find web/sites/default -name "*settings.php" -...
1
vote
1
answer
811
views
How can I update the name of a taxonomy term using hook_update_N?
I have taxonomy terms of color and I made a typo in one of the color name. It should be 'Crystal Black Pearl' instead of 'Crsytal Black Pearl'. How do I change it using hook_update_N ? Thank you in ...