Questions tagged [updating]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
998 views

Update query not working for db_update and db_query("update

I'm trying to update a field using the Drupal's bootstrapped db_update or db_query library functions for PHP. However, neither of them are working. IF I RUN THE QUERYS MANUALLY, THEY WORK. These two ...
3
votes
1answer
111 views

Update a module and “is outside” error

I have a new installation of Drupal 7.52 on a Windows server and during the update of some modules I receive that /websites/mydrupalroot/.... is outside from /website/mydrupalroot! I found this ...
0
votes
1answer
55 views

Error trying to update database after module update

After I update a module, and click at http://omroepzuidplas.nl/admin/update/ready on the 'run' button to do the database updates. Drupal sends me to this url: http://omroepzuidplas.nl/http%253A//...
4
votes
3answers
2k views

“Unknown engine type outputformat”

I did a Drupal 7 update using drush up and received the following message, repeated numerous times: Unknown engine type outputformat Since that update, Drush does not work, but rather returns the ...
14
votes
2answers
7k 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. ...
-1
votes
1answer
39 views

Error after updating

I recently updated to Drupal 8.2.0 from 8.0. Updating was successful, but the Status report page shows this error. How can I solve it?
0
votes
1answer
46 views

Noitifications about security updates keeps coming after the update is done

I have updated to core version 7.52 and I also ran the database updates accordingly. So why do the notifications keep coming? I have set the update check to be done once a day, and every morning I get ...
1
vote
1answer
69 views

Are there any easier ways to update a site than following the official instructions? [closed]

For tech people (like sys admins) the are the official instructions about How to update Drupal Core for how to update a site. But what if the user is inexperienced and just wants to maintain the site ...
0
votes
1answer
73 views

Drupal core update

I had a message that Drupal 5 was no longer supported and to update to Drupal 5.1. I went to drupal.org to see how to back up and install manually as I was instructed, and I followed the instructions ...
2
votes
1answer
1k views

Drupal\Component\Plugin\Exception\PluginNotFoundException after upgrading drupal

I tried to upgrade from version 8.0.x to 8.1.x. I used drush with the command drush up drupal. The output shows some errors: Do you wish to run all pending updates? (y/n): y The "...
0
votes
2answers
468 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
1answer
37 views

How do I update HTML content

We have a website that is linked to a drupal database. I need to update some HTML text and could not find the file on our server but did find the content in two tables in the drupal DB: dbo....
0
votes
1answer
209 views

Updating a taxonomy term, with extra fields - taxonomy_term_update does not exist

In Drupal 7, I am trying to update and delete some taxonomy terms in the proper way. So, instead of attacking the database directly, I am using taxonomy_term_delete for deleting by tid. However I ...
0
votes
2answers
589 views

Drush 8 issue under Linux: 'drush up' ends with 'pm-updatestatus failed' while 'drush ups' works correctly

I'm hosted on a Linux server with Apache 2.2, PHP 5.5, MySQL 5.6 installed. I still run D6 sites for the moment, whose some modules I can update by using Drush 8 combined with the myDropWizard module. ...
0
votes
2answers
1k views

When I update my database schema with drush entity-updates. I get an error

When I try to update my database Schema I'm getting the following error: Drupal\Core\Entity\Exception\FieldStorageDefinitionUpdateForbiddenException:[error] The SQL storage cannot change the ...
2
votes
1answer
85 views

Node title does not update

I wanted to add a word in front of the title for certain nodes. So I run an update sql statement on nodes table. The result can be seen in the attached image. I empty the cache (flush all) but my new ...
1
vote
1answer
41 views

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

I installed the theme Basic, did drush up, updated this theme, and BAM, the sub-theme folder I created was deleted. Gladly, I restored most of it, but why would drush actually delete any non-native ...
2
votes
1answer
880 views

Drupal module updates failing through administrative interface after update to 7.50

So, I just updated my site to Drupal 7.50, and in addition to being informed of a host of modules that weren't properly uninstalled, it seems that I can no longer update modules through the ...
1
vote
2answers
98 views

Running drush up to several sites folders at once

In my server's root folder I have the folder www that contains sites of all my websites. All of these are Drupal. Navigating into each folder and doing drush --no-backup up -y each time, can be both ...
1
vote
0answers
31 views

How to update node fields via twilio sms reply from node author?

I have been working on this for a while now, but I am still struggling to wrap my head around it. I am using Drupal 7.x with Views, Rules, Views Rules, Twilio and Services to try and achieve this. ...
1
vote
0answers
28 views

How can I perform node fields updates without processing all the node_save() stuff?

I am trying to update node fields directly with db_update(): foreach ($_POST as $key => $_POST_value) { $num_updated = db_update('field_data_krown_weight') ->fields(array( '...
0
votes
2answers
29 views

Get a notification if a new version (tag) is created

Before there was a RSS fead that got update if a new release of drush is available, see question: Getting an email notification when a new Drush version is available. But after drush is moved to ...
0
votes
1answer
42 views

How does Drush figure out modules that have updates?

How does Drush get information about installed and disabled modules and updates for them? I'm facing issues since drush is trying to update modules that AREN'T in the modules directory nor in the ...
1
vote
3answers
1k views

“drush up” fails with “pm-updatestatus failed.”

When I execute drush up, it returns the following error message. The command could not be executed successfully (returned: The filename, directory name, or volume label syntax is incorrect, code:...
0
votes
2answers
549 views

How to update user profile after submitting a webform?

We have a webform and our clients can register for an event using this webform, some of fields are preloaded in the form like "firstname" or "lastname", but i like to update the user info in the user'...
0
votes
1answer
124 views

REST - Could not find controller on PUT

I'm trying to update a node via REST PUT but failing with the "404 controller not found" error. I have tried everything I know of but still getting the same error. (No problem on retrieve / index) ...
1
vote
1answer
56 views

How do you include a translatable string in an update hook

In D7 you had to use get_t() in order to include translatable strings in an update hook. Is there a similar procedure for D8?
0
votes
0answers
97 views

CSS stopped loading after updating

For some reason, my Drupal 8 page it's just showing plain text after performing an update (8.1.8). I unchecked the Aggregate CSS and JavaScript files option, and cleaned the cache, but it didn't work. ...
0
votes
1answer
138 views

Update module to dev without Drush

Is there a simple way to update a module to the dev version without Drush? Ideally, within the admin console, but I could also use ssh to manually loa the files to the correct places. For the purposes ...
0
votes
2answers
44 views

Insert value into field before and after specific string

I need help with update function. I have database table with three fields. One of them is code field with html div and script. Example: <div id='id1'></div><script type="text/...
2
votes
3answers
376 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 ...
1
vote
1answer
392 views

Update.php does nothing

I'm trying to do a minor security upgrade to Drupal 8.1.7 When I load update.php it gives me a blank page (no errors). I upgraded all of the software with the exception of the root .htaccess and ...
1
vote
0answers
88 views

How to boostrap Drush from within an update hook?

I have a drush command I am using to convert field_collection to multifield. /** * Convert Field Collection to Multifield. */ function mvpd_update_7018() { module_load_include('inc', 'multifield'...
1
vote
2answers
99 views

Retrospective fix to hook_update_n() in current release

I need to make a correction to a hook_update_N() function in the .install file which is causing SQL constraint errors when some users upgrade to the new release version. The original worked fine ...
0
votes
1answer
165 views

Update from 8.1.3 to 8.1.7 gives me a fatal error on most pages

After attempting to update to version 8.1.5 I received the "The website encountered an unexpected error. Please try again later." error on many pages. I also get the following error in Recent Log ...
0
votes
1answer
239 views

Site broken after update

I am building a drupal 8 site and I am keeping my code on git. I am using a copy of example.gitignore as my .gitignore which exclude vendor folder. I have been working on my sandbox, at some point I ...
0
votes
1answer
122 views

How do I disable update checks for locked projects?

I am using drush @sites cron in order to get update notifications in a Drupal 7 multisite configuration. However, I need to have some projects locked, using drush up --lock=context_mobile_detect. ...
5
votes
2answers
156 views

How do I correctly inform the system about my module's new config?

I'm working on a module that already comes with a config file in mymodule/config/install/mymodule.settings.yml, and I'm working on a new feature that requires its own set of configuration in mymodule/...
0
votes
2answers
166 views

what is the purpose of site_key?

In ROOT/modules/update/update.fetch.inc, there is the following code. $site_key = drupal_hmac_base64($base_url, drupal_get_private_key()); $url = _update_build_fetch_url($project, $site_key); ...
0
votes
1answer
55 views

Error when running update.php about field_data_body existing

DatabaseSchemaObjectExistsException: Table field_data_body already exists. in DatabaseSchema->createTable() (line 660 of /srv/bindings/e27b77cd6512471f902f88e9e0704451/code/includes/database/schema....
4
votes
2answers
2k views

How to compare the already saved value of node and updated value?

I want to programmatically compare a field value of a node in hook_node_update(). How can I get the already saved and the updated values?
0
votes
1answer
180 views

Testing an update hook that updates fields?

I wrote an update hook for a site that moves data from one field to another. It looks a lot like this gist: foreach ($node_ids as $node_id) { try { $node_wrapper = entity_metadata_wrapper(...
0
votes
1answer
15 views

Drush and web front end reporting strange updates?

Is anybody else seeing this: root@dev:/etc/apache2/htdocs/drupal-7/sites/tpppdonate.org.uk# drush pm-update --pipe imagecache_token 7.x-1.0-rc2 7.x-1.x-dev Update-available uuid 7.x-1.0-beta1 7.x-1.x-...
0
votes
1answer
1k views

How to run hook_update for the database

Suppose we have a simple module with 3 files: test.info, test. install and test.module. test.install <?php function test_schema() { $schema['test'] = array( //fields 'fields' ...
0
votes
1answer
503 views

Understanding the source of a 'Failed to get available update data' errors

When manually checking module updates for a customer site all modules update OK (and are updating fine) but there is an error saying "Failed to get available update data for 2 projects." I suspect ...
1
vote
0answers
29 views

My available updates has errors

I'm getting these errors on my available updates page: Notice: Undefined index: reason in theme_update_report() (line 86 of D:\Sites\technology2\modules\update\update.report.inc). Notice: ...
1
vote
0answers
58 views

Does running `drush rf` detect needed updates by look at the version of files on disk or by an entry in the database?

Does running drush rf detected needed updates by looking at the version of files on disk or by an entry in the database? We run in a load balancer, fail over situations on a some production server. ...
-1
votes
1answer
1k views

Why do I get this error when running update.php?

Attempting to update drupal 8.0 to 8.1, when I run update.php, I receive this error: An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /update.php/...
3
votes
1answer
244 views

How do I manage core and module updates along with config management between environments?

I've set up a dev site, a test site, and a public site. Dev and Test are in two separate virtual machines (VLAD) and Public is on a shared Dreamhost account. I've successfully used the Configuration ...
0
votes
1answer
157 views

How did the ransomware get in? [closed]

A site where the site owner put off having updates done has been compromised with ransomware. This situation brings up a lot of questions. A Google search has not produced any answers. The server is ...