The Devel module is a suite of modules that can be used to make Drupal development and debugging easier. Use this tag for questions about using this module.

learn more… | top users | synonyms

0
votes
1answer
13 views

Can we configure Devel module to pick up images for the image field of a content type only from a specific directory containing images?

A Yes or No question. Using Drupal 7.43. Devel module generates polycolor image content of a content-type which has an image field. But I need only a few specific images on my contents of that content ...
0
votes
0answers
7 views

How to catch the currently indexed node id by Search API?

My Search API indexing is stuck at a node, and fatals with memory exhausted php error. I suspect a node may be corrupted. How can I output the node id where the queue is stuck? Perhaps echo it ...
1
vote
1answer
21 views

debugging an array while creating custom rule

I am trying debug a custom rule I am creating. In my helper function I am calling an array I want to work with. I want to dpm the contents of the array so that I can see what is available, but it is ...
1
vote
1answer
26 views

Fixing bad node that makes search not index, but completes cron

Upon updating to the latest version of Drupal 7, the following errors presented themselves in the site: Warning: Creating default object from empty value in node_build_content() (line 1398 of ...
0
votes
1answer
42 views

How do I specify the debug_mail_directory for the devel maillog?

In settings.local.php, I have set my local dev environment to use the Devel module's mail logging function: $config['system.mail']['interface']['default'] = 'devel_mail_log'; ...
0
votes
0answers
23 views

Add custom method to custom FieldType plugin: Call to undefined method

I'm trying to implement simple Devel images provider which should pickup images from custom directory when generating nodes. In order to do this I: Created custom devel_better_generator module ...
0
votes
0answers
32 views

dpm in submit handler not working?

I have a very interesting problem. I have 2 dev machines (both mac, running XAMPP). In my project I have a submit handler for a custom entity form. When I try to dpm() (or kpr, or dsm, ...) the ...
0
votes
0answers
31 views

How to avoid missing status for Workflow access module permission just after node creation?

I am using Workflow 7.x-2.8 to manage peer-reviewing publication. When an authenticated user (an author) creates a post, he can choose a first workflow state transition from creation (by default) to ...
0
votes
1answer
19 views

How to get devel content generate module to only include one image per dummy content creation

I'm using devel generate and it randomly adds multiple images to articles. I can limit the number of words in the title. Is there an option to limit number of images or text lenght?
0
votes
0answers
33 views

Kint breaks in template and doesn't allow me to view anything

in my template I am trying to view the contents of Childen in a form template. <form{{ attributes }}> {{ kint(children) }} </form> However, the result I get is a useless broken kint ...
0
votes
1answer
50 views

Can't get variables [closed]

I'm trying to get variables to use them in my module but I can' get them. I try print_r($variables) and get "Undefined variable: variables in include_once().." The same happens if I try to get ...
0
votes
2answers
40 views

hook_node_access($node, $op, $account) not working

I'm using drupal 7.41 module: Devel I created module_template module. function module_template_node_access($node, $op, $account) { kpr($op); kpr($account); } But when I view or edit node not ...
-2
votes
2answers
70 views

How to get PHP path of stdClass object from dump of dpm()? [closed]

I need to print the below value [seventhly] as per the attachment, so please advice. If you need any detail please ask me.
1
vote
1answer
126 views

Can the Devel Generate module generate content for all possible permutations and combinations?

I love Devel Generate module as it help me create test content very quickly. Random content that the module generates is sufficient most of the times. But at times I would like to have content for ...
0
votes
2answers
36 views

How do I access variables displayed in devel?

Using devel I'm able to retrieve the names of certain variables and how to access them. For example I might want to use the book menu name. Devel has it listed as so $...->book['menu_name'] But ...
0
votes
1answer
17 views

How to debug rules that are not being run?

I have few rules bound to the Event: Completing the checkout process After completing the checkout process these rules should run - but they do not work... I am using Devel module to debug the ...
0
votes
1answer
32 views

How to identify and target a form element?

A similar question has been asked before: How do you identify a form element? I am using the Devel module and dpm($form) outputs the object nicely: But I can't set/change the default value of a ...
0
votes
1answer
17 views

Devel Module bogus output

I need help with the devel module. I'm outputting my objects/variables with dpm($variables); into my template.php and I get the same output on every page. It's pulling one of my views and showing it ...
0
votes
2answers
83 views

Devel's dsm & dpm not working

I am trying to print out the $view object using devel and dsm. My function in function.php is function my_theme_views_pre_render(&$view) { if ($view->name == 'my-view') { ...
2
votes
2answers
35 views

How can I inspect $element variable in theme function?

I would like to change formatter of Field Collection Table, so that class added to a table row corresponds to a value of field of field collection item. As a first step, I would like to inspect theme ...
0
votes
1answer
108 views

Generate test data bulkly in drupal 8

I setup a website based on Drupal8,create some content type(with several fields),Now I want to enter some test data in my site. How can I generate test data bulky in drupal8?
1
vote
0answers
43 views

Using entity_metadata_wrapper() and dpm() in node template causes subsequent nodes to return empty values

I've create a view which displays all nodes with content type location. This view renders the node using it's teaser display, which I've created a custom node--location--teaser.tpl.php for. In this ...
0
votes
1answer
37 views

Devel module and the WSOD on login

I have a lot of trouble with the WSOD and have looked around quite few posts; like WSOD with Devel module and How to see the error messages when I get the white screen of death? as well as ...
0
votes
0answers
19 views

Is it possible to use Devel to create a “mad libs” style profile2 registration page?

I've got the template file working, however <?php dpm($page); ?> and <?php dpm($content); ?> aren't getting me what I need to isolate the forms. I saw this post ...
7
votes
1answer
693 views

Is there any alternative to devel themer?

I am using Theme developer module for theming. The module is pretty good, but still it is very buggy. Is there a less buggy alternative?
1
vote
1answer
50 views

How can I seperately display a view's exposed filter and its content in page.tpl?

Using <?php dpm($node) ?> I found the exposed filter, $...->view->exposed_widgets, however I'm not sure how to display it. I tried <?php echo $node->view->exposed_widgets; ?> ...
0
votes
1answer
57 views

How can I programatically get the cart's dollar sum of drupal commerce?

For future users <?php echo '$' . number_format(( $total['amount'] /100),2); ?> is how. Following this guide ...
0
votes
0answers
41 views

How to enable Devel theme info on your theme

I'm using a Bootstrap sub-theme and have installed Devel Themer. When I enable Bootstrap (parent them), the Devel Themer info appears ok. When I enable my sub-theme, it doesn't. I'm not overriding any ...
0
votes
0answers
50 views

How to preprocess a field collection?

I have a field collection that is an image gallery. It has two fields within it: an image and a caption. I want to preprocess it so that the image title tag is equal to the value of caption. I have ...
0
votes
1answer
92 views

How can I remove “please wait…” from a form?

I saw this Remove the "Please wait" text on Ajax Call but I can't find the form element. <?php dsm($form);?> and <?php dpm($form);?> return errors. This is what I found in $node: ...
2
votes
1answer
129 views

After Module updates got “Warning: require_once() ”

I am using Drupal -7 and my website is on cloud(not local host). This is NOT a multi site and using Omegasubtheme. I have just updated workbench Moderation module from 1.3 to 1.4 and have also added ...
0
votes
2answers
120 views

Why does my site whitescreen with content? [closed]

I am creating a drupal 8 site. I have only installed two modules so far, Devel and Varnish. However anytime I try to create an article and save it any page on the site that isn't an admin page is ...
0
votes
2answers
112 views

How can I print a text field's database value with devel so that it displays on all nodes?

I want just the text field's data without an of the "field-" divs wrapped around it. It's a link so I want to do something like <a href="foo.com"><?php print ...
5
votes
2answers
425 views

Why is ddebug_backtrace coming up blank?

I've been using the Devel module for a couple of years now but every time I try to get a backtrace I run into issues. I remember getting it working once, but I don't remember how. It seems like ...
0
votes
2answers
199 views

Printing fields in a View template file (Devel / Krumo)

My "Article" node type has a field image. I can print this field in a node template with <?php print render ($content['field_image']); ?> I have a simple View which lists Articles here. The ...
1
vote
0answers
74 views

What is the difference between Query build time Query execute time View render time in drupal veiws

I'm using drupal views and set Live preview settings enabled. I'm curious about the difference between three factors: build time, execute time and render time. Sometime when I change a filter or sort ...
0
votes
1answer
157 views

How to print fields manually

I am using print module. I am also using devel module. In print.tpl.php file, I see a php code that prints the content as print $content. I don't want to print the entire content. I think content is ...
0
votes
0answers
27 views

Devel themer doesn't work on D6

A JS error for devel themer actually : Uncaught TypeError: Cannot read property 'type' of undefined devel_themer.js?r:193 thmrRebuildPopup devel_themer.js?r:193 themerDoIt devel_themer.js?r:87 ...
0
votes
1answer
27 views

How to drop tables shown as Missing in Schema Report

During development/testing after using Backup and Migrate Restore in conjuction with Schema, Schema will show Extra tables no longer referenced in the database, used by modulesetc, and no longer ...
0
votes
1answer
255 views

Jquery Library Conflict Error in Drupal 7

I've been currently developing a module. Before it was working fine but as I started working on my module, the console throws an error every time I click a link in my Drupal admin menu. For example: ...
1
vote
1answer
69 views

dpm breaks only if used in form custom submit on edit node

Problem I have a case where the dpm printout is working fine in all cases except on a specific node type, in a very specific scenario. If I edit the node type and place dpm($form_state) in the ...
0
votes
1answer
280 views

Devel issue - “Rebuild the theme registry on every page load” won't work

I use D7. My site is being hosted on a "Shared" Server at Siteground.com. My site doesn't have any CSS/JS aggregation what so ever (see attachment), and I'm sick and tired of clearing the cache ...
0
votes
1answer
41 views

Is Windows XP and XAMPP able to render complex development sites in Drupal 7?

I am developing a site, and in the Linux server it goes very fast, with peaks of memory of 40 MBytes, according to Devel module. However, when I test it exactly the same in Windows XP and Xampp, it ...
0
votes
0answers
15 views

How to find elements inside a commerce order form with dpm()? [duplicate]

I want to identify a specific field inside a commerce order form. The machine name of the field inside the order form is: commerce_customer_profile. Using Devel Themer I've got: ...
1
vote
0answers
34 views

How to force Devel Generate to use default image when creating nodes?

I'm using Devel Generate to generate nodes which has an image field. The generation is working fine but devel uses a standar image (sort of color squares) for the created nodes instead of the default ...
0
votes
1answer
159 views

Memory usage PHP peak=40.25 MB — too much for a single request?

I am developing a multilingual - multidomain site ( using i18n and Domain Access and several extra modules - CTools, Colorbox, etc. ). I have installed Devel because I thought the site was very memory ...
1
vote
2answers
116 views

Why does dpm() sometimes fail and krumo() works

They both dump variables in the same format & style. From some articles or documentation that I'd read, it seems krumo() calls dpm(). The problem is that sometimes I call dpm($var) and nothing ...
0
votes
1answer
216 views

hook_form_alter isn't working

I've been trying to insert a placeholder for my search-bar, so in my page.preprocess.inc I call hook_form_search_block_form_alter(), then specify the form's array, and create the placeholder array, ...
2
votes
1answer
534 views

How to show all template suggestions for a page without using Devel Themer?

For some reason the Theme developer module doesn't work on my site (whenever i activate it and navigate on my site it just shows a white page with written "Jump to main content"), but all I want to ...
0
votes
1answer
96 views

DPM simpleXMLElement returns just the object but echo returns its value

When I DPM the simpleXMLElementObject it returns (Object) SimpleXMLElement print_r returns the following: SimpleXMLElement Object ( [0] => c1e1c959-c99d-42f0-8a44-2998b ) Although when I ...