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
16 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
21 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
43 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 votes
0 answers
31 views

How do I ignore a special field when it's edited in a node edit form?

A user edits a node from its edit form. The field_example field is set tofoo. While editing other fields, field_example is changed in the background by another user via field_attach_update() to bar. ...
user avatar
  • 21
1 vote
1 answer
71 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
50 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
32 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
8 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
21 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
75 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
18 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
15 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
26 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
25 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
18 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
45 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
33 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
30 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
13 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
24 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
24 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
25 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
11 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
63 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
0 votes
0 answers
39 views

How can I increase the SMTP email file size?

I have a drupal 7 website with rules 7.x-2.13. There is a rule which sends html email with all the fields whenever a new node is created of a content type. There is a file field as well which allows ...
user avatar
0 votes
0 answers
35 views

Problems with core update from 7.83 to 7.8x

Since a few weeks I have problems with the drupal core update. I am on version 7.83 and as 7.84 was released I've tried to install it as usual, (clear everything beside the sides folder an some theme ...
user avatar
  • 1
0 votes
1 answer
18 views

How can I access or expose the Commerce data in $order->data[] to the Rules module?

Following this old checkout_pane_example.module tutorial, I created a custom Drupal 7 Commerce checkout pane. It's simply a text field to collect special order instructions from the customer. ...
user avatar
  • 3,774
0 votes
1 answer
17 views

Where did my commerce token go after an update to 7.87

My Drupal 7 commerce setup sends out a couple of emails after an order is placed. It uses this token: [commerce-order:commerce-customer-shipping:commerce_customer_address] After updating to Drupal 7....
user avatar
-1 votes
1 answer
37 views

How can I use a token in a mailto link?

I installed the Token and the Token filter modules. I use a mailto link in the body of a block. <a href="mailto:info@mydomain.com?subject=The subject I want&body=Can you send me my ...
user avatar
  • 1
2 votes
0 answers
42 views

Views performance: Teaser vs Fields

I have to create a view on a Drupal 7 site which will have 6/8 node fields. There will be some logic for which I will have to rewrite results as well as create a views-view-field-XX.tpl.php template ...
user avatar
0 votes
0 answers
10 views

How To Show Custom Completion Message Based On Webform Form Input

I'm trying to show a custom completion message in Drupal 7 using the Webform module. The message shown after completing the form would depend on what the user enters in the webform. I found this ...
user avatar
  • 627
0 votes
1 answer
41 views

Changing a node alias to reuse his old url programmatically without be still redirected to the node page

I'm on a old site on drupal 7. I have a node with alias /url. Now I need to manage that page url programmatically, so I create an item in a custom module using hook_menu() in this way: /** * ...
user avatar
  • 11
0 votes
0 answers
43 views

I'm writing a node migration (D7 to D9) module but only the title gets migrated

How can I get the body migrated as well? When I compared this with other working migrations, there didn't seem to be any differences in the code/anything wrong with mine. I also looked for alternative ...
user avatar
0 votes
0 answers
19 views

Use Node title as default value in alt field of field_image migration

I've been working on a D7 to D9 migrate project, and encountered an issue around field_image's alt value. The D7 site does not have all the field_image alt tag setup, so we'd like to use the imported ...
user avatar
0 votes
0 answers
21 views

How to change user password with Services 3.x?

I make a mobile app using Services 3.x module and Drupal 7. I would like to add a functionality for users to change their own password but I did not find a way to do it. I read and tested this, but it ...
user avatar
  • 101
0 votes
0 answers
33 views

Under construction page when I enable https

I enabled https:// in a Drupal 7 site, but I get the Under construction page every time I try to access it. When I try to log in, I get a 404 error. Can anybody tell me what I am missing? I’ve used ...
user avatar
1 vote
0 answers
22 views

How can I programmatically configure commerce checkout pane settings?

In Commerce, we have custom pane and checkout configuration that applies to all orders. Per this d.o issue in commerce_features, this is supposedly doable. However, Commerce's default configuration ...
user avatar
  • 3,774
-3 votes
1 answer
73 views

How to track recently viewed nodes using JavaScript on a completely cached website?

I want to make a block of recently viewed nodes on a website which is completely cached using Boost module (it saves a static HTML page for every request on the website). I don't want to disable Boost ...
user avatar
  • 1
1 vote
0 answers
31 views

Problems in collations when restoring

I'm quite lost with this issue I'm experiencing, so any clue will be appreciated. Let's start with the "symptoms". Whenever I restore a Drupal 7 site that has been previously backed up with ...
user avatar
  • 235
0 votes
0 answers
22 views

drupal view how can i filter results for certain node ids

i have created a view via the gui. I have tried to filter on the nodes i want, either with a normal filter and an or, and adding a few of them in a contextual filter. I face two issues: 1. i cannot ...
user avatar
  • 1
-1 votes
1 answer
14 views

Webform Table missing in Views

I have a webform created on our site we want to be able to show the user its submitted values and everything seems to be working but the table, I have downloaded webform views. Please help i'm not ...
user avatar
0 votes
0 answers
26 views

Load view form with ajax missing ajax functionality

When clicking an element I get a form which is generated by a view (using https://www.drupal.org/project/editablefields module). The problem is that the ajax functionality of the form is lost (no ajax-...
user avatar
  • 1
0 votes
1 answer
40 views

Time spent with custom module

Can anyone help me with this, I want to activate time spent module on my custom form module, and store the time spent on a field on my form. I think that I could do it on the file timespent.module ...
user avatar
  • 1
0 votes
0 answers
17 views

Vertical tabs custom form Drupal7

I have a question to discuss about Vertical tabs on Drupal7 when we use it on custom module to make a form. Can we use a vertical tabs on a another vertical tabs? I know how we do to make a one ...
user avatar
  • 1
0 votes
0 answers
18 views

Export data with one thousand values in contextual filter

I have a view (views data export) that I need to pass approximately 1000 values for a the contextual filter. I need to get the view results for certain 1000 node ids. Via the GUI it allows me only a ...
user avatar
  • 1
0 votes
0 answers
16 views

custom module form radios fields & ajax problem

I have a custom form, that iI develop on a custom module to get some fields from a content type with an entity reference. All is good, I can get all information, and I can save the chosen value on a ...
user avatar
  • 1
1 vote
0 answers
30 views

Filter GeoJSON feed on a value in the path

I have GeoJSON feed, created with a view in Drupal 7, that I want to filter on a path value in the url of the loaded page (/path/%). The feed is loaded as an Openlayers map on a page. The feed seem to ...
user avatar

1
2 3 4 5
530