Questions tagged [7]

Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

Can't run database update script, webforms not display webform tab

We are running Drupal 7.69 under PHP 7.3.13 on Bluehost. Not sure what happened, but when I try to browse to update.php to perform database updates, I get the prompts as expected to update the ...
0
votes
1answer
26 views

Can I turn a regular content type into a Commerce product display?

I have an existing working site with lots of content. I've come to the realisation that I could actually sell this content. So is there a way to turn my existing content type into a product display ...
0
votes
0answers
16 views

I cannot uninstall the Coder module

I am using Drupal 7. I go to the Modules page and Coder, Coder Review, and Coder Upgrade are all disabled. But if I click on the "Uninstall" tab, Coder is not listed. How do I remove this module ...
0
votes
0answers
10 views

Show all content referenced by another content, regardless of language

I have a "Movie" content type. It can be translated in 3 languages (fr/de/it). I also have an "Event" content type. It cannot be translated. It has a field that can reference a Movie (reference field)....
0
votes
0answers
11 views

How to flag a node and take the values from a node in a block and set these in fields of the flagged node

I am creating a calendar view showing the available sessions of a Teacher (role). Each session has a global flag named "Book Session". A Student (role) can have multiple courses but only one needs to ...
0
votes
0answers
26 views

After login I get blank admin pages

I have a D7 site up and running and working fine. Today I logged in to update some content, but I saw that the admin pages just show the system messages about necessary module updates and that's it. I ...
2
votes
1answer
37 views

Emoji works in a site but not in the other site on the same host

I am trying to enable emojis following Multi-byte UTF-8 support in Drupal 7. I have added the following to the settings.php file. 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_general_ci'...
0
votes
1answer
22 views

How to show or hide some content on a node view using Page Manager based on the url destination?

After certain fields have been set on the edit node form and saved, I don't want the node author to change these anymore and therefore I have created a new variant with a response code "301 permanent ...
0
votes
0answers
13 views

Content corrupting when reverting a revision

