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
6 views

Reading internal URLs with single backward slash instead of double (http:/ instead of http://)

Drupal is reading some internal links with single slash instead of double slashes. This is causing some pages to crash. I first noticed this when I edited a webform and saved. I checked the settings....
0
votes
0answers
13 views

How do I programmatically disable the pager?

I'm using a view with infinite scroll. I want to disable the pager for the default view and keep the pager if we select some options from filters. Can we do it via code?
1
vote
0answers
35 views

Field type where big data is not loaded into memory if not needed

Background Normally when an entity is loaded in D7, the 'field_attach_load' step will load all the data from fields into the entity object. The field_sql_storage_field_storage_load() loads the data ...
0
votes
1answer
15 views

Moved Site - Can't find original CSS for look other than in the ADVAGG

I've inherited a drupal 7(I'm a beginner) site that had ADVagg installed. I added a stanza in my nginx config to take care of those files. What I'm running into is that there is a button on the ...
0
votes
0answers
18 views

How can I use range filters for strings?

I have created a view in Drupal 7 in which the dates are in text format, eg 2020-10-12 and I want to filter date ranges using between or >= and < but there doesn't seem to be such an option for ...
0
votes
0answers
34 views

Access denied trying to edit node that I own

In an administrator account using the administrator panel i can create and edit content from content type Country. But when they are created from a script, and even if i own them, i can't edit if ...
0
votes
1answer
28 views

Loading nodes that are only available to the current user

How do I programmatically load nodes that are available to the current user? I used node_load_multiple(), but it seems to directly load nodes from the database, bypassing permissions.
0
votes
1answer
21 views

What is the recommended jQuery and jQuery UI version?

What is the recommended version of jQuery and jQuery UI that I should use on a Drupal 7.77 site? I know the latest jQuery version is now 3.5.1, but what is the recommended version for a Drupal 7.77 ...
1
vote
0answers
19 views

Updating modules creates An AJAX HTTP request terminated abnormally error

Drupal 7.77. I have three modules that need to be updated. Trying to update any one of them results in this error: An AJAX HTTP request terminated abnormally. Debugging information follows. Path: ...
0
votes
0answers
26 views

PDO database connection error?

Super strange, my site was up and working fine yesterday. Today, I navigate to my home page and I'm thrown this series of errors: Warning: PDO::__construct(): php_network_getaddresses: getaddrinfo ...
0
votes
0answers
7 views

OG Malinglist rejecting basic email sent to Organic Group

I am using OG Mailinglist 7.x-1.1-alpha2. We have been using this module for years now. We have a new user who is attempting to send emails to a couple of our lists which are the email part of Organic ...
0
votes
0answers
9 views

How can I disable Webform submit button after being clicked

I've been trying to resolve an issue with no luck. For some reason there are no submission indicators out of the box with D7 Webforms and from what i've found it doesn't look like they have any plans ...
0
votes
2answers
21 views

Batch delete users

When I received this Drupal 7 site to manage, it has had years of being open for people to make accounts and now I have ~ 300 PAGES of users with names like ismehacker1234568 and such, with under a ...
-2
votes
2answers
39 views

How to loop through a database table to save every column as a single node?

