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

Ajax error 200 All over the site [closed]

I have a Drupal site I haven't maintained for a while. All in a sudden, it started giving AJAX errors on every actions I make. I know I should probably update the site, but I'm not sure I can do it ...
0 votes
1 answer
19 views

Getting error "PHP files in the Drupal files directory can be executed." in Security Review v.7.x-1.3

I am on Drupal 7.92. When I run Security Review I get the error "PHP files in the Drupal files directory can be executed." in Security Review v.7.x-1.3. The sites/default/files directory is ...
  • 265
0 votes
1 answer
24 views

Hook menu alter - Restrict access to edit block - wrong page is shown

I want to restrict the editing of a block to users whom have X or Y permissions. I have tried access arguments and access callback. function MYMODULE_menu_alter(&$items) { $items['admin/...
0 votes
1 answer
25 views

Hide images for articles that are older than two weeks [closed]

I have a news website built on Drupal 7. I need to hide all images on this website's articles, when the articles are older than two weeks. I believe a solution would a PHP line to add to the articles' ...
  • 1
0 votes
0 answers
28 views

How to prevent numbering (_0, _1) of file uploads? [duplicate]

Is there a way in Drupal 7 to prevent numbering (_0, _1) of file uploads with the same name? How to tell Drupal to replace the previous file? Maybe there is already a ready-made module? Or does anyone ...
1 vote
0 answers
22 views

Which hook is invoked after an endpoint creates a node?

I am using Services 7.3x with Drupal 7. I have setup an endpoint that creates nodes. After a node is created by the endpoint, I would like to retrieve some data from the new node and update a third-...
0 votes
1 answer
14 views

How do I manage select options on a multi page webform?

With a multi-page webform. Page 1: choose country Page 2: choose industry Page 3: choose from a list of people that support the country and industry. #validate handler added $form['#validate'][] = '...
  • 1,383
0 votes
0 answers
45 views

How to delete a node without deleting it's relation

I have the following script that I run in /devel/php panel to delete the list of nodes in the array. I want to delete the nodes but I do not want to delete it's relation. When I run this script from /...
  • 107
0 votes
0 answers
8 views

Ajax issue in tab when embedding a view

trying to add two views in panel in drupal 7 in one views it is working fine ajax like comment on ajax and all works good , but while switching on different tab ajax is not working fine. in recently-...
0 votes
1 answer
22 views

Can't add Google Webmaster metatag because "Site Verification" category is missing

I'm using Drupal 7 (I can't update) and I'm trying to add Google Webmaster verification meta tag using the following instruction: https://www.drupal.org/docs/7/modules/metatag/howto-verify-a-site-on-...
  • 101
0 votes
0 answers
16 views

Why is Backup and Migrate version correct (7.91) and Core Update Status different (7.89)?

I am having a problem resolving this security error on multi-site configuration. One site doesn't get an error and the other sites do. The current backup and migrate application shows the correct ...
  • 101
0 votes
0 answers
24 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' => ...
  • 21
0 votes
2 answers
37 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 ...
  • 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). ...
  • 1,588
0 votes
1 answer
23 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 ...
0 votes
1 answer
24 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 ...
0 votes
0 answers
21 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 ...
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 "...
0 votes
0 answers
36 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/...
  • 204
0 votes
0 answers
17 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 ...
  • 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 ...
0 votes
0 answers
12 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 ...
0 votes
1 answer
47 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 ...
1 vote
1 answer
46 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 ...
0 votes
1 answer
25 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 ...
0 votes
0 answers
13 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 ...
  • 1
0 votes
0 answers
12 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 ...
's 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 ...
's user avatar
0 votes
0 answers
26 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 ...
  • 341
0 votes
1 answer
66 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. ...
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?
  • 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 ...
0 votes
0 answers
23 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:...
0 votes
0 answers
39 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. ...
  • 239
-2 votes
1 answer
31 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 ...
0 votes
2 answers
361 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 ...
1 vote
1 answer
98 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 ...
  • 161
1 vote
0 answers
57 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.[...
  • 161
0 votes
0 answers
42 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 ...
  • 439
0 votes
0 answers
10 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'...
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 ...
  • 127
0 votes
1 answer
142 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....
  • 161
0 votes
0 answers
60 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 ...
  • 121
0 votes
1 answer
25 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 ...
0 votes
0 answers
51 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 ...
0 votes
0 answers
34 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 ...
  • 41
0 votes
0 answers
41 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 ...
  • 119
0 votes
1 answer
82 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/...
0 votes
2 answers
41 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 ...
  • 41
1 vote
0 answers
67 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 ...

1
2 3 4 5
530