


Get Video URL from Media Entity reference field
I have an entity reference field to Media Video. I’m trying to get the uri to the video file in node template. Most of the solution I found around is regarding Image/File. But not Video. Tried Twig Field Value module but it doesn’t work. read more
Image upload: Failed to open output stream
I created a media entity browser and for the image upload widget i choose the DropzoneJS.The widget settings are in the image bellow, pretty standard. And regardless of image type (png, jpg, jpeg) any image selected for upload returns with the follow error message... read more
Local drush stops working after changing files and folder permissions
I changed the files and folder permissions with the following commands. find . -type f -print0 | xargs -0 chmod 0644 find . -type d -print0 | xargs -0 chmod 0755 I can’t run Drush commands anymore, unless I change file permissions back to 777. When I run drush... read more
|slice filter does not work with special characters
I try to use the slice filter in order to limit a link to a specific amount of characters. The field that I render is a link field and my code is the following: {% set title_text = title|render|striptags %} <span> {{ title_text|length > 65 ?... read more
How to pipe output of "drush sql-dump" without warnings
When I do: drush sql-dump > somewhere/database.sql if there will be any warnings printed by Drush, they will be included at the beginning of the created database.sql file. Can we avoid it somehow? I know there is the –result-file= option that ignores all... read more
Updating core to a specific version with Composer
My site hasn’t been updated for two months, a few new updates has been released. My site’s core version is 8.5.6. Before running composer update -with-dependencies I read the release notes to the latest version of core (8.6.2), they say: Sites on 8.5.x... read more
The missing modules don’t get installed after updating with Composer
To update a site locally, I cloned the code base with git to my local computer and imported the database, then ran “composer update –with-dependencies”, there were no errors, then I went to /web directory and ran “drush updb -y”, it... read more
Translations string email not work
in D8 (multilanguage site, with two languages) i wanna send email for registration, etc by user preference of language of user (People -> Edit people -> Language Settings) I’ve enabled all modules for translations and translations are saved correctly (see... read more
Pantheon Live / Test / Dev Login Issue
I have recently inherited a Drupal 7 site on Pantheon.io. None of the admin logins that work flawlessly in the Live environment work in either Test or Dev. I have pushed/pulled code and DB between the three to make sure they are all identical, but the logins still... read more
Limit amount of adding a certain Paragraph per Content type
I use Drupal 8 Paragraphs module. I created a Content type Landingpage. I create some Paragraph types like Hero Image, Intro text etc. In the Content type Landingpage I created a Paragraph Entity reference revisions field. In the REFERENCE TYPE, the Paragraph types... read more
How to disable redirection to the node after node form submission
I have a node form exposed in the front-end to allow visitors to add their organisation to the list of partners. Below the form, I have exposed view block with the list of existing partners. When a visitor enters a new organisation to the list I want the form just to... read more
Taxonomy overview search term
In this manager: admin/structure/taxonomy admin/structure/taxonomy/manage/[fruit]/overview There is a way to add a search a term? So, if you have 100 terms it will easier to find a term. This one is not ported at all https://www.drupal.org/project/term_search This... read more
How to fetch the content author name with views in twig?
I am unable to fetch the content author name inside the twig template thorough views. Below is what i did so far : – Created a relationship under the advanced tab in views and added the Authored by field. I can see the author in the preview section of the view... read more
Filter a view by the Group ID of the current logged in user
I have been looking for an answer for 3 days with no success. Looks like this is a common requirement among plenty of Drupal 8 projects with not a single answer accross the internet about how is possible to achieve it. I, as user id 1, created 2 groups titled:... read more![How do I fix File Upload After Upgrading to PHP 7 [closed]](https://pixeldust.net/wp-content/uploads/2018/10/GDJG5.png)
How do I fix File Upload After Upgrading to PHP 7 [closed]
I know this question has been asked a thousand times in a thousand different ways, but none of those solutions have worked for me. Problem: I recently updated from php5 to php7. Whenever I attempt to upload an image (have not tried any other file types) I get the... read more
EntityQuery not returning content based on language
I’m trying to get a list of all of a specific content type, but my entityQuery is only returning the original language of the site (English). Here’s my code: public function fetchDocumentReferenceOptions() { $language =... read more
Node add form set entity reference default selection based on content from another type node
I wrote module with hook_form_alter to modify node_forum_form, i.e., node/add/forum form. One forum field is a taxonomy entity reference, field_topic. I want to set the field_topic selection based on the value from a specific node (NID=77) of type current_topic, which... read more
Introducing Android app for Drupal news, podcasts and videos
Introducing DrupalPocket, an unofficial, online-offline Android app for Drupal news, podcasts and videos. Currently contains 600+ feeds with built-in supports for Quora, Reddit, Stack Exchange, Youtube videos and podcasts, and many more. Add more yours. If you... read more