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
1answer
211 views

common.inc error in newly downloaded Drupal 7.69

I just downloaded drupal 7.69 and tried to configure it. It gives me a page full of the same error: Notice: Trying to access array offset on value of type int in element_children() (line 6656 of /...
0
votes
1answer
30 views

How do I configure the recurring node checkout payment?

In the past years, I use commerce node checkout to published a node when the user checkout completed. Now I want to automatically, charge user when their node published expired. How can I link the ...
0
votes
0answers
14 views

On page build where is 'destination' set?

It seems that if a page is invalid (either 404 or 403) that a variable 'destination' gets set when it is built. My questions are: Where is this set and Is it only if the page is 404 or 403, or are ...
0
votes
0answers
12 views

Duplicate grouping title is showing on load more

I am working for an aggregator site. I need to show data by group with different taxonomy term title. I also need to theme that display. So far I am close to layout and functionalities except on load ...
0
votes
0answers
7 views

Inherit pager on views attachment not working with offset

I have set up a view (7.x-3.21) that lists a number of blog-posts where the first N are more detailed, and a number of others only date and title. This works so far, but setting up a meaningful pager ...
0
votes
0answers
37 views

prevent any user that doesnot belong to an organic group, to access any node outside his group with code

i have made the following custom module, in order to prevent any user that belongs to group 1, be able to view or edit a node that belongs to group 2. Still if one knows the url of the node, manages ...
0
votes
0answers
25 views

Drupal Site Migration from FreeBSD 12 to Ubuntu 18.04 SQL database unknown behavior

I am currently trying to migrate the Drupal Site from FreeBSD 12 to Ubuntu 18.04. All the configurations are copied and moved to Ubuntu 18.04. Everything seems fine and I was able to create the Drupal ...
0
votes
0answers
22 views

Organic group member can access content from another group that she doesnot belong to

i have set up a drupal site with the help of Organic groups module. Every user that belongs to a certain group sees only related content. But, i noticed that if someone from group A has or guesses the ...
0
votes
1answer
35 views

robots.txt encoding issue

I'm in charge of a website for my company, which runs Drupal 7.66 (PHP 5.3.3), for a few years now. Since a few months, I discovered a strange behavior regarding the robots.txt file. In some case, the ...
0
votes
0answers
19 views

How to change the 'target type' of an entity reference field?

I have an entity reference field that has existing data, which is populated by custom code. I now want to create a view of this data, but upon doing so have realised that the 'target type' of the ...
0
votes
0answers
23 views

Lets’ encrypt redirection problems

Desperately seeking help, I am hosting multiple Drupal 7 sites on one Ubuntu 16 on AWS using apache. I have domain1.com and new.domain2.com In the DNS level, I am pointing to this computer IP for ...
1
vote
1answer
30 views

What is the proper way to show a visitor an error?

I'm using a custom submit handler for a Webform, which POSTs important form data to another API. That part works, but on occasion there may be random network errors that prevent a successful ...
0
votes
0answers
21 views

Field gets unset and fails validation in user edit form

We have a special date field that we set upon user creation when our custom user form is submitted. The user does not have to set this field themselves. We have a separate form, which is a user edit ...
0
votes
1answer
20 views

How to add a custom module to a menu?

I am using Drupal 7. I have just built a wonderful custom module. Now I need to add it to my main menu, under the parent item "Tools and Resources." I know I can go to the homepage and click on the ...
0
votes
0answers
21 views

How to set all-day date value in a Rules Component

I have a node with a Date field set to February 8th, 2020 but when I try to set a Date Value as 'Data to Compare' but the date/hour keeps changing. How do I set the data value for all day? Drupal 7....
0
votes
2answers
24 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
8 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
35 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 ...
0
votes
1answer
11 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
17 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
50 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
39 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
20 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(); ...
1
vote
2answers
51 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
22 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 ...
-2
votes
1answer
40 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
23 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,...
0
votes
0answers
25 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
23 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
19 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
12 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
46 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
19 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 ...
1
vote
1answer
98 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
39 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 ...
0
votes
0answers
26 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
22 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
81 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
46 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
91 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 ...
0
votes
0answers
23 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, ...
0
votes
1answer
25 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 ...
0
votes
1answer
45 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
40 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
20 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
33 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
45 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
23 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['...