Questions tagged [7]

Version tag to tag issues specifically related to Drupal 7.x. Please note that version tags should be used only 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
9 views

More Images on home page will slow down the site? [closed]

I have a page that is set as a homepage. The home page is having around 50 images with different image styles added for it. Around 6-7 image styles are loading for all images displaying on the home ...
0
votes
1answer
11 views

how disable edit for a certain content type, and a certain role,

in a drupal 7 site i have been given to maintain, it seems that permissions are not working as expected. I check and uncheck the buttons for a certain user role, but that user role always has the ...
0
votes
0answers
7 views

Elysia Cron not running cron tasks that were previously paused

I have 2 cron jobs that are scheduled to run every two minutes. When I first added them, they worked as expected and ran normally. We ended up needing to pause these cron jobs for a few weeks and so ...
0
votes
1answer
25 views

Cron timeouts at 60 seconds, but all the related timeouts are set higher

We're getting 504 Gateway Timeouts on AWS from a Drupal 7 site at 60 seconds, but everything AFAIK is greater than that. The timeout is specifically during running the feeds_source_import in Ultimate ...
-1
votes
0answers
18 views

How to bulk update path using drush and pathauto?

Is there a way to bulk update paths, using pathauto and drush in Drupal 7?
0
votes
1answer
10 views

Changing field instance display settings for view_mode

Background In the user.module file in user_build_content(), there is a line that adds fields for a given view_mode: $account->content += field_attach_view('user', $account, $view_mode, $langcode);...
0
votes
1answer
16 views

How to programmatically clear/refresh module file cache?

I'm maintaining a module, and have reworked the file structure of the module to make it more... modular. In the update functions, some of the new files are referenced, but Drupal isn't aware of the ...
0
votes
1answer
35 views

hook_node_update not working

I placed the following function in my custom module. function MYMODULE_node_update($node) { if ($node->type === 'page') { $node->title = 'test'; } } When editing and saving a node of ...
0
votes
0answers
34 views

Text in url after the node id

I have found something strange in the URL on my drupal. I can add text after the node id and the page display as normal. Example : https://www.drupal.org/node/11111 return the same as https://www....
0
votes
0answers
36 views

How to add external CSS/JS libraries via library API and including these libraries in a field widget? [closed]

I can't load a library either using:drupal_add_library('mymodule', 'mylibrary'); nor by attaching it to the render array using $element[#attached][library]='module/mylibrary . I checked the chrome ...
0
votes
0answers
18 views

Dialog modal stops working when updating a block (panel pane, mini-panel, Views. etc) with ajax

I've been using Dialog for a while now, and this is an example of my standard way of requesting a form to be rendered in Dialog popup: $class = array(); $attributes = array(); ...
-3
votes
1answer
27 views

How can I achieve real time syncing for node queues from D7 to D8 [closed]

I want to synchronize nodes between two or more environments, on multiple different Drupal versions, when a node is edited, regardless of its environment. Both does not share naming convention.
0
votes
1answer
17 views

How do I update customers cart prices and add discount and then let them checkout?

I'm using Drupal 7 Commerce and Commerce discount, amongst many others. So the use case is this. We often get enquiries for bulk orders containing many products. We want our customer to go to the ...
0
votes
1answer
19 views

How can you identify all nodes that use a certain paragraph type or template?

In Drupal 7, given a custom paragraph bundle and an associated template file, is there a way to list all the nodes using that bundle? Or, if it's any easier, a way to do the same for a specific module ...
-3
votes
1answer
37 views

How to programmatically add a “more” link?

In the Views UI (in the center column), we can select "More link" which provides a checkbox to "Create more link." Selecting this returns a link for more results of the view. How would I ...
0
votes
0answers
20 views

Views rewrite results break URL

I am using Drupal 7 version 7.68. I have a view that gets an external URL from a field, rewrite's the results and then is outputted as the URL. I expect to see a link saying 'See More Details' that,...
-1
votes
0answers
21 views

