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.

-1
votes
0answers
11 views

Make “Add to Cart” Button Appear Below

I have installed Drupal Ecommerce Kickstart. I want to make the "Add to Cart" button below and not in the middle. How will I do that in Drupal 7?
0
votes
0answers
24 views

How can send an alert email after 30 days when the content is not updated

Now I am currently using a Drupal 7 for our project. I am using a rule module but I am new in Drupal so I can't know in detail information about rules module. I want to implement functionality like ...
0
votes
2answers
27 views

How do I log in if I can not get the login prompt page to come up as it should?

I am having some issues with my Drupal 7. Because of a different bug I am having with component or panel, one that is taking over pages and hiding other parts of a page somehow, my login page has ...
0
votes
0answers
13 views

Remove “Upload” button in Webforms and upload on submit

We have a webform that must be open to anonymous users. Users can upload a file to the form, and we found out that some users abuse this option and keep uploading files to our site without submitting ...
0
votes
1answer
75 views

Wrong status after updating from 7.64 to 7.66

I recently manually updated my localhost drupal site from 7.64 to 7.66. I ran update.php without errors. When the process finished, I cleared all cache and checked the status. It still reported 7....
0
votes
0answers
22 views

Entity registration state change to cancel after 30 minutes

On drupal 7, I use Entity registration and created a registration type with a timestamp field which retrieve the actual timestamp (field-timestamp). After registrering, the user has 30 minute to ...
0
votes
1answer
28 views

Change content of views_field_view field using hook_views_pre_render

I am using the views_view_field module for embedding a view inside another view. I want to concatenate some text with that field in hook_views_pre_render based on a condition. But when I printed the ...
0
votes
1answer
18 views

Rendered markup different than template markup

I am using drupal 7, and the bootstrap base theme to make a simple theme for a website I am working on. I am having issues with Drupal forcefully changing my html5 hierarchy and it's causing the site ...
1
vote
2answers
30 views

Prevent form regeneration when a callback function is called through ajax

Here is the code for the custom form with a field(field_B) that calls an function through ajax. The issue is that I want the function (MY_MODULE_XYZ_function()) to be executed only once, when the ...
0
votes
0answers
10 views

Menu link title used as page title on first access

Simple problem: I defined some main menu links under /admin/structure/menu. Whenever i access the linked page, the page title shows the menu link title and not the title set in .module. Every access ...
0
votes
1answer
51 views

Drush command to run cron won't work in Crontab

I am attempting to run two Drush commands from my crontab: # m h dom mon dow command */2 * * * * drush -r /path -l https://www.domain.com/ cron */2 * * * * drush -r /path -l https://www.domain.com/...
0
votes
1answer
12 views

main menu disappears only on home page

I have a site online engcorrect.net and for some reason my menu on my homepage disappears. On all other pages, it shows. The weird thing is that on my localhost (local machine) it shows correctly but ...
0
votes
1answer
32 views

Show terms in view filtered from another view

I have two views, first one is block, second one is page. I have vocabulary, let's call it "food". In the food vocabulary we have that hierarchy: Fruit Apple Banana Meat Chicken Pork Both views ...
0
votes
0answers
14 views

Programmatically add field collection item (child) into a existing field collection item (parent)

I have a nested field collection item, field_collection_parent which contains one field_text and a field collection field_collection_child contains two text fields(field_a and field_b). Now I'm ...
-1
votes
1answer
11 views

How do I attach JS and CSS on Slick Views

I would like to attach a CSS file and a JS library on Slick Views module from a custom module. Is there a hook function for Slick Views or any solution?
0
votes
2answers
56 views

Send email to all users that are tagged with the same tag a node is when created

