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
3answers
31 views

How can I seperate elements of content in page.tpl? [closed]

I need to separate the comments from the node. I tried <?php print render($page['content']['comments']); ?> and <?php dpm(['comments']); ?>. This is what I'm trying to do (partial ...
2
votes
1answer
23 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
38 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
26 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 ...
1
vote
1answer
16 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
57 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
19 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 want to know what is the difference between these three factors: build time, execute time and render time. some times when I change a ...
0
votes
1answer
52 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
11 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
0answers
10 views

how to get through devel debug log

I've installed devel debug log module to see execution time of all pages. Now the problem is about queries which do an action of delete, insert or update in cash tables in spite of setting cash ...
0
votes
1answer
10 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
0answers
6 views

Have an overview of which modules are in use in which fields and views

I have a complex site which is in constant change, and as admin I need an overview of what modules are actually in use in existing fields or views.
0
votes
1answer
88 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
35 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
57 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
0answers
37 views

Devel themer and bootstrap module: only “skip to main content” is visible

I have installed bootstrap theme (3.x-dev) and I need to use devel_themer module, but when I active devel_themer the only thing that I see in my browser is "Skip to main content". No error in console. ...
0
votes
1answer
33 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
14 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
20 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
84 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 ...
0
votes
2answers
41 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
76 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, ...
1
vote
1answer
136 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
32 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 ...
2
votes
1answer
22 views

Module not returning echoing or printing variable

I'm writing a module to change a user's shopping cart order ID based on a stored value from their profile, which cannot be edited from the users. In the hook call to commerce_cart_order_id I tried ...
0
votes
1answer
13 views

Theming property non-object when transversing the $node object

I'm getting this error when I run the code below, in reference to $color module: Notice: Trying to get property of non-object in cotyhouse_preprocess_html() function ...
0
votes
2answers
83 views

Differences from dpm and dsm for devel module for debugging objects?

What are the differences of dpm and dsm for the devel module? I mainly use dsm for the devel module. What are some other common debugging functions that are useful in the devel module?
1
vote
1answer
63 views

Difference between function names from Drupal Devel

The devel module in drupal allows us to print variable data using functions like: kpr,krumo,dpm,dsm Can anyone please explain how different is each function from the other
4
votes
4answers
1k views

execute drush command from devel/php drupal

Can any one please tell me how can I execute drush command from devel/php? I can execute PHP codes from devel/php. But I don't know how can I execute drush command from devel/php. (As we know ...
0
votes
1answer
257 views

Add a popup text link to a specific “create content” page

I've looked everywhere and can't find an answer to my problem. I'm trying to do something that seems like it would be relatively simple, but I keep coming up empty: add a pop-up text link to the ...
0
votes
1answer
18 views

WSOD with Devel module

A website I am working on is having a WSOD problem, but only on the permissions page. I narrowed this down to the devel module, because when enable, WSOD permission page, devel module unenabled, clean ...
1
vote
2answers
296 views

Improving Site Speed and Cache for Authenticated Users

I am building an intranet site. I have the site set up with single sign on via the server authentication module meaning there are no anonymous users. This means large parts of the cache are worthless. ...
0
votes
1answer
202 views

alterations in tpl file work, but not dpm();, dsm(); or drupal_set_message();

This question here at DA has a popular suggestion to check page.tpl.php to see if it says print $messages;. I verified this and this is the case. I cleared caches many times, btw after which there ...
0
votes
0answers
70 views

Devel Generate module

I set up an new instance of Drupal 7 using drupal vagrant. After, enabling devel_generate, I attempted to create 12 users as follows: However, after attempting this, the following error was ...
1
vote
2answers
99 views

Weird behaviour when using dsm

I am using Drupal 7 on a CentOS 6.5 box. I am trying to debug some code which produces the following error: User error: ImageMagick error 1: convert: no decode delegate for this image format ...
0
votes
1answer
51 views

link field template syntax / display link field as an image / devel dpm (D7)

My link field is currently displaying as a URL as you can see here (yellow border). I have added dpm($items) to my link field template file. How do I read the dpm output or more specifically how do I ...
0
votes
1answer
68 views

Krumo output with debug()

When debugging I prefer using the Devel module because of the clickable Krumo output. However when disabling the Devel module on production unremoved calls to e.g. dsm() can cause a WSOD because of ...
3
votes
3answers
348 views

Drupal 8 devel dpm does not expand Drupal\node\Entity\Node

I'm getting a feeling that Devel got pretty much useless with D8. When I try to dump most of the drupal objects I get only (Object) Namespace\Class output. No fields data is printed. print_r is able ...
1
vote
2answers
87 views

Site dead after Devel Module and Library sethtmldom

After installing Devel Module (and Library simplehtmldom), the Drupal7 site is completely dead. Have already set the module to 0 on System table in database, and the module files removed by FTP. But ...
1
vote
1answer
440 views

Rules: how to display the value of variables?

I use the Devel module on Drupal 7 to debug some rules of my site but I can't debug without knowing the value of variables I created. In the case, I have a loop where I sum different values and at ...
0
votes
1answer
178 views

DrupalDatabaseCache::set Devel Module

I seem to be getting slow speeds with DrupalDatabaseCache::set and DrupalDatabaseCache::getMultiple i am using drupal 7 and am on a Virtual Private Server on Dreamhost which is running Fast CGI and ...
1
vote
1answer
60 views

Theme settings doesn't work

When i dpm that $vars, in classes key, there is no r_style class, whyyyy? I tried clear cache through devel module, but still the same, what i am doing wrong? name = JH Template core = 7.x engine = ...
0
votes
1answer
58 views

ob_start() error running Devel on Search API + Search views page

How can I run Devel on search pages? I keep getting an ob_start() error. How can I run debug on these search pages. The error is: Fatal error: Unknown: Cannot use output buffering in output ...
0
votes
1answer
2k views

Calling a field in views-view-fields--view-name.tpl.php -— Error

I am trying to call a field by using the line of code: <?php print $field->handler->view->field['title_1']; ?> But i keep getting this error: I used devel dpm() to look for what ...
1
vote
1answer
317 views

Why kpr() shows different content than var_dump()?

In one vital part of code I started to get "Trying to get a property on a non-object" type of errors. So I wanted to investigate it. var_dump($download); die(); Gives: array(3) { [1]=> ...
0
votes
2answers
56 views

Lots of generated queries

I enabled devel to Display query log UPDATE: this problem only happens for logged users I found that the Frontpage generate 900 queries. **67** of them generated by the **Locale** module and ...
4
votes
1answer
135 views

Devel output on hooks called during cron run

I'm implementing a hook that is called if certain conditions are met during a cron run. (Specifically hook_bounce_mails_blocked($mails) from the Bounce module) The hook is triggered, but any output ...
1
vote
1answer
532 views

How to trace Drupal 7 Core Logic Using Netbeans with xdebug?

I'd like to understand how Drupal core works by tracing core logic and how functions unfold. I installed Netbeans with xdebugger and started a new project. The project includes drupal installation run ...
0
votes
2answers
353 views

What is admin_devel module in drupal?

THis module is separate from the devel module that gives ability to dpm() variables etc. What is it?
0
votes
2answers
108 views

Is there any way to view dpm() data other than printing it on page?

I have an issue with dpm() in that it never seems to return data (and before anyone asks: Yes devel is installed Yes I am logged in as admin Yes print $messages is set Yes the permissions are ...