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

Why does the Magnific Popup not show alt or title in bottom bar?

I have an existing site built in D7. I've created a new page that displays a views based grid of images of one specific content type. When you click on an image, magnific pop-up creates an overlay ...
0
votes
1answer
33 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
30 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
16 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
23 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
16 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
15 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
20 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
18 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
7 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
23 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
22 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
30 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
15 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
14 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
21 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
29 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
46 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
21 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
20 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 ...
0
votes
1answer
14 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 ...
0
votes
1answer
19 views

Seeing PHP info twice in status report

On the status report page of a drupal site we run with 7.78, the PHP version number gets reported twice. We have only setup 1 PHP instance in IIS with version 7.3.24. How do I correct this to pull ...
0
votes
0answers
15 views

Published content goes offline when edited - most prevalent on popular content

We have a Linux Drupal 7 environment with memcache and mariadb. It appears that if a page/content is being hit when an editor is publishing an update, the page can be taken offline. It can take ...
0
votes
0answers
11 views

Translation doesn't load other languages

I installed the Entity Translation and the Webform Translation modules. I enabled the webform translation from the entity translation configuration, and tried to translate a webform field. Only ...
0
votes
0answers
20 views

View won't save end date configuration as filter criteria

I'm using Drupal 7 with views 7.x-3.15 and Date 7.x-2.9 I have a date field for an "Events" content type. Events can sometimes last more than 1 day, so I have enabled an associated end date. ...
0
votes
0answers
22 views

Check multi-value field values to see if they are different after save

I have an ECK entity (not a node) in Drupal 7 that contains both properties and fields. Some fields are single value fields e.g. field_tags and others are multi-value fields e.g. field_description ...
0
votes
1answer
21 views

Dynamic query with left join

I need to collect comments that belong to certain user and submitted on pages of certain content type nodes. Currently I'm making two queries: $nodes = db_select('node', 'n') ->fields('...
0
votes
1answer
26 views

db_delete does not actually delete

I'm trying to delete from the dr_cache_form table,in D7, but somehow the record does not get deleted function mymodule_multistep_form_submit($form, &$form_state) { //..... ...
0
votes
1answer
12 views

Can I add a custom block?

I want to have a block with 3 text body fields. I've done this before in Drupal 8 where I created a custom block and was able to add different fields to it. In my Drupal 7 setup, I can add a block but ...
0
votes
0answers
19 views

The following module is missing from the file system: “post_articles” [duplicate]

I was given a Drupal website in the form of a Drupal database running on a website and an archive containing a Drupal installation complete with a theme. Upon uploading the installation to the server ...
0
votes
0answers
8 views

Drush make and contrib module makefiles

If I run drush make drupal.make.yml . the downloaded contrib module colorbox has a colorbox.make file that is executed and install the library colorbox. How to not permit to run that files, with ...
0
votes
1answer
13 views

ctools module keeps getting unloaded?

I keep getting this error while trying to access content using The Course module. Call to undefined function ctools_get_plugins() To my understanding this means the ctools module is not loaded, ...
0
votes
1answer
31 views

Custom js added with drupal_add_js doesn't actually get added if I enable “Aggregate JavaScript files” or “Cache blocks”

The site is the most stock, only Drupal 7 core is installed. included my theme, where the page.tpl and html.tpl theme files are copied from core I created a Yandex.Maps module, this is a block where ...
0
votes
0answers
10 views

Ckeditor white gaps

I am using the ckeditor for drupal 7. Everything works fine however, I noticed something wrong regarding spaces. I have an article with an introduction whose font Arial and a small paragraph whose ...
0
votes
0answers
20 views

Set background picture only within the text field, not the entire page

How should I make the background image appear within the text field (in the Basic page content type) but not the entire page? I am using the Background Image Formatter module, running on Drupal 7 with ...
0
votes
0answers
12 views

Reading internal URLs with single backward slash instead of double (http:/ instead of http://)

Drupal is reading some internal links with single slash instead of double slashes. This is causing some pages to crash. I first noticed this when I edited a webform and saved. I checked the settings....
0
votes
0answers
15 views

How do I programmatically disable the pager?

I'm using a view with infinite scroll. I want to disable the pager for the default view and keep the pager if we select some options from filters. Can we do it via code?
1
vote
0answers
39 views

Field type where big data is not loaded into memory if not needed

Background Normally when an entity is loaded in D7, the 'field_attach_load' step will load all the data from fields into the entity object. The field_sql_storage_field_storage_load() loads the data ...
0
votes
1answer
16 views

Moved Site - Can't find original CSS for look other than in the ADVAGG

I've inherited a drupal 7(I'm a beginner) site that had ADVagg installed. I added a stanza in my nginx config to take care of those files. What I'm running into is that there is a button on the ...
0
votes
0answers
19 views

How can I use range filters for strings?

I have created a view in Drupal 7 in which the dates are in text format, eg 2020-10-12 and I want to filter date ranges using between or >= and < but there doesn't seem to be such an option for ...
0
votes
0answers
37 views

Access denied trying to edit node that I own

In an administrator account using the administrator panel i can create and edit content from content type Country. But when they are created from a script, and even if i own them, i can't edit if ...
0
votes
0answers
23 views

How can I completely disable cron so that it won't run even if the cron URL is hit or cron is ran manually?

When working on a dev site I'd like to put in a safeguard to make sure cron cannot run, even if triggered manually. Is there a way to do this in Drupal 7?
0
votes
1answer
30 views

Loading nodes that are only available to the current user

How do I programmatically load nodes that are available to the current user? I used node_load_multiple(), but it seems to directly load nodes from the database, bypassing permissions.
0
votes
1answer
24 views

What is the recommended jQuery and jQuery UI version?

What is the recommended version of jQuery and jQuery UI that I should use on a Drupal 7.77 site? I know the latest jQuery version is now 3.5.1, but what is the recommended version for a Drupal 7.77 ...
1
vote
0answers
35 views

Updating modules creates An AJAX HTTP request terminated abnormally error

Drupal 7.77. I have three modules that need to be updated. Trying to update any one of them results in this error: An AJAX HTTP request terminated abnormally. Debugging information follows. Path: ...
0
votes
0answers
70 views

PDO database connection error?

Super strange, my site was up and working fine yesterday. Today, I navigate to my home page and I'm thrown this series of errors: Warning: PDO::__construct(): php_network_getaddresses: getaddrinfo ...

1
2 3 4 5
530