Custom user-editable interface text

Use case(s) We are building a view with custom text for the "header" region. The text should be editable by "content editor" users who do not have permission to edit the view directly. There should ...
0
votes
1answer
19 views

How can I remove Features modules from a site without affecting functionality?

I have inherited a site that makes heavy use of Features, and this constrains what I can do to permissions and creates dependencies that don't otherwise exist. Something as simple as turning off the ...
0
votes
1answer
17 views

In the Features module, what does “Recreate” do?

What does it mean to "recreate" a feature? How does this affect the database? How does it affect the files, if at all?
0
votes
0answers
11 views

Drupal 7 and apachesolr module compatibility

I am trying to upgrade our current Solr from 4.x to 7.7.2. We have a Drupal 7 installation, that has the apachesolr-7.x-1.6 module installed. I have been researching but cannot find any information, ...
0
votes
0answers
25 views

Turning off sanitizer for bootstrap

My javascript popovers are breaking here and there. When I searched for the solution, I came to a conclusion that I need to disable the sanitizer. I could not find a line for it in the bootstrap.js ...
0
votes
1answer
10 views

How to open a link in ctools modal by clicking a views row in table format?

I want to open a page in ctools modal. This works for me. <a href="/my-page/nojs" class="ctools-use-modal">Click</a> But now I want to open the same page in ctools modal by clicking the ...
0
votes
0answers
29 views

Programmatically add and save values in field collection [closed]

I have a field collection inside a field collection which in turn contains some fields. I want to upload a CSV file which would have details about these fields and on CSV upload I want these fields ...
0
votes
1answer
81 views

Node content is not shown

I installed DrupalGap. Everything works fine so far, except that the node body is not displayed. I have none of the mentioned interfering modules installed. I also tried with a fresh Drupal 7 ...
0
votes
1answer
27 views

I cannot update because of Ubercart and Google Analytics module error

I tried updating my Google Analytics module today, but when I went to the update.php page I got this error: Unresolved dependency. Google Analytics (Version !=7.x-2.4 required) Google Analytics for ...
-1
votes
0answers
23 views

$node-date field changes to array on submit

Drupal 7, I have a simple custom content type. When I edit the node and set a breakpoint in node_form_submit(), the $node->date field is getting changed from a timestamp string to an array, with ...
0
votes
1answer
16 views

Second managed_file upload field fails with “An unrecoverable error occurred”

I have a form with two (ajax enabled) upload fields. Submitting a file to the first one works, then submitting a file to the 2nd does not, giving An unrecoverable error occurred. The uploaded ...
0
votes
2answers
73 views

suggestions on building Research portal for multiple studies and sites [closed]

We currently have a Drupal 7 portal collecting research data for multiple studies (set as individual content types), for multiple sub-projects (individual content type set as Inline-Entity-Form), ...
0
votes
0answers
43 views

Query params in url does not appears in node url after updating

I need to append node path programmatically to make the url look like [the link]?utm_source=Home%20Page&utm_medium=website&utm_campaign=AB%20Test&utm_content=Headline A I'm updating node ...
0
votes
0answers
29 views

Sometimes an item is not added to the cart, despite message “xxx was successfully added to the cart”

I have built a custom module for my D7 site that shows a dialogue when the user opens the cart. In the dialogue a few more items are suggested to the user. If the user chooses to tick the box in front ...
-2
votes
0answers
9 views

how to find the homepage or first page which loaded by domain name?

this project developed by someone else but now I cannot find the homepage of this to edit the silder of it. the project developed with drupal 7. please help me. Thanks!
0
votes
0answers
22 views

How to know if a field_config_instance is safe to delete

What I did, and my findings: I installed commerce_product_bundles module for D7, and found that it leaves 5 orphaned field_config_instances in the database after uninstalling: commerce_unit_price, ...
1
vote
1answer
20 views

Print module theming address for user page

