Questions tagged [debugging]

Use it for questions about module and theme debugging (e.g. "How do I debug this situation?").

Filter by
Sorted by
Tagged with
1
vote
2answers
920 views

How to log actual SMTP Authentication module communication with server?

We are using SMTP Authentication module. Our SMTP provider claims we are whitelisted. Configuration works. When Drupal is supposed to send email, proper entry appears in Watchdog, claiming succesful ...
7
votes
1answer
584 views

Is there any 'advanced' debugging available for Views?

I know Views can show you an SQL preview, various performance statistics, and other SQL queries performed for live previews; I'm looking for something a bit closer to the bone. The use case... I'm ...
1
vote
1answer
34 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 ...
2
votes
1answer
3k views

How to debug / log comments when developing a custom module to fire when cron is run

I am about to develop a custom module that will hook into a hook that is triggered when cron runs. Since the module will be activated during a cron run, i am not sure how to go about giving myself ...
0
votes
1answer
240 views

Cannot add content using default content types

I have Article and Basic Page, but when I try to add either of these to my Drupal Site I get the following error message. You have not created any content types yet. Go to the content type creation ...
1
vote
1answer
933 views

How to alter and debug views queries?

I'm trying to find the hook/module which can modify a views query. The view is from Workbench module which is displaying the draft's of the actual user. If I Disable SQL rewriting in the Query ...
0
votes
1answer
4k views

An AJAX HTTP error ocurred. HTTP Result Code: 500 (while trying to rebuild content access perms)

I have installed a module that ask me everytime to rebuild content Access Permissions, but every time I try to do it, it shows me an error I do not have idea why is it happening. Please help An AJAX ...
2
votes
2answers
1k 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
2k views

Debugging Migrate: how to print what data's mapped to a field

I have a migration module that imports data from a CSV. I've steadily been adding code to the module and fields to the CSV, and it's always worked, albeit sometimes only after some work. But now there'...
1
vote
2answers
1k views

Messed Up Drupal Site, truncated all cache, menu_router, registry_file and now I can't access site

After disabling comment module, I could not access some modules, so I researched how to get that fixed and end up following this. I cleared all the cache_table, menu_router and registry_file. This ...
0
votes
0answers
116 views

Can't update LDAP module due to Memory Limit [duplicate]

I need to update the LDAP module from 7.1.x to 7.2.x to remove a fatal error. When I navigate to the update.php script, there are 18 updates. When I run the script I get this error: An AJAX HTTP ...
0
votes
2answers
774 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 ...
1
vote
2answers
145 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
70 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 ...
2
votes
0answers
313 views

Debugging Drupal via Drush on Eclipse

I've been trying to set up a debug environment for Drush using Eclipse(Kepler), in order to find out why the difference of the result of running hook_install() between via Web UI and via "Drush en". ...
19
votes
3answers
15k views

How to debug EntityMalformedException?

I've got fatal error EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7700 of .\includes\common.inc) when trying to access user/xyz. I tried to ...
0
votes
1answer
18 views

What file generated output

I was debugging by adding a print_r() to my code to check array values along the way. The problem is I forgot where (which module and which file) I had added the print_r() statement since it has been ...
4
votes
2answers
1k views

How to debug merge query?

