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
0 answers
18 views

All pagers stopped working

I have a Drupal 7 site built in 2014 with numerous pagers built in. Most of the pagers are in custom modules and are rendered using the following code. $pager = theme('pager', array('quantity' => ...
user avatar
  • 21
0 votes
0 answers
30 views

Drupal Site Hacked [closed]

Noticed some weird behavior with my Drupal site today. Some of the external links have been replaced with an IP domain. I rewrite my external links behind a 302 internal redirect such as mysite.com/...
user avatar
  • 1
0 votes
2 answers
24 views

How do I find out which system.info my site is using?

I have 3 sites using the same host. I have updated them from 7.89 to 7.91 however only one site shows as using 7.91. I have hunted my host files for a system.info with 7.89 without any luck. Where do ...
user avatar
  • 101
0 votes
0 answers
32 views

Help to avoid using PHP filter in an entity reference view

My site is about chemistry labs which uses many studios like a blood test. Some studio fields are Gender (male, female, both) and Age (2 fields, min and max values, could be days, months, years). ...
user avatar
  • 1,588
0 votes
1 answer
20 views

User login doesn't work after server migration

We had a Drupal 7 site running on PHP 5.6. We have moved this site to another server running on PHP 7.4. When I navigate to /user/login, type my username and password, and click on Submit, I'm ...
user avatar
0 votes
1 answer
22 views

How can I reference imported content types?

I have imported two content types. One is for a vendor list and the other is for a contact list. The vendor list was imported with a vendor id column. The contact list was also imported with a vendor ...
user avatar
-3 votes
0 answers
36 views

Newsletters seen as spam with old Drupal and Simplenews

A few years ago, someone asked me to help with a little website, made in Drupal. It was made by another developer, who was not available any more. He wanted just some little changes and despite never ...
user avatar
  • 1
0 votes
0 answers
19 views

How to have schema image on views page

I am struggling to find a way to have an image object appear in the schema markup for a views page. Ideally I would set this through the MetaTag module but am open to doing it programatically. The ...
user avatar
0 votes
0 answers
23 views

Template output singe fields from entity reference fields from other content type

I have "Carousel" content that calls another "news" content type. I created the view that shows the teaser of the single news. I would like to create an html inside the .tpl "...
user avatar
0 votes
0 answers
23 views

How do I enable image styles after I update?

Since Drupal 7.91 update only images displayed directly through the Drupal interface (e.g. "thumbnail" displayed in the Drupal node edit form) work. Requests to any other image style (s/d/...
user avatar
  • 204
0 votes
0 answers
16 views

Tracking time on custom form module

I have developed a module that presents a custom form in a page. I want to count the time from the moment the user is on the content url. There is a pause button that takes the user back to the start ...
user avatar
  • 1
0 votes
1 answer
17 views

Rule triggers twice

Simple rule to send account email after updating a commerce license. Export { "rules_membership_activation_email_notification_v2" : { "LABEL" : "Membership activation ...
user avatar
0 votes
0 answers
11 views

Limit nodes created by feeds by user

Note: Running Drupal 7. We are using the Feeds module to imports feeds for one content type from external CSV files that users FTP up. It works great but we need to limit the number of nodes that can ...
user avatar
0 votes
1 answer
36 views

How should I remove nodes from database for which the content type was deleted on Drupal 7.58?

On Drupal 7.58, I deleted a content type for which thousands of nodes existed. On this version of Drupal, deleting the content type is allowed even if nodes still exist (see Does deleting a content ...
user avatar
1 vote
1 answer
38 views

Does deleting a content type also delete all nodes of that type?

I know I can delete all nodes of a content type, keeping the content type, through bulk operations or such. If I'm not interested in keeping the content type, can I just delete the content type itself ...
user avatar
0 votes
1 answer
16 views

Webform 4 passing in email token into the redirect url confirmation page

This is for Drupal 7 and webform 4. I'm trying to pass in an email token value submitted from the previous webform page into the confirmation url. But it shows up blank. And the token browser dialog ...
user avatar
0 votes
0 answers
12 views

Proper approach for adding multiple author on a node with customized permission

I want to add multiple contributors to a node. Contributors won't have exactly the same permission as the content author. Such as, Contributors won't be able to delete the content, add/remove another ...
user avatar
  • 1
0 votes
0 answers
11 views

"Send an order email" doesn't translate

I am running a Drupal 7 website and I am having a little trouble (I think) dealing with Rules and translated emails. Basically, I want Ubercart Order Status Update emails to be in the preferred ...
user avatar
0 votes
0 answers
13 views

Catalog template?

I have a Drupal 7 / Ubercart 3 installation where I have been struggling to implement a multi-lingual catalog. On the individual Product level, things now seem to be working correctly. I say this ...
user avatar
0 votes
0 answers
22 views

Programatically added custom fields don't show up

I'm adding new fields to views through a custom module. When I open the view page UI, the field is not shown. However, If I edit the view from the user interface, and click on Add field, the custom ...
user avatar
  • 321
0 votes
1 answer
39 views

check if a page has been redirected and then add a class to a certain div

Im using the redirect module to redirect /page/scheduling to /page. I need to check if the user arrived to a certain page by this redirect. by checking this i will then add a class to a certain div. ...
user avatar
0 votes
0 answers
12 views

Location of product attributes

Probably field_data_field_attributes holds attributes data in SQL. How can I relate this data with a specific product?
user avatar
  • 1
0 votes
0 answers
31 views

Fields in content form are below save button

I got a problem in drupal 7.x which is that i'm trying to edit and create content from a content type that has 140+ fields and the save button section has fields below it as shown in this image: I ...
user avatar
0 votes
0 answers
18 views

modernizr.min.js?v=3.3.1 was blocked due to the MIME type ("text/html") not matching (X-Content-Type-Options: nosniff) - how to fix it?

I developed a site using drupal 7. Now I migrated the site to another webserver. The server is getting an error that I can not solve. In the file 'core.libraries' I have the following code: 'modernizr:...
user avatar
0 votes
0 answers
35 views

Title field returning ' where apostrophe should be?

I have a series of fields on a View. For some reason, any node title field with an apostrophe in it is being returned to my endpoint as Jen's Cupcake Store instead of Jenn's Cupcake Store. ...
user avatar
  • 239
-2 votes
1 answer
30 views

How to create a custom layout with for a view, I have tried to print the fields but nothing works I created the template but cant display rows

I have a view in drupal 7 but I cant show up the rows, I created a template for the row-style-output but nothing happen. <?php /** * @file * Default simple view template to all the fields as a ...
user avatar
0 votes
2 answers
166 views

Enable error logging from settings.php

I am facing a The website encountered an unexpected error. error while setting up the site. Most of the documentation I found online suggest to enable logging in the setting.php file. I added this ...
user avatar
1 vote
1 answer
84 views

Changing the PHP memory limit in settings.php is not reflected in phpinfo()

Of the various methods to increase the PHP memory limit, the only one I can use for a certain site is ini_set('memory_limit', 'XXXM'); in settings.php. This value does not appear to change the ...
user avatar
  • 161
1 vote
0 answers
55 views

Trying to get to the bottom of an out of memory error related to the database

I've inherited a highly problematic site built in Drupal 7. Upon installing the site on my dev space I get a 'This page isn’t working' error 500. Looking at the web logs I get this message: lmu.[...
user avatar
  • 161
0 votes
0 answers
39 views

AJAX callback not fired in hook_form_alter()

In Drupal 7, customer wants to add a button to the user_profile_form. So in my custom module, I create the button and its companion callback. But while the button appears on the form, I see no ...
user avatar
  • 409
0 votes
0 answers
9 views

Filter a view on whether the page has a menu link

I'd like to make a view listing all pages that do not have "Provide a Menu Link" checked so that I can review them for pages that would appropriately have a menu link to a parent page. I can'...
user avatar
0 votes
1 answer
29 views

computed field inside field collection

I have two fields (field_a and field_b) which are inside the field_available_water_s field collection. I want to set the field_c computed field, which is also inside the field collection, to the sum ...
user avatar
  • 127
0 votes
1 answer
117 views

'Aggregate and compress CSS files' and 'Aggregate JavaScript files' don't work

Recently selecting Aggregate and compress CSS files or Aggregate JavaScript files in the Performance page stopped working on a Drupal 7 site: When they are selected, the CSS/JavaScript file won't load....
user avatar
  • 161
0 votes
0 answers
48 views

Drupal Views filter on a Date field does not work as expected

I have a Drupal7 view which includes a field of Date type (let's say "activity date") via a relationship. I want to filter this field by "today" (show only activities with activity ...
user avatar
  • 121
0 votes
1 answer
20 views

Modify cart view to allow direct quantity updates

In want to modify the cart view so that when costumer change quantity of item in cart, it will update cart and total price automatically and immediately through AJAX (instead of when pressing button ...
user avatar
0 votes
0 answers
40 views

Clear specific view's cache programmatically, specific to contextual filter

I am using the following to clear view specific cache on node_presave which is working fine. cache_clear_all($view_name.':'.$display_name, 'cache_views_data', TRUE); Currently, it is deleting all ...
user avatar
0 votes
0 answers
31 views

Metatag cached, cannot change it

I'm running a D7 with the Metatag module 7.x-1.28, no other Metatag modules are enabled. On my front page node I: a) changed the metatag description from the old text to a new description text. b) in ...
user avatar
  • 41
0 votes
0 answers
34 views

Append info to original filename when uploading file in webform (filename token)

I'm sure I am missing something really obvious. Drupal 7 + Webform + File (Field) paths. I am uploading files (jpg, pdf, xls) in a webform and need to append the node NID to the original filename. But ...
user avatar
  • 119
0 votes
1 answer
71 views

How to fully reproduce dev environment with ddev?

I'm git cloneing a project that is run with ddev. After doing git clone ddev config ddev start and opening the hosted site, I get various errors, for instance: Warning: include_once(/var/www/...
user avatar
0 votes
2 answers
39 views

Change default user tab

After logging in, users would be redirected to their user profile page. I have added a new tab, My dashboard using hook_menu(). Everything functions well. After the users log in, I would like they are ...
user avatar
  • 41
1 vote
0 answers
60 views

Update.php gets "The page isn’t redirecting properly" error page

I recently moved our site to a new hosting company. After uploading all the files and importing the database I get this notice when I try to Run Updates and/or accessing the update.php page. The ...
user avatar
0 votes
2 answers
18 views

Files with 644 permissions and owner apache:apache are still failing Security Review module

I am using Drupal 7 and just installed Security Review. According to this page, the files should be 644. I tried that but I am still failing Security Review (I'm getting hundreds of files under the ...
user avatar
  • 263
0 votes
1 answer
59 views

SMTP module cannot connect to smtp.gmail.com [closed]

The SMTP module stopped working about a week ago. It is no longer able to connect to smtp.gmail.com. I have tried commonly recommended remedies: Allow "Less secure apps" in Google settings....
user avatar
-1 votes
1 answer
21 views

hook_menu() items disappeared and no longer work

I'm feel like I'm losing my mind here. I have written a custom module and implemented hook_menu to add custom admin pages. Last week this worked perfectly - this week they stopped working then ...
user avatar
  • 1
0 votes
0 answers
26 views

How to get the user info on who deleted an account?

In Drupal 7, a user was removed. As an administrator I reviewed the permission and role report from administration menu. But couldn't find the information. Is there any other way I can find the info ...
user avatar
  • 1
0 votes
0 answers
31 views

Add prefix on tables break my site

I have an old site on an old shared server which used an old shared PHP 5 we can not update. I create a copy of this website which will run on a different (and dedicated) server with PHP 5.6 and ...
user avatar
  • 611
-2 votes
1 answer
11 views

How can I loop on checkboxes to hide all using mlid: from the datatable?

function ts_core_form_menu_overview_form_alter (&$form, &$form_state, $form_id) { $form['mlid:11242']['hidden']['#type'] = 'hidden'; $form['mlid:11246']['hidden']['#type'] = 'hidden'; $...
user avatar
0 votes
0 answers
12 views

Search View location filter not working after change from Solr to DB server?

I have a search view that allows the user to filter a list of people by distance from a location the user can input. This uses the 'Location: latlong pair' as the filter. Unfortunately we've had to ...
user avatar
  • 161
0 votes
1 answer
116 views

How can I overwrite existing file and keep same filename when uploading new

I have content type 'Document' and added the 'Upload document' field with type 'File' I want to replace file and update the node. I'm using below code function custom_file_upload_form_alter(&$form,...
user avatar
0 votes
0 answers
19 views

How can I avoid that deleting fields from B deletes also fields in A?

I have two content types: A and B. B has a entity reference field to A. There are some fields in B which autofill from values in A. When any of the fields which are used to autofill are removed from B,...
user avatar

1
2 3 4 5
530