Stack Exchange Network

Stack Exchange network consists of 174 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.

17
votes
0answers
922 views

How do I setup Chained fast backend, Varnish, APCu and Redis cache bins in settings.php?

On a Debian Jessie server (Nginx, PHP 5.6, Zend Opcache), I installed Apcu, Redis, Varnish. I also installed APCu, Chained fast backend, Redis and Varnish modules. In order to make these caching ...
4
votes
0answers
54 views

How to get a second join into hook_views_data?

I am trying to make the value of a string (name) found in mymodule_names.name available to Views by means of hook_views_data(). To get the name, I need to first look up the nid of the node I want ...
4
votes
0answers
421 views

How to get Ajax to load first?

After updating module webform_paymethod_select I noticed that Ajax on webforms stopped working. I was unable to edit any existing webforms or create new ones. This happens when JS Aggregation is ...
4
votes
0answers
75 views

unable to create new draft programatically for published node

I am using workbench_moderation module. When I edit the node and save it using node_save($node) it is changing the status of actual node to draft and original node is getting unpublished. While I ...
4
votes
0answers
399 views

currency field and currency switch with currency module

I installed the Currency module expecting to setup a currency field and a currency switch. Like switching the language, I'd like to switch the currency (of a field). The currency should switch ...
3
votes
0answers
146 views

Date filter GRANULARITY for Search API VIEWS

I am working on Search API view. There is a Date Exposed filter. The requirement is we have to filter based on Month-Year instead of Day-Month-Year. But there is no Granularity option to select for ...
3
votes
0answers
116 views

“Hide if empty” does not work in Views if 'Show prefix and suffix' is enabled

I have a price field that I need to hide if the value is 0. As I want to use :- as a suffix I turn on "Show prefix and suffix". Unfortunately this makes the field visible again. In my different views ...
3
votes
0answers
119 views

Site falls over on loss of single “key” memcached instance in distributed cluster

I have a Drupal 7 site sitting behind HAProxy that is load balancing across 4 web servers. Each of these web servers is also running a memcached instance. All the Drupal applications have been ...
3
votes
0answers
50 views

2 dependent autocomplete field in CCK

I have 2 autocomplete (autocomplete1 and autocomplete2) field in a content type. I need to make one of them depend on the other one I make a hook_form_alter to change the path of the autocomplete2 I ...
3
votes
0answers
56 views

A reliable way to set #required on form fields that are attached to a form via field_attach_form

I need to be able to reliably set #required = TRUE on form fields that are attached via field_attach_form. Some fields might be $form['field_name'][LANGUAGE_NONE]['#required'] = TRUE while others are ...
3
votes
0answers
63 views

Why Each user can modify flag field of other users by VBO(Views Bulk Operation)?

I have many users, and I have a flag and also flag field. users can flag contents and add value in flag field when they are flagging a content. for modifying flag field I'm using VBO Module. But each ...
3
votes
0answers
73 views

How to disable updates during migration?

For the past couple years, something has confounded me about Drupal Migrate: there is a --update option and a --needs-update option when using Drush, but Migrate seems to update on it's own without ...
3
votes
0answers
99 views

Combining two queries

I want to list All the images that are present in more than one article. My setup is like this. I have a content type "article" and it has a field of type "Field Collection" (field_medias), the ...
3
votes
0answers
86 views

How to use localized date formats I've defined?

I am translating a site to French. I am using Internationalization, Entity Translation, and several other modules. By default, at admin/config/regional/date-time, there are a bunch of date types ...
3
votes
0answers
339 views

How to allow uploaded image brightness and contrast to be edited with a UI like a slider?

Many sites, like eBay to give a well-known example, allow users to edit images they upload with a slider or buttons to increase or decrease brightness and contrast. When the UI is used, a new image is ...
3
votes
0answers
331 views

View exposed filter block no alter form with ajax

