Cannot install composer on my Drupal 7 server

Cannot install composer on my Drupal 7 server

I am trying to install composer to prepare my Linux Drupal 7 server for migration to Drupal 9. I am following the instructions here: https://www.hostinger.com/tutorials/how-to-install-composer and I run the first command: php -r... read more
Cannot install composer on my Drupal 7 server

Dynamic language links from menu?

I am trying to find a way to do the following: Add languages to Drupal 9 menu items Translate content/menu links Provide (from the Main Navigation) a list of languages the current page is translated in I was able to complete the first two, but I cannot see how to get... read more
Cannot install composer on my Drupal 7 server

How can I use the Views join handler plugin with groups and multiple conditions?

I’m trying to build a custom view filter and in the query method I need to create the next JOIN: LEFT JOIN node__field_list list ON node_field_data.nid = list.entity_id AND list.deleted = 0 AND (list.langcode = node_field_data.langcode OR list.bundle IN... read more
Cannot install composer on my Drupal 7 server

Page not found when viewing Group entities

I’m using the Group module and I’ve defined an "Organization" group type. When I create an entity of that type by going to /group/add and hit save, I get Page Not Found for the url /group/1. If I go to the entity list view at /admin/group I see... read more
Cannot install composer on my Drupal 7 server

If i have to add a content in drupal through custom form which table in database should be used?

I have created a custom Form through form api which only contains one form field of adding image to node and their will be a different form through which i am going to add body , title and tags in database . Now I am really confused that which table in database should... read more
Cannot install composer on my Drupal 7 server

"There have been more than 5 failed login attempts for this account. It is temporarily blocked." and the flood table is empty

When I try to log in as an admin user, I am getting the following error: There have been more than 5 failed login attempts for this account. It is temporarily blocked. Try again later or request a new password. This answer explains that this can usually be cleared up... read more
Views Blocks not showing up in entity reference select UI

Views Blocks not showing up in entity reference select UI

I have an Entity Reference field, whose "type of item to reference" is block. I have a View that creates a block called staff list but when I edit content that uses that field, I can’t get it to present staff list as an option? Why is this block not... read more
Cannot install composer on my Drupal 7 server

is it any way to find which file was uploaded using ckeditor

I have to remove unused file from IMC file browser, which is not linked with any node or ck editor file upload read more
Cannot install composer on my Drupal 7 server

Webform submission query alter by entity id

I have a webform called Event Registration which has 3 fields: name, email and event(entity reference). I created a block view and I want to display the number of users registered to a certain event. I wanted to add contextual filters to the view but for some reason... read more
Cannot install composer on my Drupal 7 server

Can you add a node’s translation to a different menu that the source node?

I would like to add a node’s translation to a different menu than the node’s source. Is that possible? For example, English is placed in main menu and french translation is placed in a different menu. read more
Cannot install composer on my Drupal 7 server

Search api very slow sort on custom date field vs relevance sort: is there a solution?

I’m using search api with database backend on a Drupal 9.3.3 site. I’ve indexed 26,000 nodes of a custom content type and these include a custom date field: field_display_date The index is set up to do rendered html. Since I need users to be able to sort... read more
Cannot install composer on my Drupal 7 server

Enable HTML for Group invite module emails

I’m using Drupal 9 and Group invite module. Configuration for this module allows to alter the text on email invitations: /admin/group/content/manage/groupname-group_invitation I’m trying to use HTML in "Invitation e-mai" body, but the Group... read more
Cannot install composer on my Drupal 7 server

How to override facets checkbox theme and style checkboxes checked state?

I’m having trouble to style Drupal 9 facets checkbox in checked state. I have tried to override the theme by theme_preprocess_checkboxes with no effect. here is my code : function mytheme_preprocess_checkboxes($variables) { $element =... read more
Cannot install composer on my Drupal 7 server

What is the standard practice to curl in Drupal 9?

I am trying to fetch contents from a Drupal 9 site using postman and insert those data in a content type. I am writing a custom module for this. As I am new to Drupal 9, I need two information What is the standard way to generate curl request in Drupal 9? where (in... read more
Cannot install composer on my Drupal 7 server

How to increase smtp email file size

I have a drupal 7 website with rules 7.x-2.13. There is a rule which sends html email with all the fields whenever a new node is created of a content type. There is a file field as well which allows user to upload PDF docs of max size 20MB But whenever user uploads... read more
"This site can’t be reached" error in Vagrant environment

"This site can’t be reached" error in Vagrant environment

I put my local vagrant box and everything looks clean. However the site is not launching. Drush status: Everything looks fine. Also Apache status is clean. Apache error log looks as below: 000-default.conf also looks clean and document root points to /vagrant/web. My... read more
Cannot install composer on my Drupal 7 server

Equal-width columns in Olivero

I display an entity reference field that holds 4 images (media items). By default they are displayed in 4 rows one below the other. I want to display them side by side. Olivero is the theme I am using. If I set .grid-full to the parent element, then indeed the 4... read more
Cannot install composer on my Drupal 7 server

How to atomic increment an integer field?

How to increment and save an integer value in one operation so that there are no race conditions? e.g. in mysql INSERT into mytable (logins) SELECT max(logins) + 1 FROM mytable Current code is $query =... read more
Cannot install composer on my Drupal 7 server

How to overwrite node theme for one site on multisite setup

I have several Drupal 9 sites on multi-site setup. currently all these sub sites use one theme placed in /themes/MyTheme folder. now i need to theme few nodes on site A and site B and this is only difference between all sites. if i use... read more
Cannot install composer on my Drupal 7 server

How can we use Search API autocomplete for Rest resource (Drupal 8 )

Drupal 8 How can we use Search API autocomplete for Custom Rest resource (API) for Android / IOS. read more