Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [7]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

-2
votes
0answers
8 views

Notifications_Node_Update_Event not load on cron

When i execute a cron, i got this error : PHP Fatal error: notifications_cron_queue_event_worker(): The script tried to execute a method or access a property of an incomplete object. Please ensure ...
1
vote
1answer
11 views

Undefined index: und on .tpl.php for content type

How can i fix the error message? the error message is Notice: Undefined index: und in include() (line 9 of /var/www/html/sites/all/modules/custom/theme/icons.tpl.php). my code is: <?php ...
1
vote
2answers
23 views

How do I let non-admin user approve comments?

I'm looking for a way to allow a non-admin user to approve comments. I thought a Flag/Rules combination might be a solution but I can't figure it out. I added a content-moderator role, then I ...
0
votes
1answer
17 views

How to change order currency in cart/checkout page?

I want to change the price of the order in the cart/checkout page. Let's say I have a product ABC with $100(USD) and I added that in cart. But after adding I want to change the currency to EUR and ...
-2
votes
0answers
20 views

In file URL double slash works but single doesn't [on hold]

My website contains a URL to PDF file as shown in HTML code below- <p><a class="button" href="/sites/default/files/media/info.pdf" target="_blank">View Information Here</a></p>...
-2
votes
1answer
22 views

Remove or prevent theme CSS styles on specific form elements

Is there a way to create a form element and prevent Drupal from adding classes by default? I have elements that are highly customized. My theme assigns classes by default that ruin these specifically ...
1
vote
1answer
21 views

Why is the jquery_update module not supporting the latest jQuery version?

The recommended jquery_update module only supports 1.10. Why recent jQuery security version 3.4.1 not updated? https://jquery.com/download/ So is it recommended to make my Drupal site to update with ...
0
votes
0answers
11 views

How can I pass parameters to a Services endpoint?

I have installed Drupal 7 and enabled Services in it. I have also created an endpoint /api/v2/ and in resources, I have allowed nodes to be listed as JSON. I have sent a GET request using browser or ...
-1
votes
0answers
29 views

Generate Static Site using Drupal 7 and Gatsby [closed]

I am in panning to generate static and upto date site using Gatsby and Drupal 7 and content will be published to Gatsby on every Monday. Gatsby works perfectly if I integrate GarphQL. But in Drupal 7, ...
0
votes
1answer
16 views

Get data from remote REST API (read only)

We use a remote service (not Drupal) to publish press releases and to show those releases in a remote newsroom. This remote service offers an API so we should be able to fetch and show the newsroom ...
0
votes
1answer
30 views

How do I skip importing a duplicate item?

I use unique field mapping, but instead of blocking the import on duplicates from CSV, it overwrites the data in Drupal and inserts the new value from the CSV file. This is the default behavior with ...
0
votes
0answers
8 views

Contextual raw value spiit

I need to take a first text before dash from an address bar to list related content. So for example, from www.aaa.com/US-NY-New-York, I would like to take US with contextual filter. I tried the Raw ...
0
votes
0answers
9 views

How to access the value of another field in the same field collection from a field template file?

In Drupal 7 I've customised a file download field in a template file: field--field-downloads.tpl.php Within the same field collection (using the 'field_collection' module: https://www.drupal.org/...
0
votes
1answer
33 views

Unable to load css files using ['#attached'] or drupal_add_css

I'm attempting to attach several css files to a Drupal 7 module. All files have identical read/write/execute and owner permissions. I haven't had trouble with one of the three files but I can't get ...
0
votes
1answer
21 views

How can i add ajax callback to checkbox in drupal form?

I am using taxonomy manager module I want to add ajax callback to checkbox tree view for checkbox is checked condition but it is not working can some one please suggest me. I have modified the code ...
0
votes
1answer
30 views

Site migrated to the new server with PHP 7.2 and I can't log in

We're preparing to get our Drupal infrastructure moved from PHP 5.6 to PHP 7.2. In order to start testing, I migrated a Drupal 7.67 multi-site from our current production server to a test server ...
0
votes
0answers
18 views

