How to update a node translation programmatically

Hi team

I have an issue, I have a drupal site that has 4 languages (es, pt, en, fr)  and i would like to update a field from a node,

so how can i set a value for that field in every language?

I've tried with $node->set('field_items', $items_es);

But that just set for my default language,

Could you please help me?

Regards
Mario

Upgrade, then revert from backup, problem starts.

So, long story short;

1. Decided to upgrade Drupal version - I was on latest Drupal 8 trying to upgrade latest D9.

2a. Manually back up. 2b. Used Softaculous, backed up, then upgrade.

3. Upgrade done, site works at first, but errors when I try to log in or access update.php.

4. No problem! I got backups!  Use softaculous backup to revert.

5. Site did not go back to its original form, shows installation page. 

6. OK, a bit concerning, no problem! I got manual backup! Manually revert.

7. Site still shows installation page.

How to fix error messages while updating modules in Drupal 8?

I am getting the following error message while updating modules. Currently, I am running 8.7.4  version. Please help if possible so that I can ultimately upgrade to Drupal 9

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=73&op=do_nojs&op=do
StatusText: 500 Service unavailable (with message)
ResponseText: The website encountered an unexpected error. Please try again later.

Thanks and regards

Use Media Types to manage additional assets such as ZIP, KMZ, DOC, etc.

Greetings all-

I have a plan that involves using the new Media Types in Drupal 8/9 tat would allow me to create a Media Type and display templates and options for additional assets such as ZIP archives, Google Maps KML/KMZ files, Word Documents and Excel Spreadsheets, etc.

Each Media Type would have its own fields and Metadata that could be used as text renderable output when items are to be embedded within content nodes along with templates that would format the links using Display/View Modes and templates to control the output.

Place block button doesn't do anything

In block layout, the place block buttons have stopped working. the loading icon appears next to the button after clicking for a moment and then nothing happens. I can right-click them and open them in a new tab, but there is no longer a popup like there used to be. I thought it had something to do with an error I was getting in regards to a custom block. After fixing it, the place button issue still exists. It's such a strange error I'm unsure where to go next to troubleshoot the issue. any recommendations? 

Thank you for the suggestions.

How to use web worker and web assembly on Drupal

I am planning to use hunspell spell checker that is built into a web-assembly .wasm file that is accessed/downloaded via a web-worker though a JavaScript.

I want to know, how can I do such a thing on Drupal? Where to put the required JavaScript and wasm files? Will it be usual library way or there has to be some other method?

Please let me know how can I proceed to achieve this.

Thanks in advance

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x