Our website is powered by Drupal 7 and have a bootstrap based rotating carousel on the home page, which has a link on each slide to a different page. This is powered by the Bootstrap Carousel module (...
2
votes
2answers
36 views

How to make fields of a cloned node available in Rules

I have a rule that clones a node once it's flagged. I can set certain parameters for this newly cloned node but not all. I read in other posts that you have to use a conditional rule to identify what ...
0
votes
1answer
41 views

How to load a internal page content within div? [closed]

I have following code in a basic page on drupal 7 <h2 id="tabs">Test Title</h2> <!-- Nav tabs --> <ul class="nav nav-tabs"> <li class="active"><a href="content/test" ...
0
votes
0answers
37 views

HTML elements in schema.org module

I am using the Schema.org module for schema tags, I tried to add html elements but they never get printed. Is it possible to do this?
2
votes
1answer
25 views

Send email only if a field has a certain value

I am using webform in Drupal 7 and have a case where I need to send an e-mail only if a certain select field has an option selected. I have installed Rules and Webform rules but am a bit stuck on how ...
0
votes
1answer
41 views

How to log to console when in a Drupal attach behavior?

I'm using Drupal 7. I have the following code that tries to log to the console: function mymodule_get_jquery() { $jquery = <<<JAVASCRIPT console.log("here"); (function($) { ...
0
votes
1answer
20 views

Feeds import from Restful Web Service module output

I have a D7 website, which expose a node through the module Restful Web Service https://www.drupal.org/project/restws It does exposed my website node in Json format. The only issue I have, is the ...
0
votes
1answer
19 views

Update UI lists modules/themes that are already updated

I have a D7 (7.69) site. On both dev and production, I can update a module (using the web UI - /admin/modules/update), apparently successfully, yet afterwards, that module stays listed as requiring an ...
0
votes
0answers
15 views

Using rules to populate a node reference field

I'm trying to auto-fill an multi-value entity reference field on a node with all of the other nodes that meet a certain criteria (promoted on the front page in this instance) using the rules module in ...
0
votes
1answer
22 views

how to be the last hook_page_alter called?

If you implement hook_page_alter in your own module, your hook will be called somewhere between all the other modules. I am trying to undo something another module is doing in hook_page_alter. ...
-2
votes
2answers
47 views

Incorrect handling of PHP sessions causes many 503 errors?

I use my personal website to host several images galleries, and for several months now, I've noticed that a lot of the thumbnail images appear broken and aren't loaded by the browser. This seems to be ...
0
votes
1answer
26 views

What do I do with the list of blocked IP addresses

I have a growing list of blocked IP addresses on my Drupal 7 site. I've installed the following modules: Honeypot, Captcha questions, Captcha, reCaptcha, and Hidden Captcha. They all work fine and ...
0
votes
0answers
21 views

Loop an Entity Reference Vocabulary Field

So working through my rule I would like to use a loop to execute an action. In my content type I have an entity reference to a vocabulary called "Contacts". I want the loop to loop through all the ...
0
votes
0answers
8 views

Entity reference add users autocomplete, autofill email in multiple fields

I have a D7 content node content type which has an entity reference users field with an autocomplete widget, addressfield. When I select an user the user entity and addressfield is automatically is ...
0
votes
0answers
21 views

Send email after node save based on a checkbox in a vocabulary

I was wondering if someone could help me with this. I have a content type called "News", this content type has three fields (Title, Date, Body) I have vocabulary called "Contacts", this vocabulary ...
0
votes
0answers
19 views

Cannot clone webforms between two groups

I have a Drupal 7 installation. The system description is Events management, handling registrations, payments, accommodation etc. There is a content type "Event" which is a group and members of this ...
0
votes
0answers
13 views

How to remove leftover/orphan url aliases?

For historic reasons, a site we are working on has a number of url aliases for taxonomy terms and nodes which no longer exist. I found this with direct sql query (in drush sqlc), e.g. select ua.* ...
0
votes
0answers
12 views

how bulk change each content type groups membership

i have a content type named students. Each student must only be in a single group. I noticed many students belong to two groups. How can i delete the second group, for each node of content type ...
0
votes
0answers
10 views

Adding a value to shipping cost by product type

Actually i have a drupal 7 with commerce, and only one product type with his shipping cost. I want to had 2 new product types (easy) but i want also to add a special amount when this types are on the ...
0
votes
0answers
22 views

Name in Loaded Drupal user is not available in Drupal Rules

I'm trying to create a Drupal Rule which uses the name of the Loaded Drupal user. But when trying to access that field from the Loaded Drupal account, the only fields available is Picture and ...
1
vote
1answer
77 views

How to set an exposed filter to enable current user to view nodes that he has not commented

On my D7 site I am trying to create an exposed filter where current users would choose whether he wants to see all nodes, or only those that current users have not commented. Tried adding 'Comment: ...
-1
votes
1answer
34 views

How Can I create a drupal front page (responsive) with multiple buttons? [closed]

I am using D7 and I would like to create a front page with 20 buttons, perhaps 4-5 in a row. Page needs to be responsive and buttons with hover animation. Is there a easy way to do it GUI, without ...
0
votes
0answers
16 views

How to exclude an user previously referenced in a field (User reference) from a Views block listing users?

Using Drupal 7.69 I have built a views block to list all users from a team, based on a taxonomy field as contextual filter (the team content type and users share the same taxonomy field). This block ...
0
votes
0answers
4 views

trying to merge 2 views with same fields into one output

Im using views 7.3 I have two views and tring to merge them both as outlined here https://drupal.stackexchange.com/a/212340/79382 I have created a module and included two files. foo_view_merge.info ...
0
votes
0answers
26 views

Database migration from Postgres to Mysql

We have a website in Drupal 7 running on Postgres database. We are planning to upgrade to Drupal 8 very soon, but we want to first migrate the database from Postgres to Mysql. I was just wondering ...
0
votes
0answers
18 views

how cache a view that has a field that is calculated with php code

i have a view, that returns results based on a data field, that calculated the number of nodes that fulfill certain criteria, an important one is that the numbers are calculated based on the group the ...
0
votes
0answers
13 views

drupal 7 views with 2 different contextual relationships?

I am using Drupal 7 with views. I have a view of all content from Organic Groups which the user is a member of. And a view of all content by users the current user has flagged. I am trying to get ...
0
votes
1answer
22 views

login form generated by drupal_get_form('user_login_block') does not log in

I have a custom module part of which builds a block with the login form function my_module_block_view($delta = '') { switch ($delta) { case 'awsImage_public_info_forms': $user_login = ...
0
votes
0answers
7 views

When terms are deselected in the term reference field, the referenced node still shows

I use the Term Reference Field in my content types to attach nodes to a specific term. I then use the View with the description "view to emulate Drupal core's handling of taxonomy/term", to show a ...
0
votes
0answers
30 views

Node won't edit or publish

The node has about 200 photos in an image field. Clicking remove on the image doesn't do anything, it gives image that it was removed, but it wasn't, on second try it gives error. The content on ...
0
votes
0answers
9 views

How can a node author administrate node flags?

I have a node type with a node flag. Which can be flagged by any user. I'm trying to do something which I think would be very simple but can't find any options or work around. Allow the node author ...
0
votes
0answers
46 views

SESSxxxxx cookie gets removed, $_SESSION data being lost but only locally

I have just pulled deployed code down to my local setup, restarted MAMP, cleared the Drush cache, and started a process that relies on data stored in $_SESSION. We can confirm this works in prod - no ...
0
votes
0answers
11 views

How to make global permissions available in OG Role permissions?

In OG Role permissions only some are listed, not all that are available under drupal site wide roles. I want to make a global permission available under OG Role permissions, as I need to make the "...
0
votes
0answers
20 views

Render date in the correct timezone

I'm trying to display render the "event" day in my custom tpl. I save in that node 31/01/2020 - 20:30 If I check the table (this is a field collection), the value stored is 2020-01-31 19:30:00 ...
0
votes
0answers
13 views

How to execute my custom VBO in queue?

I have a VBO action that exports selected articles into one PFD file. There can be a lot of articles so I want to add an ability to execute this export in batch. But under my VBO on views no option ...
0
votes
1answer
20 views

Aggregation with count that includes empty field values

I saw other questions regarding the aggregation but i didn't found anything similar to what i need. I've a view with enabled the aggregation, results are grouped by a field value (a text field) with ...
0
votes
1answer
20 views

Multiple versions of the same menu, based on associated term?

I am trying to create a site with different portals. Each portal displays content filtered to that person's user tag, i.e. Student, Staff, etc. It's easy to create a view that displays nodes with that ...
0
votes
1answer
16 views

Remember/cache 'user role' for portal: how to configure?

I plan on setting up a different 'portal' for each user type, i.e. Student, Staff Member, etc. I want to prompt the user to select which type they are, and then cache that info in the future so that ...
0
votes
0answers
9 views

No referenced products available when using other than Add to cart formatter for product reference field

I trying to render all referenced product entities in a grid format (using view mode full for products) but all of the referenced products are missing from variables/node (field_referenced_products['...
1
vote
1answer
10 views

Group content by taxonomy term, but then also list all terms in each row

I'm looking for help with creating a view. I have a content type, Thing. Thing has a field on it where you can select multiple terms in a taxonomy, Category. I want my view to look like this: ...
0
votes
0answers
17 views

Skip form steps

I have created a drupal multistep webform and for smooth page transitions and better server load, etc i am using the module webform_ajax. On my webform i am using a progressbar which is similar to ...
0
votes
0answers
19 views

show particular content to visitor based on the ip [duplicate]

I have a requirement like I want to show the particular content when user are using network firewall. I am planning to use ip restrict module for this and store here the list of ips for whom I want to ...