I am trying to filter out the no results items in my exposed filters. (I know i can use selective filters, but in this case i can't use them). So i alter the filters with form_alter, check which ...
3
votes
0answers
43 views

hook_node_load doesn't work when node is loaded by REST api

On the web, everything works fine (and I even checked the node values with krumo), when I tried fetching the json equivalent of the node using REST api, it's as if the hook_node_load() didn't run. If ...
3
votes
0answers
706 views

watchdog not putting messages in log

I'm trying to write a custom message to my log (viewable at /admin/reports/dblog) using the watchdog function. function create_vector_user_mail($key, &$message, $params) { watchdog("VECTOR", "...
3
votes
0answers
572 views

Using multiple keys on multi row db_merge?

I am using db_merge (mysql) for getting jobs into my queues. I therefore have each task only once (the job is quite intensive and many things can trigger the task to be queued, so want to avoid ...
3
votes
0answers
80 views

Drupal 7 UberCart Volume Pricing with Role Based Pricing Support

I have scenario where the default UberCart Volume Pricing should support user role based pricing. Fox example : If I have a product, it pricing has to configured in such a way that For user role ...
3
votes
0answers
291 views

Get Location module Block : how to show map markers for particular taxonomy term - exposed to user

I am using the Get Location module for building store locator functionality in my site. I have made a content type with field = address and field type = Geolocations Fields with widget = Geocoder. I ...
3
votes
0answers
713 views

Unzip a file in Drupal 7 Form API and upload extracted files

I'm creating a custom form using Drupal 7 Form API, and I need my users to be able to select a ZIP file containing a number of other files. I'd like to be able to extract the files and then upload ...
3
votes
0answers
93 views

Drupal Mailchimp module for multilanguage sites

I setup a D7 multi-language site. People can subscribe with my MailChimp newsletter list when they register at user/register. It works fine with german, the default language, but when somebody ...
3
votes
0answers
2k views

Customizing the search results page with Apache Solr

I have business requirements to do a total overhaul of the Search Results page for our site. Based on the searching i've done so far, I have a few options to adjust the results pulled by the search: ...
3
votes
0answers
104 views

Drupal 7 Webforms 4, prevent submission if value of field is less than or equal to previous submission

I know that you can prevent submission if a specific value has previously submitted. However can you prevent a submission if the submission is less than or equal to a previously submitted value. ...
3
votes
0answers
135 views

drupal_add_tabledrag dragging but not dropping

I am trying to use the drupal_add_tabledrag in a form table, the dragging is added fine, but dropping is not working $entity_ids = range(10,20); // Loading dummy data $entities = entity_load(...
3
votes
0answers
194 views

How do I prevent D7 exposed filter on end date from reverting to start date if no end date has been entered?

I have a "membership date" field with an optional enddate and want to create a view showing membership list at a selected date (exposed filter). The basic logic is clear: nodes should appear in the ...
3
votes
0answers
86 views

Protected Pages configuration not showing in admin/config/system

I am trying to use the Protected Pages module, using drupal version 7.24 I have installed and enable the module, applied the module's permissions (which are visible under /admin/people/permissions#...
3
votes
0answers
257 views

Delete the original image after cropping it with the imagefield crop module

The title says it all. When I upload a big image of 5MB but I only need a small part of it I can cut out a part (=crop). I can then use that cropped piece for other purposes. But I never need the ...
3
votes
0answers
1k views

Call to undefined function lock_acquire with Drush on Drupal 7

I’m running my local development sites on a Windows machine with Uniserver. I have them all set up as vhosts. Most of them are Drupal 7, but a couple are Drupal 6. I installed Drush for Windows ...
3
votes
0answers
218 views

Drupal 7 AJAX error when running batch with Internet Explorer

I'm getting an AJAX error when running any batch with Internet Explorer 8, 9 and 10. This error occures when I'm using "feeds" module, "views send" module or when I delete a user. For example, when ...
3
votes
0answers
526 views

Commerce line items without reference to product

With Drupal Commerce, when visitor adds a product to his cart, system creates commerce line item instance. The order consists of line items, and these line items have references to particular products....
3
votes
0answers
1k views

Multiple date picker for date popup widget

I've been searching for a while, but didn't find any contribute module to store multiple date values picking them from only one date popup calendar widget, just a 2009 feature request for D6. In D7 I ...
3
votes
0answers
691 views

How do I get the current node's parents (using PathAuto and Custom Tokens)?

A url for my site looks something like this: www.mysite.com/best-sellers/mistery/novels/this-is-a-book-title I want to remove "best-sellers" from that chain. I'm using PathAuto to generate my paths. ...
3
votes
0answers
204 views

Is there a way to use tokens in a Views: Link Display setting?

This question pertains to Drupal 7 and Views 3 (specifically 7.23 and Views 7.x-3.7): Is there a way to enable the use of custom tokens within Drupal Views Link Display settings? My use case is a ...
3
votes
0answers
125 views

Related terms summary views block

I have a content type with two fields for two different taxonomy vocabularies (Section & Extras). "Section" only have one value, while "Extras" can have multiple values. I created a block using ...
3
votes
0answers
219 views

Having an entity registration for an organic group

I have a website where we organise yearly events of 2 - 3 different types. To register users to the event, I'm currently using the entity registration module. (Tell me if you think this is not a good ...
3
votes
0answers
784 views

Multiple Select Listbox Views Filter Drupal 7

I have a view with some fields in place for instance one field is a product name. I want to make a multi-select listbox that will allow for selecting 3 of them from the list of products that's a field ...
3
votes
0answers
284 views

Mixed Language Negotiation (Prefix and domain) in D7

We have a single code base and database for all the 3 languages of a certain website: http://example.com/ - default, no prefix, English http://example.com/pt - pt prefix, Portuguese http://example....
3
votes
0answers
348 views

PHP code not saving in a Computed Field

I'm using Drupal 7 and the Computed Field module. I have this problem with both the Custom Content Type and Custom Entity Type. When I add a computed field and go to the Field Settings, I type some ...
3
votes
0answers
3k views

Clear example of Service module authentication and authorization

I've been playing around with Service module, which it seem the best module for exposing web service specificaly I have REST architecture. Nevertheless haven't been able to clear how does the ...
3
votes
0answers
1k views

How to use JW Player Video Module, To Stream Video Intelligently, w/ bitrate switching. Is it possible?

I'm not a developer, so excuse any terminological or module reference errors, but as I understand things, the title sums up our primary obstacle. We can store video files on AmazonS3 and distribute ...
3
votes
0answers
2k views

Views AJAX pager is not working for custom theme

I am using a custom theme for my Drupal site. Here I have created views with page displays, Kept AJAX pager 'on'. When I click on next the pager keeps on loading. In firebug I found the following ...
3
votes
0answers
716 views

Programatically setting ratings with Fivestar/Voting API (Drupal 7)

I am working on redoing a site with Drupal 7 and the old site has a rating system and I would like to be able to import the old ratings along with the project. Currently all I have access to is the ...
3
votes
0answers
2k views

How to debug weird “page not found” after creating a view?

I'm having a really weird problem with my site on my localhost. It might be similar to this issue. I had setup the site just a few weeks ago had started to migrate user and node records using the ...
3
votes
0answers
2k views

Extend Search API: Create and expose custom sort/filter from db_table

I have a geocoded field for each node of a certain type. It simply geocoded the address filled in the node create form. I've multiple views based on the search api (database not solr) and use facets ...
2
votes
0answers
22 views

How can I prevent the theming layer being loaded for JSON requests?

I can verify that views-exposed-filter.tpl.php is being loaded for basic JSON endpoints that don't re-render any form fields: My autocomplete - /search_api_autocomplete/...
2
votes
0answers
18 views

How to access the fields of a custom node variable in a custom Rules event?

I have created a custom Rules event, following the instructions in https://drupal.stackexchange.com/a/215857/16550 The event provides a custom node variable: function MYMODULE_rules_event_info() { ...
2
votes
0answers
27 views

Can I truncate “field_revision_body” without breaking the site?

I am cleaning up a client's Drupal 7 site that has been badly hit by spam. Both Drupal's Backup & Migrate module and the CLI tools such as mysqldump and mysql runs out of memory when trying to ...
2
votes
0answers
24 views

External CSS file is not being loaded

I added an external CSS to my theme. When I look at the source code the external file is not being rendered. In my html.tpl.php file I have: <?php print $styles; ?> In my template.php. file ...