There is a lot of similar questions here but I am having a hard time wrapping my head around this. I have a taxonomy term reference field called field_category. This field is available on user/*/edit ...
0
votes
1answer
22 views

Form #after_build is not working for PHP 7x

I'm using #after_build in one of my custom module form like follows $form['profile_image'] = array ( '#type' => 'managed_file', '#after_build' => array("change_pic"), ); and the ...
0
votes
1answer
24 views

drush handling array variable values

I am using Drupal 7 and drush 7.4.0. How do I handle array variables with drush? For example, I have a variable, social_sharing, for which drush vget social_sharing Produces: facebook: facebook ...
0
votes
0answers
17 views

Slideshow: Cgi Generic Command execution (time-based)

One of our customers received a notice from his PCI scan vendor that the requests in the MD_Slider module used by Views are not sanitized. The latest version is two years old and it could be correct. ...
0
votes
0answers
18 views

How to modify term reference

I have added term reference field on one content type i want to alter that term reference list. I have search in drupal.org site but not information is find. Can any one help me how to alter the ...
0
votes
0answers
24 views

Use autocomplete with an infinite cardinality

I am trying to attach a list of users to a new entity I am creating. I want to enable autocomplete on those fields but I can't get it to work. For the moment, my field looks like this : array( ...
0
votes
1answer
35 views

How to query paragraphs content?

Does any one have an example how I can query the paragraph entity type of a given node ? Let's say I have a node that contains a field 'field_paragraph' that is linked to the paragraph module . How ...
0
votes
0answers
15 views

Vertical Tabs: Wrapper problem

I have a form with several fieldsets and i am thinking about adding a vertical tabs form field to turn the current fieldset to vertical tabs but i use a lot of AJAX in the fieldsets. The AJAX elements ...
0
votes
0answers
17 views

Unexplained (buggy?) behavior of drupal_process_states with checkboxes in Drupal 7

I have 3 checkboxes named A, B, C. My desired behavior is as follows: if, and only if, both A and B are unchecked, then C becomes checked. Inversely, if either A or B are checked, C becomes unchecked. ...
0
votes
0answers
22 views

Add/assign same Five Star rating to author while adding to Article using Rules

I Need to achieve this functionality only with Rules or combinations with any other module(s). Structure FiveStar field is attached to the node type Article and another with the User profile. ...
1
vote
1answer
20 views

Is it necessary to export features with a version number?

By default, modules generated with features are created with a version string in the *.info file. I think the convention is to increase this version number when the feature changes. In a distributed ...
0
votes
1answer
43 views

Get taxonomy term ID from standard URL and then pass it to a View as a contextual filter

is a simple question, I whant get the term ID (tid) from standard drupal taxonomy url taxonomy/term/167 ou 167 is my tid and use as argument on views. I found this code to get the tid: $term_path=...
0
votes
2answers
22 views

Should I share the same image style as much as possible or create different styles for each size?

I have an image field displayed in slightly different sizes. Let's say : 100px X 100px as a view field format 120px X 120px as another view field format 150px X 150px as a node view format My ...
0
votes
1answer
7 views

How do you add a region to a panel

Novice question on Panels - I've inherited a D7 site with Panels 7.x-3.9. I'm using a system page: node_view, with a variant for the content type I'm working on. The layout has a number of regions - ...
0
votes
0answers
21 views

Notice: Undefined property: stdClass::$domain in locale_language_url_rewrite_url()

I have a bilingual website set as two different subdomains (fr.domain.com and en.domain.com) and a custom module for content-aware language switcher link in the main menu (i.e. if I'm on fr.domain.com/...
0
votes
0answers
35 views

Adding AJAX to an existing form element?

I am trying to Ajaxify a node form element (field_unterbringung). When the user changes the value of an entity reference field (unterbringung) the markup should change from "old markup" to "new markup"...
0
votes
2answers
23 views

Is there a way to pass multiple arguments to menu_name while creating menu links programmatically?

Am using Drupal 7. Below is my code where am trying to create menu links programmatically: $links[] = array( 'menu_name' => 'management', 'link_path' => 'myheader/config', 'link_title' => '...
0
votes
1answer
20 views

How i can create VIEW table using Drupal hook_schema()

i want to create a view table in my custom module .install file and i want join with another table like i did in my db_query function but i want this thing in hook_schema function. db_query('CREATE ...
0
votes
0answers
52 views

Disable browser auto-complete/auto-fill for username and password form fields?

I have a custom username and password field in my form which is independent from the normal website login. public function getFormFieldUsername() { return [ '#type' => 'textfield', '#...
0
votes
0answers
25 views

User warning: The following module is missing from the file system: content

I don't know why but I'm getting this PHP error in drupal log. I've reviewed drupal system table but there isn't a content module. The next part of the message is: ...
1
vote
1answer
23 views

Should Text Format: “Full HTML” create a safe value?

When I am rendering fields I noticed that if the user selects "full html" as the WSYWIG text format on a "long text" field, a safe value is not created. For example the array would be: value (String,...
0
votes
0answers
6 views

Drupal 7 Commerce KickStart 2 Installation [duplicate]

Upon installation of Drupal Commerce Kickstart, A warning prompt shows up. After finishing installation. My site looks like this. The site is a mess, images were non-existent. It's ugly compared to ...
0
votes
1answer
16 views

Configuration settings of Authcache for roles

I'm not sure about configuration of roles in Autchcache module, specifically with authenticated user role. I want to enable caching for both anonymous and authenticated users, but I want to exclude ...
0
votes
0answers
15 views

Disable authcache for webservices

Is there anyway I can disable caching for web services? After I installed and enabled authcache, I've begun to have troubles with webservices queries due to caching. If I disable authcache, all runs ...
0
votes
1answer
26 views

Cannot instantiate interface DrupalStreamWrapperInterface

I am trying to replace drupal_realpath with realpath. What I did is $stream_wrapper = new DrupalStreamWrapperInterface(); $file_path = $stream_wrapper->realpath($img_path); But it gives me this ...
0
votes
0answers
16 views

Fatal error: Call to a set_group_operator() on a non-object in views/includes/view.inc on line 1026

I copied all files and the database of a working drupal 7 installation. I made sure .htaccess and settings.php are fine for my local machine. Unfortunately neither accessing the page with the browser ...
-1
votes
1answer
68 views

Is MySQL 5.7 compatible?

My server has been on MySQL 5.6 for quite awhile and now I need to upgrade to MySQL 5.7. Is it safe to upgrade to 5.7 for all of my Drupal 7.x sites? Just doing a quick google for drupal 7 mysql 5.7, ...
0
votes
0answers
65 views

Post http request with raw json?

I need to build a http_request raw json in drupal 7 and the format of the json is: {"customerAddress": { "address":"foo st", "town":"Roma", "postalCode":"00131", "...
0
votes
1answer
18 views

Show Description Field on Individual Webform Submission Result

I would like to include the description field when viewing individual webform submissions for each component. The standard webform individual submission display shows the label and the answer, but the ...
0
votes
0answers
26 views

After update to 7.65, I get MIME type ('text/html') error, strict MIME type checking is enabled

My web was running good with version 7.64. After I've updated to 7.65, css and javascript stop running due a MIME type error. I have disabled css/js aggregation (performance) in order to get it ...
0
votes
1answer
16 views

push jsonlog data to elasticsearch

I have installed the module jsonlog on drupal 7, but there are no information on how can I push the logs to elasticsearch or kibana or logstash. How do I do that?
0
votes
0answers
9 views

Select statements against postgres table are returning null

I have a table, edm_info, located on the same postgres database as my drupal 7 site. I want to display information from the table on my drupal website. Using several different methods, I have ...
0
votes
1answer
17 views

How do I create a log/statistics of on page events?

I am using drupal 7, I have seen there are already statistic modules but can't find any for my situation On my website I am trying to track certain on page activities which site admins can see in a ...
0
votes
1answer
16 views

Facet pages bring site down because of bots

We have a search page that uses facets and recently our website has been going up and down. When looking at the logs I noticed that bots (Bing, Ahrefs, etc..) are hitting these facetted pages a lot. ...
0
votes
0answers
25 views

Add custom field to the output of a View

I have a view to show some elements from a table of my database. What I want to do is for each elements to show some data from a node that is linked to the element. I tried to make a custom views ...