I have a simple merge query, with one key and three fields, something like: $query = db_merge('product') ->key(array( 'id' => $id_product, )) ->fields(array( 'name' => $form_state['...
2
votes
1answer
334 views

How to backtrace a variable in php template

Currently I am in a .tpl.php file, and have the following piece of code: <?php if ($rows): ?> <div class="view-content"> <?php print $rows; ?> </div> <?php ...
0
votes
0answers
1k views

How debug Drupal 8 errors

How should I debug OOP level errors in Drupal8? Error messages and backtrace seem to be useless. I have installed the pants module locally on the latest Drupal 8 environment. And got an error. Now, I ...
0
votes
1answer
151 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 ...
6
votes
3answers
3k 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
140 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 ...
2
votes
1answer
2k 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
495 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 ...
2
votes
2answers
968 views

How to debug views_handler_field_node_revision handler?

I believe I have updated some of my modules, then the following debug message pop on the calendar page. Does anyone know what is this message and how to solve it? Debug: 'Handler ...
0
votes
1answer
194 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 = ...
1
vote
1answer
119 views

Views not found on disabling Page Title module

I've Views 7.x-3.7 and Page Title 7.x-2.7 installed. Since many months I'm using Meta tags and Page Title module but now I want to remove Page Title module as I don't need it since Metatag module ...
0
votes
1answer
76 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 ...
1
vote
2answers
231 views

WSOD for logged users after upgrading some module

I have updated the following modules on my website: ctools context devel ds libraries metatag pathologic rel_to_abs variable webform After the upgrade whenever I log in, I am not able to access ...
0
votes
1answer
245 views

Strange debug prints appear in the system log

I have two Drupal 7 sites on an Apache server that are printing strange debug messages in a system log. The sites are set in their vhost config to use error logs within each local site folder, like ...
2
votes
1answer
6k 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 was ...
2
votes
1answer
910 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]=> array(...
0
votes
2answers
84 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
591 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
905 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
1answer
450 views

User registration silently fails - how to debug?

On our Drupal 7 site, user registration silently fails. Drupal doesn't even reach the form's validation functions. What we checked: disabling javascript didn't help. Removing installed modules ...
2
votes
2answers
2k 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
3answers
422 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 ...
2
votes
1answer
2k views

Undefined function user_load() [closed]

My Drupal 7 installation works fine, except for drush, which does not. $ cd /srv/www/drupal_site $ drush pm-refresh PHP Fatal error: Call to undefined function user_load() in /usr/...
1
vote
3answers
293 views

My drupal 7 messed up after installing a module and I just get an error, how do I debug it and trace the source of that error?

If I have a module that I installed and its causing a conflict with another module, how do I trace it down to see which is causing the conflict? Let's say the error message doesnt' give any useful ...
0
votes
0answers
23 views

How can I disable the default PHP error catching in Drupal? [duplicate]

I'm not accustomed to being so limited by a CMS whereby I have to use it's built-in error reporting instead of more specific logging with native PHP error logging. Is it possible to disable the error ...
8
votes
3answers
7k views

Devel dsm() function in Drupal 8 page.html.twig

Is Devel module's dsm() function available in page.html.twig? If it is not available, is there a way to make it available? I am able to use dsm() in .theme file but not in page.html.twig. I am ...
0
votes
1answer
529 views

How do I hide Devel tab from users?

I just noticed that Devel tabs are showing on my Basic Pages, even when the user is not logged in. Anonymous users should not see "View" and "Devel" tabs! I can't find a setting for this in the Devel ...
1
vote
1answer
302 views

Devel query log not showing module enabling queries?

I enabled "display query log" in Devel. However, I've noticed not all queries are logged, for instance when enabling/disabling a module there is no "update system set status = 1.." query shown. Why is ...
0
votes
0answers
109 views

What can cause user names to disappear from admin pages?

On an existing Drupal system I see a strange phenomenon; user names disappear from the admin/people page. I've disabled the realname module but still it happens. How to debug such an issue? Edit: ...
1
vote
1answer
120 views

I deleted /devel_themer folder now my website reports an error [closed]

devel_themer folder of my website that was in public_html had about 500MB size so I deleted this folder. now when I log in to administrative account it reports this error : Fatal error: Maximum ...
0
votes
0answers
242 views

Rewrite drupal views $rows

I have a view which has to display a list of nodes: title, subtitle with the container that links to the single node. Difficulty comes when I want to display this view following this from bootstrap 3. ...
0
votes
1answer
22 views

custom module in user

I am making a custom module and the link to the path appears on navigation menu by default but I am interested it appears on primary menu when module is enabled. Is it possible in Drupal 7?
3
votes
1answer
1k views

How can I trace the source of a redirect error listed in Administration -> Reports?

Under Reports -> Recent log messages, I have a large number of errors such as the following: Type: access denied Date: November 7, 2013 User: Anonymous Location: https://mysite.com/ja/user/en/user/...