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

Seeing PHP info twice in status report

On the status report page of a drupal site we run with 7.78, the PHP version number gets reported twice. We have only setup 1 PHP instance in IIS with version 7.3.24. How do I correct this to pull ...
0
votes
0answers
15 views

Published content goes offline when edited - most prevalent on popular content

We have a Linux Drupal 7 environment with memcache and mariadb. It appears that if a page/content is being hit when an editor is publishing an update, the page can be taken offline. It can take ...
0
votes
0answers
18 views

Translation doesn't load other languages

I installed the Entity Translation and the Webform Translation modules. I enabled the webform translation from the entity translation configuration, and tried to translate a webform field. Only ...
0
votes
0answers
20 views

View won't save end date configuration as filter criteria

I'm using Drupal 7 with views 7.x-3.15 and Date 7.x-2.9 I have a date field for an "Events" content type. Events can sometimes last more than 1 day, so I have enabled an associated end date. ...
0
votes
0answers
36 views

Check multi-value field values to see if they are different after save

I have an ECK entity (not a node) in Drupal 7 that contains both properties and fields. Some fields are single value fields e.g. field_tags and others are multi-value fields e.g. field_description ...
0
votes
1answer
40 views

Dynamic query with left join

I need to collect comments that belong to certain user and submitted on pages of certain content type nodes. Currently I'm making two queries: $nodes = db_select('node', 'n') ->fields('...
0
votes
1answer
27 views

db_delete does not actually delete

I'm trying to delete from the dr_cache_form table,in D7, but somehow the record does not get deleted function mymodule_multistep_form_submit($form, &$form_state) { //..... ...
0
votes
1answer
13 views

Can I add a custom block?

I want to have a block with 3 text body fields. I've done this before in Drupal 8 where I created a custom block and was able to add different fields to it. In my Drupal 7 setup, I can add a block but ...
0
votes
0answers
21 views

The following module is missing from the file system: "post_articles" [duplicate]

I was given a Drupal website in the form of a Drupal database running on a website and an archive containing a Drupal installation complete with a theme. Upon uploading the installation to the server ...
0
votes
0answers
9 views

Drush make and contrib module makefiles

If I run drush make drupal.make.yml . the downloaded contrib module colorbox has a colorbox.make file that is executed and install the library colorbox. How to not permit to run that files, with ...
0
votes
1answer
15 views

ctools module keeps getting unloaded?

I keep getting this error while trying to access content using The Course module. Call to undefined function ctools_get_plugins() To my understanding this means the ctools module is not loaded, ...
0
votes
1answer
41 views

Custom js added with drupal_add_js doesn't actually get added if I enable "Aggregate JavaScript files" or "Cache blocks"

The site is the most stock, only Drupal 7 core is installed. included my theme, where the page.tpl and html.tpl theme files are copied from core I created a Yandex.Maps module, this is a block where ...
0
votes
0answers
10 views

Ckeditor white gaps

I am using the ckeditor for drupal 7. Everything works fine however, I noticed something wrong regarding spaces. I have an article with an introduction whose font Arial and a small paragraph whose ...
0
votes
0answers
26 views

Set background picture only within the text field, not the entire page

How should I make the background image appear within the text field (in the Basic page content type) but not the entire page? I am using the Background Image Formatter module, running on Drupal 7 with ...
0
votes
0answers
17 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
41 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
17 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
20 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
37 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
0answers
25 views

How can I completely disable cron so that it won't run even if the cron URL is hit or cron is ran manually?

When working on a dev site I'd like to put in a safeguard to make sure cron cannot run, even if triggered manually. Is there a way to do this in Drupal 7?
0
votes
1answer
31 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
34 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
56 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
357 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
8 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
1answer
16 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 ...
1
vote
2answers
46 views

Batch delete users and the content they created

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 ...
-3
votes
2answers
102 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
32 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
12 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
237 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
64 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
26 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 ...
0
votes
0answers
43 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
94 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
21 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
23 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
61 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
18 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
10 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
1answer
60 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
33 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
38 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, ...