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
3 answers
52 views

Is there a way to add a variable to the variable table through the Admin menu

Can I set a new key/value pair for the variable table from the Administrator admin/config menu in a Drupal 7 site? I don't want to have to create a one-time custom module that only contains a ...
user avatar
  • 263
0 votes
2 answers
49 views

How to export 1 or several specific rules?

I want to export one or more specific rules or components using Drush. I do have a script to export all the rules and components. drush --pipe rules-list | xargs -I{} sh -c "drush rules-export '{...
user avatar
  • 338
0 votes
0 answers
24 views

How to use integer fetched from an Entity as an Entity ID?

I have a rule component that is supposed to fetch an integer from a property of an entity named "Course" (ECK property). This property is not an entity reference but an integer. I use this ...
user avatar
  • 338
0 votes
0 answers
49 views

How can I show a flipbook as block in the front page?

I've installed the FlipBuilder module that's created via the software and can view the flipbook on its own url, but I want to put a copy of my flipbook on the front page, in its own block or in a ...
user avatar
  • 1
0 votes
1 answer
55 views

Drush issue duplicating includes/ directory

Using drush either globally or with a composer installed version, I get this double includes showing up in my fatal error (/includes/includes/): include_once(/srv/www/htdocs/sites/drupal/includes/...
user avatar
0 votes
1 answer
149 views

invalid token: [node:title] when Token module installed

I'm on Drupal 7.80 and a Drupal newb so help with how to debug as well as things to try appreciated. Taking over a Drupal install that might have some outstanding issues. Problem: It looks like 'core' ...
user avatar
  • 101
0 votes
1 answer
18 views

Drupal 7 taxonomy term fields not handling content filters

Image Resize Filter doesn't work with taxonomy term description. Resizing works fine in nodes and blocks, but not in views for taxonomy term. I'm loading term in my view template. And render its ...
user avatar
0 votes
0 answers
35 views

Filter on PHP value

I created a PHP value for a view to calculate the number of days between two dates. These dates range from negative values (-303) to positive values (422). This field is referenced as $row->php. I'...
user avatar
  • 111
0 votes
0 answers
22 views

How can I use $argument, in default value PHP, for a contextual filter?

I'm using a entity reference field on some content types. The field references taxonomy terms. Then I'm using a view to filter the available options. I'm passing the content type to that view using ...
user avatar
0 votes
0 answers
18 views

Image field input renders with type text instead of file

(Drupal newb - please go easy and give references that help me learn how to debug stuff in Drupal myself, thank you!) I've taken over a Drupal site with 7.80. There's a type called Event which has a ...
user avatar
  • 101
0 votes
0 answers
7 views

Show pop-up form after every drag and drop

I'm working on functionality based on the Homebox module. Whenever a drag and drop operation is performed, I want to show a form in pop-up. Does anyone have experience with it?
user avatar
  • 3,175
1 vote
0 answers
59 views

Git branching strategies with a small team to develop a Drupal site

We're a small team (5-6 developers) building a Drupal 7 site. Previously, we've used Features (https://www.drupal.org/project/features) to export our configurations from development to production. We'...
user avatar
0 votes
0 answers
33 views

A new field doesn't show on the page

I recovered a site from a backup which had run on Drupal 7.7. I upgraded it to Drupal 7.80 on another instance. Now, we need to add new fields to content types and add new nodes. I added a field as an ...
user avatar
  • 1
0 votes
0 answers
13 views

Views contextual display based on taxonomy for no value

I have a content type that has a name field and a taxonomy field that contains cities. I want the view to display by default the city as title and the message "nobody lives in city X" for ...
user avatar
  • 1
0 votes
1 answer
65 views

Sharing articles on Social media loses the images after posting

This seems to have only happened recently. Has anyone found a fix? I'm using D7 with Metatag, Metatag:Facebook & Metatag:Opengraph. However, I'm not convinced the issue is with any of these ...
user avatar
  • 181
0 votes
0 answers
32 views

ckeditor not loading rich text editor by default

I'm running CKEditor 7.x-1.19 with Drupal 7.80. With "Default editor state" set to Enabled, and "Show the disable/enable rich text editor toggle" set to Show, my system is still ...
user avatar
  • 1
0 votes
0 answers
16 views

Geofield field remains empty

We have a Drupal 7.80 site with an Entityform Type (entityform, v7.x-2.0-rc4) that uses a "Postal Address" field (addressfield, v7.x-1.3) and a "Geofield" field (geofield, v7.x-2.4)...
user avatar
0 votes
0 answers
55 views

How can I make composer-managed Drush 8 available to www-data?

I have an internal Drupal 7 app. The app uses php exec() to execute Drush 8.x commands after certain files are uploaded to the server via a custom form. In order for it to work we downloaded drush....
user avatar
  • 3,774
0 votes
0 answers
19 views

How do I upgrade a Drupal site that depends on multiple, complex installation profiles?

I'm no stranger to Drupal, but I have no experience with custom installation profiles. First, are custom installation profiles supposed to be overwritten when core is updated? I've inherited a Drupal ...
user avatar
  • 3,774
0 votes
1 answer
51 views

can you search database for page values

I have taken over a Drupal 7 site which used to be on a different server and has now moved to ours. I have discovered that on lots of Pages, there are images which point to the wrong server name, the ...
user avatar
0 votes
1 answer
19 views

how to call handler on every ajax request

I have created a handler for every submit request using $form['#submit'][] = 'MYMODULE_form_submit_handler' now the problem is this doesnt works on Ajax submit, or page call backs functions. i want to ...
user avatar
-2 votes
1 answer
494 views

The website encountered an unexpected error. Please try again later. unable to debug

I have just moved a Drupal 7 site to a new server. The website loads ok but if I log in as an admin person and click on any of the admin menu options I get the error The website encountered an ...
user avatar
0 votes
1 answer
28 views

Can I use a contextual filter to remove content?

So I have this view that searches for content (articles, blogs, etc.) associated with a particular author name. Is there a way with this that I can pass a contextual filter of taxonomy terms that ...
user avatar
1 vote
2 answers
35 views

Strange Page not Found, Permissions, Clear cache

On my D7.80 I have developed a custom module: function wrong_answer_menu() { dd('it entered in hook menu'); $items['wrong-answer/%id'] = array( 'title' => t('Wrong Answer Dashboard'), ...
user avatar
  • 41
1 vote
1 answer
106 views

Redirect Search API view result (Leaflet map) to display in a pane

The particular Search function starts as Full Panel Page in a style to a Google Maps Location Search page; Search Input (Block) to the top left overlaid on a current Leaflet map based on the logged-in ...
user avatar
  • 669
1 vote
1 answer
63 views

Where shall I place "PHP SAML" library so that SAML Authentication module could find it?

I have a multisite Drupal 7 installation (not using Composer), and I can't figure out where shall I place "PHP SAML" library so that the SAML Authentication module would find it. The ...
user avatar
1 vote
0 answers
66 views

GeoIP - Error: Class 'Database' not found in _registry_check_code()

On my Drupal 7.78 I installed the GeoIP module https://www.drupal.org/project/geoip I followed the steps in the Install.txt 1. Enable this module as usual. 2. Install one of the Maxmind php API: - ...
user avatar
  • 41
0 votes
1 answer
128 views

How do I hide static media file URLs?

I have developed a website in Drupal 7. Right now I have a requirement: A page should display a PDF file (already generated). Only authenticated users should have access to view or download this file, ...
user avatar
-1 votes
1 answer
120 views

I can't unverify the new owner on Google Search Console [closed]

I received a notification about a new owner into search Console. I have tried to un-verify the new owner who has been verified via meta tags. I have cleaned the website, but I can still see the meta ...
user avatar
1 vote
0 answers
36 views

How can I restrict selectable terms in a term reference field to only show those which have been used earlier by the same user?

I have a node (type = List) with 2 fields, Term Name and Body. Body is a long text type field and Term Name is a entity reference field, which is a drop down with a list of Term in Vocabulary Vocab. ...
user avatar
  • 11
0 votes
1 answer
82 views

How to change Search API index field machine name?

I am using Search API and Search API Solr modules on drupal 7. I have also drupal 8 and drupal 9 sites, and all those sites are indexed on the same solr index. So I need the same machine name for ...
user avatar
1 vote
1 answer
35 views

user_presave and user status

I have written this hook in my custom module, just to track the status changes of the users. /** * Implements @see hook_user_presave */ function mycustommodule_user_presave(&$edit, $account, $...
user avatar
0 votes
1 answer
17 views

IF statement to check if loaded entity is of type

In my module (fork of ECK Clone) I'm trying to set a default value when an entity of type "Course" is cloned. Currently I do: function eck_clone_clone_entity($entity, $account = FALSE) { $...
user avatar
  • 338
0 votes
1 answer
11 views

Display a certain page in a view

Here is what I'm trying to do is display a certain page in a view instead of all of the basic pages. How would I go about doing that?
user avatar
0 votes
1 answer
40 views

Manually update core from 7.0 to 7.78 in one fell swoop

I have recently become an admin for a site that has not been updated since 2011. there are broken links (internal links to the site's blog go to page not found, index error.) I think this is due to a ...
user avatar
0 votes
1 answer
58 views

Inline Javascript throws an error on drupal_add_js() within an AJAX callback

I am trying to get JavaScript to measure a text field and auto submit at a character limit for an Ajax callback to be validated against a Luhn Algorithm and errors out on failure to validate. I found ...
user avatar
0 votes
2 answers
176 views

Is there any way to clear the cache with specific cid?

I set some data in cache using cache_set($cache_id, $temp_data, 'cache', CACHE_TEMPORARY); from a custom module. It's cleared when I clear all the cache. Is there any way I can clear that specific ...
user avatar
  • 1
1 vote
2 answers
26 views

Is there a way to find internal links to a specific web page?

For example, for a page called mysite.com/about can you determine any other pages that link directly to this web page? The goal is to determine all of the webpages that exist in mysite.com that have a ...
user avatar
  • 11
0 votes
1 answer
18 views

How to display specific button for certain user?

I have a simple Drupal 7 page with 3 buttons. Page is only accessible by logged-in users. I have 3 roles - role 1, role 2 & role 3 What I would like to do is to show only button 1 when a user with ...
user avatar
  • 157
1 vote
0 answers
289 views

Video does not pause automatically when slider change in FlexSlider

I'm using version drupal 7 to create the "slideshow" to display the slideshow of the video, each video is embedded in its own content item. When the user starts to play the video, if the ...
user avatar
  • 11
0 votes
0 answers
22 views

Form doesn't update via hook in edit mode, instead of it page reloading

This is not happening all time (possibly for big amount of existing field, I'm not sure, with less amount of fields form is saving as it should) when I'm adding new Field collection entity or update ...
user avatar
0 votes
0 answers
35 views

It's not allowed to store backups inside the Drupal root directory

I must be missing something because I can't determine what I'm doing wrong. I've got a D7 site, and we're running Drush 8.1.10 I'm trying to run through some updates but I keep running into this error:...
user avatar
  • 399
0 votes
1 answer
50 views

Headers already sent

I found this error repeated several times for two of the pages on my website. Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/mydomain....
user avatar
  • 41
1 vote
1 answer
58 views

Editing a node deletes body content reproducibly if Locale module enabled

I am experiencing a pretty serious problem leading to data-loss in D7. Editing any existing node leads to empty body content and newly created nodes have no body content whatsoever. Update: The error ...
user avatar
  • 381
2 votes
1 answer
31 views

Disable links to username and date

One of my tasks requires me to disable the links to username and date fields generated from diff_diffs_show() whose output is rendered as in the following screenshot. The code outputting those links ...
user avatar
0 votes
1 answer
26 views

Entity reference additional field

In D7 I have two new node type defined e.g. branch and leaf. The branch is a collection of leaves that I'm referring to using the entity_reference module. In the picture below the leaves are the nodes ...
user avatar
  • 41
0 votes
0 answers
50 views

Add external script in head after CSS loading

My question maybe is a little bit strange. I have Drupal 7.x and i need to add in <head> a script to verify my adsense account: <script data-ad-client="ca-pub-xxxxxxxxxxxxx" async ...
user avatar
0 votes
0 answers
33 views

Can't access to my database while installing the site

When I try to install my Drupal site, I pass throughout the first 2 steps. When I type the name of database, username, and host, nothing happens. I only see the errors about username, database, and ...
user avatar
1 vote
1 answer
124 views

Migrating user accounts to Okta

I'm trying to migrate users exported from Drupal into Okta using the /api/v1/users API (specifically [creating users with import hash][1]), and am stuck, and desperate for help as I'm late on a ...
user avatar
0 votes
1 answer
344 views

How can I preprocess pager links for a view display?

I've created a custom Drupal 7 block view that uses a mini pager. I need to display the pager-previous and pager-next links as images, and replace the pager-current link with some text. Do I need to ...
user avatar
  • 387