I am using the print module to have print-friendly pages. I followed theme suggestions, I could not make the theming work for user pages. So far, I tried the following I would like to theme user pages ...
-2
votes
0answers
11 views

How to copy indexed file content of a file to node body field?

I want to copy the contents of indexed files to the body field of the nodes where the respective file is attached. The contents of the files are indexed and searchable, however, I am not able to copy ...
0
votes
1answer
41 views

Enable a button basing on multiple form values being equal

I would not like users to be able to submit a form until: All fields are filled out The password and confirm password fields are equal I can do this with JavaScript, potentially, but then the ...
1
vote
1answer
38 views

Node display based on conditional view [NULL] field entry or a Rules expression

I am trying to find a solution to empty user Content Listings shown on a User dashboard (landing page). Ideally I want to show a Mini-panel pane or Custom Content Pane instead of a users listing View ...
0
votes
0answers
22 views

Show a block on the user registration form depending on destination parameter

How can I show a block, or a a mini panel, on the user registration form depending on the destination parameter? Right now, I'm showing, in a view, a link that leads the users to user/register?...
0
votes
1answer
19 views

How do I theme the secondary menu?

The following code allows me to print the secondary menu. <?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'secondary-menu'...
0
votes
1answer
35 views

Best practice caching a variable between page loads [closed]

In Drupal 7... In the case of a value that is only set through a module's settings page, and then remains unchanged until an administrator changes it (or the module is updated). The value is checked ...
0
votes
1answer
26 views

How do I dynamically populate a select field?

this question comes quite often but I couldn't make it work to that point. My problem is simple, I have a 2 level taxonomy, I have 2 select fields, one is populated with the parent taxonomy and the ...
0
votes
1answer
42 views

How to use text from a block view as a prefix to a node title

What I would like to do In Durpal 7, I am using a block view to display our manufacturers name above our node titles. We added a custom region above content, and that is working fine. However, I ...
2
votes
1answer
21 views

How to dynamically make a field visible?

I'm trying to render a field based on a select value. However I couldn't succeed for now, so here is what I tried: I created a content type with a select field (field_type) var_dump($form['...
1
vote
0answers
21 views

views and views data export (a question about drupal scaling)

our drupal site has ~ 6 million nodes. I have a view, which i want to add the possibility to also export the total results in csv format. imagine a vie may return as many as 500 k nodes - results. ...
1
vote
1answer
30 views

Different forms per user role

I need to hide the description field from regular users when entering data, but the field should be visible to administrator users, which also can edit it. I used the Display Suite module to hide that ...
1
vote
1answer
41 views

How to set up Drupal behind a proxy correctly?

I have a Drupal 7 website on the domain hiddendomain.be:3200. Users visiting publicdomain.be are proxied to the hidden domain. My home page is rendered just fine, but when I log in with the existing ...
0
votes
1answer
32 views

How do I theme the “The website encountered an unexpected error” page?

How do I set the theme to use for the error page showing an unhandled exception like the one shown in this screenshot?
0
votes
0answers
34 views

How do you cache a menu when loading it programmatically?

I am having the below code to load the main menu tree. $tree = menu_tree_all_data('main-menu'); $parentMenu = array(); $index = 0; foreach($tree as $key => $value) { if (!empty($value['...
1
vote
2answers
26 views

What rule to use to redirect users, unless already redirected?

I'd like users with certain roles to be redirected to the page /civicrm when they login, unless they've already been redirected elsewhere. For example, an email might have a link that directs them to ...
0
votes
1answer
31 views

How do you add help text to a form item?

I would like to change the help text for an input field. My form ID is views-exposed-form-events-page-1. I have a text field that I want the helpful hint to appear below. The field ID is edit-field-...
0
votes
1answer
27 views

Sort the products by SKU when seeing order details

I have an Ubercart commerce website in Drupal 7. I'm trying to sort the products listed inside a given completed order by the SKU value. This is the link: /admin/store/orders/1 or /admin/store/...