I have a module, which loads company data from an external db to save this as content. function example_create_nodes() { // Get Data from external DATABASE db_set_active('db_wirdfit'); $result = ...
2
votes
2answers
29 views

Unlimited values for 2 combined fields

I want to add 3 fields to my articles: repeatable (boolean) unlimited values for repeat_date and repeat_comment I created the fields and with fields dependency I made the it possible that ...
0
votes
0answers
11 views

Previous week is calculated wrongly in Views

I have a view with 1 contextual filter. This filter using a field of type: Date. Configuration of this contextual filter: When the filter value is NOT available: Provide default value -> Current ...
0
votes
2answers
33 views

How do I show an already hidden field of a custom content type to a specific authenticated user?

I have a custom content type whose fields are Name, Description, and URL which is hidden by default. I want to show the latter field to the authenticated users who have flagged the node containing it. ...
3
votes
0answers
35 views

Speed up login after changing user name datastore type to VARBINARY from VARCHAR

We have a project underway that requires the import of ~6 million users into Drupal (Core 7x) that have many (150K+) case-insensitive duplicate usernames. Importing these users with existing case and ...
0
votes
1answer
34 views

After core update: Access denied after submitting form

We’re running on Drupal 7.73 and WebForm 7.x-3.30 – for a while now since the 7.75 to 7.77 Drupal release, we’ve been unable to update Drupal successfully. As every time a user submits a form on the ...
2
votes
1answer
20 views

Limit amount of emails sent per time frame?

Is there a module which allows for the limiting of emails sent per hour using drupal mail system? My server has a limit of how many emails can be sent per hour. Most of my users are online at the same ...
-2
votes
0answers
56 views

Transactional emails via mailchimp/mandril on form submission

I have been trying to send transactional emails via mailchimp/mandrill specific template when a form is submitted and a specific selection from a dropdown is selected. I have attempted several ...
0
votes
0answers
38 views

Add image using cURL

I'm migrating data from Zoho creator into Drupal 7. I wrote a PHP script to get all records and save them into nodes and that worked fine, but I need help to get the images and add them to the nodes ...
0
votes
1answer
18 views

How to render full profile2?

I am tring to load a full profile2. I a trying the following code <?php $uid = user_load($node->uid); $profile2_p = profile2_load_by_user($uid, 'profile2_profile'); print render($profile2_p); ?&...
0
votes
1answer
41 views

How can I remove self-closing source tags when rendering HTML markup?

I use this markup in a node body. <video> <source src="myvideo.mp4" type="video/mp4" /> my title </video> The following markup is instead rendered in the ...
0
votes
0answers
15 views

Commerce Marketplace Missing Roles and Buttons

My Install Drupal 7.77 Drupal Commerce 7.x-1.15 Commerce Marketplace 7.x-1.0-beta4 (all dependent modules are enabled) I have reviewed: Documentation mentions a Marketplace Owner Role https://git....
0
votes
0answers
15 views

Fine grained form error setting

I need to have two levels of form error setting, for example 100% error and 50% error. 50% wrong is still an error but not at the same level of the 100% one. I'm doing this for an educational Drupal 7 ...
0
votes
0answers
20 views

Why Drupal 7 does not log exceeding the allowed memory limit

Wondering why Drupal 7 does not logging exceeding the allowed memory limit? Steps to reproduce: create in the Drupal`s root folder file 'memoryCheck.php' with contents: define('DRUPAL_ROOT', getcwd()...
0
votes
0answers
22 views

Unable to access Admin page after core update (minor version 7.? to 7.77)

After manually updating Drupal 7 core - I am unable to access the /admin or /user page. Here's my process: backed up db entered maintenance mode manually downloaded Drupal 7.77 (deleted default '...
0
votes
0answers
26 views

S3FS S3 module image source issue

I'm using the S3FS module to use an AWS S3 bucket as my sites/default/files directory. When I upload images they are successfully uploading to the bucket. I edit a node and include the same images via ...
0
votes
0answers
5 views

windows task schedule to run Drupal site cron keeps on creating COM surrogate instances

I have a simple Windows task created via task scheduler to open IE (to run Drupal site cron). I have been running this task every 30 minutes and noticed it creates multiple COM surrogate instances in ...
1
vote
1answer
13 views

testing scheduled file deletions

Long story short, is there a correct way to override DRUPAL_MAXIMUM_TEMP_FILE_AGE? I'm working on testing a fix to a module I wrote a while back that handles some uploaded files. I neglected to call ...
0
votes
0answers
7 views

Transfer data from view query hook to view template

Under certain conditions I modify a view's query with a ..._views_query_alter hook. In my view template, I want to display a notice when this alteration has been made. What is the correct way to ...
0
votes
0answers
19 views

View with Block and Page results in Pager Issues [duplicate]

I have a view that has a Block and a Page. The block is up in the header of the site as seen in the first image below and obviously the page is loaded in the content area. The odd behaviour is that ...
0
votes
0answers
7 views

Is there any way to import/export the panelizeers?

I have some panelizer pages created on Drupal 7 sites. Now i want to migrate them on other instance. So is there any way to export the panelized pages in Drupal 7 like panel pages?
0
votes
0answers
35 views

Two pagers, but the second one doesn't show

I have a page where 2 pagers are in use but the second does not show. The view in question has 1 block and 1 page. Both have pagers setup in views 3 and the pager id for block has been set to 1 and ...
0
votes
1answer
36 views

SMS password recovery

I'm currently using D7. When my users attempt to request a password reset, 95% of the time, these reset emails land in their spam, or are blocked by whomever their email provider is. That being said, ...
1
vote
1answer
32 views

List all node titles to better iterate on a list of names

I have a content type called Country and I have to verify what countries already exists in db and save the missing ones, comparing to a variable with all countries ($country_list). I am having trouble ...
0
votes
1answer
15 views

How do I print a specific meta tag attribute value in html.tpl.php?

I am trying to create WebSite schema condition output in html.tpl.php in Drupal 7, so installed schema.org module, but it doesn't come with all the fields that my project required, for example, ...
1
vote
3answers
40 views

How to set up a cron job that runs for a specific rule?

I have a 2 rules that should run each on a specific time interval instead of the regular cron job setting. I have a list of "Sessions" (entity type) that should be evaluated to see if their ...
0
votes
0answers
12 views

Popup calendar in field collection remember last value

Could you help me please to resolve this issue: A site has a popup calendar widget in the field collection (a field with unlimited value for adding events). The users always add a few events. Is there ...
0
votes
0answers
9 views

How to send metric data to Google Analytics when a PDF is associated with multiple subsites?

We use Drupal 7 with Google Analytics and Google Tag Manager. We have an interesting setup for our site that has a content type called "Public Resource" each of which will have a PDF ...
0
votes
0answers
18 views

How can I call Rest API data from one module to autopopulate on another module?

I have created one module in Drupal 7, in which I have created a form and on submit I have called an Ajax submit callback function which returns a response of a Rest API. Now I want those data from ...
0
votes
0answers
18 views

Send email after updating a field on a webform

I have a webform with a set of fields. When the form is submitted, a website admin needs to update a field on the form based on some criteria. I need to send an email to the sender only if the value ...
0
votes
0answers
31 views

How can I query a webform in all instances at once to export a file?

We recently had a security breach and those making the decision opted to remove the capability of end users to create the file upload component. What I am hoping to do is two-fold: 1.) Use drush sql-...
0
votes
0answers
12 views

How can I group items by taxonomy within another taxonomy grouping?

I have content items that are tagged with multiple taxonomies. I would like to group the items first by taxonomy 'Site Section' then within that grouping by a second taxonomy 'Program Category'. I ...
0
votes
1answer
9 views

Show views active filter values as pills without using Facets

I have this requirement where selected filter values need to appear as "pills" on the page with an "x" which, when clicked, would unset the filter and reload the search without ...
0
votes
0answers
15 views

Webform using popup onload module drupal 7

Webform using popup onload module drupal 7 . I have created webform and installed popup onload module. could you please let me know on how to add the webform in popup content
3
votes
0answers
74 views

Image derivatives removed by some process, only regenerated when switching to maintenance mode, then removed again

While moving a bunch of legacy D7 sites to a new server, I bumped on the following problem with one site only. This is certainly NOT the classical permissions issue on files directory. Bug description ...
0
votes
0answers
21 views

How prevent authorized users from responding to comments?

How do I ensure that only administrators can reply to comments in sites such as content type? That is, if an authorized user views a node of the "content" type, he can leave a comment on it, ...
0
votes
2answers
51 views

How to get the input value with preprocess from a Fulltext Search Filter exposed form

For Drupal 7 I found a workaround to a similar situation here, when combining Core search block forms and search api contextual filters. This "workaround" won't work when using Search API, ...

1
2 3 4 5
531