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
0answers
6 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?
2
votes
0answers
55 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'...
1
vote
0answers
30 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 ...
1
vote
0answers
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 ...
0
votes
1answer
22 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 ...
0
votes
0answers
22 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 ...
0
votes
0answers
7 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)...
1
vote
0answers
23 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....
0
votes
0answers
17 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 ...
1
vote
1answer
41 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 ...
0
votes
1answer
16 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 ...
-2
votes
1answer
62 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 ...
0
votes
1answer
21 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 ...
2
votes
2answers
29 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'), ...
1
vote
1answer
64 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 ...
1
vote
1answer
39 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 ...
1
vote
0answers
39 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: - ...
1
vote
1answer
48 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, ...
-1
votes
1answer
35 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 ...
1
vote
0answers
31 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. ...
0
votes
0answers
8 views

Enabling field translation for content type causes node to not show value for that field

I am using Drupal version 7.80. I have a content type called "Public Resource" that has a bunch of fields. The content type has "Enabled, with field translation" for the ...
0
votes
1answer
28 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 ...
1
vote
1answer
26 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, $...
0
votes
0answers
13 views

How to prevent users to go to ?q=user to try to log in?

I have so many warning messages in my "Reports" that show something like: Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (...
0
votes
1answer
13 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) { $...
0
votes
1answer
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?
0
votes
0answers
18 views

Using rules to Flag a Product Display Node on Checkout

Every user is supposed to purchase Particular product only once. So i have a view to list the Product Display which by using FLAG module i can list only Unflagged Product Display nodes (Products ...
0
votes
1answer
34 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 ...
0
votes
1answer
54 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 ...
0
votes
0answers
19 views

I've altered the exposed filters how I want them in hook_views_pre_build(). How do I retain those settings after an AJAX filter is used?

In Drupal 7, I have a content type that displays a content view within it. This view display contains 4 exposed filters. On the content type, I have a custom select field which allows the author to ...
0
votes
2answers
37 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 ...
1
vote
1answer
18 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 ...
0
votes
1answer
17 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 ...
1
vote
0answers
114 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 ...
0
votes
0answers
20 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 ...
0
votes
0answers
21 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:...
0
votes
0answers
8 views

clientside validation, prevent user to enter same values in two fields before submitting the form

Im using Drupal7, contributed module: clientside validation My issue is, I want to prevent user to enter same values in two fields before submitting the form. Example: FirstName: Test Last Name: test ...
0
votes
1answer
32 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....
0
votes
0answers
28 views

Is it possible to fire a condition with JavaScript?

I have a webform with radio buttons, where I have conditionals made normally with webform conditions tab setting. Everything works nicely, I have some fields (just text fields) depending on ...
1
vote
1answer
52 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 ...
2
votes
1answer
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 ...
0
votes
1answer
16 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 ...
0
votes
0answers
15 views

Error copying file. Is there a permissions issue?

I have a process that fetches a file, then moves it (overwriting if already exists). The copy part fails, and I cannot determine why. Here is some PHP I am using to reproduce the issue I am seeing (...
0
votes
0answers
37 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 ...
0
votes
0answers
31 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 ...
1
vote
1answer
89 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 ...
0
votes
0answers
7 views

How to display uploaded files with uncommon extensions using file field?

I have a standard Drupal file field to upload different files via this field. I have set the "allowed extensions" to: txt, pdf, doc, docx, pages, key, ppt, pptx, numbers, xls, xlsx, csv, tar,...
0
votes
1answer
103 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 ...
0
votes
1answer
56 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 ...
-1
votes
1answer
17 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 ...