How to “link” Views exposed filter (fulltext search) with Facet API block (on a specific field)?

Using Drupal 7.67, Search API, Search API Database Search, Views and Facet API. I have built a search engine page with Views and Search API (with a server linked to the Drupal database tables). Two ...
0
votes
0answers
8 views

TCPDF generated PDF is not sent as email attachment

Below is my code for generating a PDF and attaching to email using drupal_mail_system. I am using TCPDF library and in Drupal 7. I am able to generate the PDF, but unable to send that as an attachment ...
0
votes
0answers
14 views

How to fill a multi-value term reference field in a ajax callback in a node add/edit form?

The machine name of the term reference field is "field_persons", using the autocomplete_deluex widget. function zwznertags_form_alter(&$form, &$form_state, $form_id) { if($form_id == '...
0
votes
2answers
23 views

How do I get the form submitted data in a custom module? [duplicate]

I have create a webform in Drupal 7. I want to access the submitted data in a custom module. I used my_module_form_submit($form, &$form_state) but no data has been found. Please Help.
0
votes
2answers
26 views

just want to change checkbox value while submit

I am using drupal 7: $form['title']['#tree'] = TRUE; $form['title']['node_first'] = array( '#type' => 'checkboxes', '#options' => array( 'value' => $value->title, ), )...
0
votes
0answers
38 views

How can I block bots after a number of failed Captcha attempts?

I am seeing hundreds of daily spam submissions that try to bypass Drupal Captcha module. I am already using honeypot contrib module, keyword blacklisting (rules) and I have added quite a number of IP ...
0
votes
0answers
17 views

Limit number of node publish by user and delete automaticaly old publication

Is there a way by Flag or Rules or other to limit the number of publication for exemple to 500 by user order by date AND delete by cron the older post The module Node limit just limit work great for ...
0
votes
0answers
28 views

D7: user_check_password() returns false but password didn't change

We've been having quite an unusual issue with Drupal: at seemingly random times it decides the password hashes for all users are invalid, and they have to do a password reset to be able to log back in ...
0
votes
0answers
13 views

Proper way to *define* new menu status code for a custom module

What would be the proper way to define a new menu status code inside a custom module? I'm developing a module where a user can add family members which can register for events. In the same spirit as ...
0
votes
0answers
11 views

Acess denied to files set as permanent in tmp folder

I made a module that saves custom files in the tmp folder when users add a product to the cart, and move the file to private folder when the order is submitted. If I set the file status to 0, users ...
0
votes
0answers
12 views

What is the best way to create uneven grids

I have a a 2-column grid view. They are equally sized but I thought that it would be nice to make one of them 1/3 and other 2/3 on each row. Just like in the example image. What would be the best way ...
0
votes
1answer
12 views

How to generate my own patches to update core for security when fuerstnet.de's “Drupal upgrade the easy way” page is out of date?

For Drupal 7, under the current host I'm using (which doesn't provide things like drush), I've found that patching is the easiest approach to updating core. However, the commonly-referenced page which ...
0
votes
0answers
39 views

How to alter data set up to be alterable by drupal_alter()?

The User Import project has an array named $supported. It also provides the following hook to alter this array: // hook to add functions to this array. // Will call all modules implementing ...
-1
votes
0answers
8 views

How to print Leaflet map on a page

That code add map html <div id="leaflet-map-1808146236" style="height: "></div> but no map: $map = leaflet_map_get_info(); $map['settings']['zoom'] = 15; $features = array( array( ...
0
votes
0answers
10 views

Can file_copy() copy files between 2 folders in the same S3 bucket?

I need to copy images from one S3 folder to another S3 folder. Can file_copy() do that, or do I have to look into other ways to achieve this?
0
votes
0answers
28 views

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1074 Column length too big

I am trying to update my database collations to utf8mb4 to support more characters (like emojis etc.) following this guide: https://www.jeffgeerling.com/blog/2016/getting-emoji-and-multibyte-...
0
votes
1answer
23 views

Remove a contextual filter programmatically

Is there a way to programmatically remove a contextual filter from a view? I have a view where, at times, I want to display it without the contextual filter active. This is the code I tried. ...
0
votes
0answers
12 views

Drush migration argument for xml source

I asked this question a while back and it was answered correctly and helpfully. However, I'm currently looking for a different solution. I need a way to create a custom argument which I can use to ...
0
votes
1answer
16 views

How to print taxonomy term Id from URL programmaticaly?

In drupal 7, I just whant print the ID of the taxonomy term from URL like http://localhost/mysite/taxonomy/term/1 on code to use in function. By advance thanks
0
votes
1answer
24 views

Migration of field_collection with migration_d2d

In D7 to D7 migrations, when it comes to field_collections I know “ Your field collection migration should be run after the host entity migration. ”. I have done my host entity migration via the ...
0
votes
1answer
16 views

Building views relationship with location

I have an article and food content types. I use location module fields in both content types. So for example, when I write an article about restaurants in New York, I choose article's location as ...
0
votes
0answers
8 views

Sort views results by context

Background I have a global site search powered by Search API and Solr. This site search returns a mix of multiple content and file types. Some of these content types have a region taxonomy. Content ...
1
vote
1answer
22 views

Are changes to the user status stored somewhere?

I've made a pretty serious error of judgement creating a view for a client that shows users created before a date AND still active. The error was adding a date filter. This was meant to be used at ...
0
votes
1answer
27 views

Adding a script to certain pages

I am trying to add a script code on all but few pages. I tried the following code on the template.php bfile, but it doesn't work. function THEME_preprocess_page(&$variables) { if (isset($...
-1
votes
1answer
34 views

Drupal maintenance over several environments [closed]

I have a production environment for a Drupal 7 site. This environment is replicated to a staging environment, which we use for testing updates to modules and drupal core (same major version). We ...
1
vote
2answers
37 views

Views callback work only once with advanced form block

this code work but the views is callback only once (reload only once), any idea to reload more than one time ? see in detail on drupal.org function modulename_form_alter (&$form, &$...
0
votes
0answers
25 views

LDAP Authentication without storing in Drupal

I'm new to Drupal and would like to authenticate with my LDAP server. I can connect them and I can connect with a user in my directory. However, I would like that when I log in, the user should not be ...
0
votes
1answer
14 views

How to use view's relationships to pull user entity reference data?

I created 2 new user fields for the user (object/entity) on my D7 site. Using views, I can select 'content' or 'user' for querying data. When I use views to query the 'user', the 2 new fields come up ...
0
votes
0answers
15 views

Edit a node via entity reference using Rules

THE SETUP: A custom user type - "Store Owner" - has access to create/manage 2 types of content: Store (which includes a "Related Products" field) Product When the user first sets up their account, ...
0
votes
0answers
23 views

Need to alter “No Paragraph added yet. Select a Paragraph type and press the button below to add one.” message - Paragraph Module

I am using paragraph bundle and I want to alter this message with my custom text "Please click on below button to add data".
0
votes
0answers
10 views

How to let Drupal Nodejs update views if create/modify node is through AJAX

The purpose to make simple todo list, where user can: Add new todo, Modify his/her existing todo, Mark his/her existing todo completed. all of the above in his/her home page (without going into ...
0
votes
1answer
24 views

Commerce Address Book – need to reuse customer profile without address

In addition to the default shipping and billing addresses I have added a customer profile in Drupal Commerce, where the customer can add additional info, like email for invoices, special marking on ...
1
vote
1answer
7 views

'Order of importance' type field

I'm using an Entityform to create a survey for a client, however one of the types of question they have is to rank a number of options in terms of importance to the user. Similar to how the ...
0
votes
0answers
9 views

How to import data from multiple urls using feeds importer?

I have two api urls. One returns all the products with product ids and the 2nd url return detail about a single product using the product id. So my requirements are. Request the first url, Get the ...