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
1answer
54 views

How can I disable these URLs?

In Drupal 7, the following URLs show the same node. http://www.example.com/node/5 http://www.example.com/node/5/randomtext1 http://www.example.com/node/5/randomtext2 http://www.example.com/node/5/...
-4
votes
0answers
18 views

Credit card textfield: Prevent to save in the database

How can I prevent the credit card textfield saves on the database?
0
votes
0answers
26 views

get translation programmatically of field value in specific language

I have created a content type (pdf_form) to which I added a field_gender_languagetest with two options, male and female. I translated both the options in German using the translation tab. Now I am ...
1
vote
0answers
100 views

How do I fix the “You're attempting to access the site via IP address or invalid hostname.” error?

I'm running Drupal 7 on Pantheon and have started getting the following error message whenever I try to save content. You're attempting to access a Pantheon site via IP address or invalid hostname. ...
0
votes
1answer
35 views

Custom translation function

I need own translation function in my custom module where i have defined language codes ('en','ja','de'....etc) Now i just wanted to pass word and language code as a parameter and it returns ...
1
vote
0answers
14 views

Can the Mailchimp module email node content?

I have a blog page. I want to add a sign-up box to collect email addresses so I can email everyone when a new blog entry is added. As I'm on shared hosting, I believe there is less chance of them ...
0
votes
1answer
27 views

Securing admin account, silly “solution” found

Hello fellow Drupalers, I've been given the task of securing our admin account, on our websites (drupal 7) from outsiders. My first thought was 2FA and I looked at some of the modules (tfa, google ...
-1
votes
0answers
21 views

Display a site on hubshare [duplicate]

I am trying to display my drupal 7 website in an iframe on hubshare. I get a message saying that the website won't allow Firefox to display a page if it is integrated in another website. I am new to ...
0
votes
0answers
15 views

How to move Panels with content from development site to live?

I want to move the content which is there on panels from local to dev. (Panopoly module is used on the project) So that I don't have to re-create the content on dev. I have tried to used this modules ...
1
vote
0answers
27 views

Why do I get “The file could not be created.” on a site I locally duplicated?

I've duplicated an online site to a WAMP localhost site. The front page layout is broken and the front page shows this error. The file could not be created. The website encountered an unexpected ...
0
votes
0answers
20 views

Error page after Paybox offsite validated payment

Working on Drupal 7.81 and Commerce Paybox 7.x-1.3 Everything is going well except for the redirection from Paybox to my e-commerce site, I constantly have an error page after redirection. Paybox ...
1
vote
0answers
7 views

Multiple image sets shown in a view using Colorbox

I need to have multiple image sets in a content type. I need to output them in a view that would show first image in the set (and cycle through the rest in that set) in Colorbox. I tried to set up a ...
0
votes
3answers
40 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 ...
0
votes
2answers
35 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 '{...
0
votes
0answers
21 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 ...
0
votes
0answers
18 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 ...
0
votes
1answer
28 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/...
0
votes
1answer
22 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' ...
0
votes
0answers
12 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 ...
0
votes
0answers
31 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'...
0
votes
0answers
16 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 ...
0
votes
0answers
16 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 ...
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
53 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
2answers
20 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
16 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
15 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
36 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
15 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
42 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
18 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
26 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
60 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
35 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
26 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
37 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
32 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
7 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 ...
-1
votes
0answers
9 views

How do I add a token for upcoming or past event?

How do I create/find a token in Drupal 7 that determines if the date value is past today or not (i.e. upcoming or past)? I'm creating a map using Views and Leaflet, and I'd like to change pin color ...
0
votes
1answer
22 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
25 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
17 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 ...

1
2 3 4 5
530