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

Incorrect string value: '\xF0\x9F\x92\x99' for column "'comment_body_value'"

How can I fix the following error I get from a Drupal 7 site? Incorrect string value: '\xF0\x9F\x92\x99' for column "'comment_body_value' I read it is about users posting emojis that cannot be ...
user avatar
  • 41
-1 votes
1 answer
18 views

Discount issue?

I am working on a big Drupal 7 commerce site and I have some issues with the commerce discount module on order discount. Both Drupal 7, commerce, commerce discount and rules is on newest stable ...
user avatar
0 votes
1 answer
47 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 ...
user avatar
  • 113
0 votes
0 answers
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. ...
user avatar
  • 181
0 votes
1 answer
91 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('...
user avatar
0 votes
1 answer
44 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) { //..... ...
user avatar
  • 41
0 votes
1 answer
22 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 ...
user avatar
  • 163
0 votes
0 answers
23 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 ...
user avatar
0 votes
1 answer
23 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, ...
user avatar
0 votes
1 answer
56 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 ...
user avatar
  • 101
1 vote
0 answers
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 ...
user avatar
  • 3,472
0 votes
1 answer
22 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 ...
user avatar
0 votes
0 answers
44 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 ...
user avatar
0 votes
0 answers
41 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?
user avatar
0 votes
1 answer
32 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.
user avatar
0 votes
1 answer
67 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 ...
user avatar
2 votes
0 answers
124 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: ...
user avatar
0 votes
0 answers
787 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 ...
user avatar
  • 239
0 votes
1 answer
88 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 ...
user avatar
1 vote
2 answers
147 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 ...
user avatar
  • 72
-3 votes
2 answers
173 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 = ...
user avatar
3 votes
2 answers
36 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 ...
user avatar
  • 183
0 votes
2 answers
478 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. ...
user avatar
3 votes
0 answers
40 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 ...
user avatar
  • 31
0 votes
1 answer
93 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 ...
user avatar
  • 9
2 votes
1 answer
44 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 ...
user avatar
0 votes
0 answers
54 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 ...
user avatar
0 votes
1 answer
19 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); ?&...
user avatar
0 votes
1 answer
150 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 ...
user avatar
0 votes
0 answers
31 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 '...
user avatar
  • 1
0 votes
0 answers
145 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 ...
user avatar
  • 1,710
1 vote
1 answer
19 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 ...
user avatar
  • 147
0 votes
0 answers
22 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 ...
user avatar
0 votes
1 answer
111 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, ...
user avatar
  • 239
2 votes
1 answer
36 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 ...
user avatar
0 votes
1 answer
53 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, ...
user avatar
1 vote
3 answers
288 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 ...
user avatar
  • 338
-1 votes
1 answer
119 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 ...
user avatar
  • 1
0 votes
0 answers
76 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-...
user avatar
0 votes
1 answer
71 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 ...
user avatar
  • 1,124
3 votes
0 answers
81 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 ...
user avatar
  • 3,432
0 votes
0 answers
24 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, ...
user avatar
0 votes
2 answers
270 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, ...
user avatar
0 votes
0 answers
35 views

Filter Content and Files using the same Taxonomy term filter in Search API

I have several File (File Entity) and Content (nodes) types both referencing the same Topic taxonomy using the same field (one field, reused). The contents of these files/content are indexed in the ...
user avatar
  • 1,124
0 votes
0 answers
23 views

How can I conditionally override the field description?

I am using the Reference Field Option Limit module in Drupal 7 and I want to change the explanation text that says: No options are available for the current form values.. I want to put instead: ...
user avatar
  • 21
0 votes
0 answers
52 views

Cannot enable PHP Filter module in a fresh Drupal 7 installation [duplicate]

In order to test my ISP (a2hosting.com), I created a simple website running Drupal version 7.74 (the latest from the 7 branch) on a subdomain. It is a standard installation, with no additional modules ...
user avatar
0 votes
0 answers
44 views

Relative date filter views block is cached for anonymous users

Drupal 7.74, views 3.24 (latest) I have a view which uses a date field to filter and shows on: less than or equal to "now" I display the view in a block. With caching for anonymous enabled, (...
user avatar
0 votes
2 answers
70 views

Display multiple timezone values from a single date/time entry

In Drupal 7 Views Date/Time field, is there a way to generate multiple timezone values from a single event date, with start and end values? For example, if an event is entered into the start/end Time ...
user avatar
-3 votes
1 answer
44 views

How do I completely translate a page?

I want to develop a site in two languages. How do I completely translate a page? For example, the menu tab and other places cannot be translated. I just can translate using the Translate tab. In the ...
user avatar
0 votes
0 answers
278 views

"Error: Allowed memory size issue"

I have Drush installed on my Inmotion hosting server. For one Drupal 7 site, it works just fine but for the other one, which is nearly identical, it doesn't work so well. Some commands it allows (like ...
user avatar
  • 338