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
5
votes
1answer
781 views

How to show messages starting with “Debug : ” to an administrator only?

I'm developing a lot of complex rules in D7 and for debugging reasons it is very handy to have different messages (the standard Drupal message) within the website. For this I use "showing a message on ...
1
vote
1answer
28 views

How to prevent showing background code in Drupal 7 admin?

I am seeing the following screen when i am saving or updating a node in drupal 7 admin. I am using Drupal 7 with Seven theme.I am seeing the following texts in white screen.To get the actual i need ...
0
votes
0answers
45 views

Get error after update modules to view Map

After I updated modules, I get the below error, but everything seems to be working fine: Out of a total of 40 result rows in view Map List Business (Block Maps ), 1 rows did not have their ...
0
votes
1answer
291 views

XHProf not displaying runs but empty table

I'm trying to profile a drupal website using xhprof. I manage to install it and configure drupal to use it (using the devel module) but I have a problem to visualize the result. First, for some ...
1
vote
1answer
339 views

Fatal error after enabling backup and migrate module [closed]

I just enabled back up and migrate module. Then I backed up my site and tried to restore the site using the back up file and it did not allow me to do it. Then when I go to admin > config > I get ...
6
votes
3answers
3k 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 ...
3
votes
1answer
735 views

For Drupal 7, is there a hook debug mode equivalent to the theme debug mode?

As a beginning developer, it seems like I spend a significant percentage of my time googling to find out what hook to call in order to modify something before it renders. In the drupal 7.33 release, ...
0
votes
1answer
351 views

Getting Xdebug to work with Dev Desktop [closed]

I'm trying to get xdebug to work with Dev Desktop. I am following the instructions in this guide: https://www.drupal.org/node/1846954 and I still get the message, "waiting to connect" well after it ...
1
vote
1answer
79 views

Is there a way to trace PHP errors logged from Rules?

Occasionally I'm seeing an error in the error_log [10-Apr-2015 10:16:45 America] PHP Parse error: syntax error, unexpected 'Some text' (T_STRING) in /home/simulab1/public_html/profiles/...
0
votes
2answers
83 views

“Can't create table errno: -1” when trying to create the cache_rules table on D7

I'm having a very strange problem. I have a website on Pantheon (Nginx) that I attempting to import into my local dev environment, but when I import, it is failing when it gets to the cache_rules ...
0
votes
2answers
611 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 ...
2
votes
0answers
197 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 ...
1
vote
1answer
655 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
1answer
147 views

WSOD with error when login as administration [duplicate]

I was working on website and suddenly noticed that a particular page had a error message and lost a lot of css styles. When I went back to the back-end I saw a white page with following message and ...
0
votes
2answers
24 views

User email being deleted when submitting Profile 2 form

i'm debugging a site that I haven't made. The issue is that the users email address is being deleted. I've found which form it's happening on; and by using hook_form_FORM_ID_alter I can see that $...
0
votes
1answer
69 views

missing cet_enable field in product type settings (Commerce Event Ticket)

I have installed the Commerce Event Ticket module along with any requirements and have enabled it. I see the following under column description in admin/modules: Allows tickets (with unique ...
0
votes
0answers
34 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
55 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
406 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
136 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 ...
1
vote
0answers
229 views

View XML Request when using WSClient and Rules

I am building a website that uses 3rd party data from a web service. I decided to use WSClient...so far so good. I am using Rules together with WSClient to create the proper SOAP request, however I ...
0
votes
1answer
80 views

How to add a report an error button in a Drupal 7 website and collect user's browser details?

We just did a website upgrade. On some sites I have seen a 'Report an error' icon (in the right hind corner). After clicking on it, a user can report an error which will send along other information ...
1
vote
1answer
97 views

How to troubleshoot errors after successful Drupal update?

Recently, I updated a Drupal core website from 7.31 to 7.34 and the process was successful, without any error during the upgrade. It's showing the latest version of 7.34 core in the Status Report, ...
1
vote
2answers
59 views

How can I improve as a site builder for dealing with errors I don't know how to handle? [closed]

As a relatively new Site Builder, I understand some of what is going on under the hood. But when things go wrong .… Without an intimate knowledge of module code and inner workings, the error messages ...
1
vote
0answers
26 views

Issue with “edit” links on Menu pages

I have an unusual bug i've encountered during development of a client site -- it appears that for all Editable menus, when I click on edit, the site loops me into a Redirect Loop, pointing to a menu ...
0
votes
1answer
49 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
19 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: $form['element']['#...
1
vote
0answers
53 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
562 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
302 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
1k 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, ...
3
votes
1answer
352 views

How to troubleshoot Rules when a required variable for an event is not provided?

I'm seeing a strange behavior on my site and I'm trying to figure out how to correct it. I have a rule that triggers on the event After updating an existing user account. This rule uses two ...
0
votes
0answers
23 views

Number of protocol messages (Page not found)

Why does i get a gigantic number of protocol messages for just one "page not found" request? How can i fix it? Isn't this a huge leak for the performance?
3
votes
2answers
2k 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
59 views

Where Can I find the output of the debug() function displayed?

I have written debug() in a php file in my local Drupal project. I am trying to see the output. How do I do that?
0
votes
1answer
330 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 echo ...
2
votes
1answer
33 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
20 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 cotyhouse_preprocess_html(&...
0
votes
2answers
501 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
4k views

Drupal Error : The website encountered an unexpected error. Please try again later [duplicate]

I made a site locally and when I uploaded it to the hosting server, it worked fine except when I went to edit some content type. It showed this error: The website encountered an unexpected error. ...
0
votes
1answer
76 views

drupal_static and XHProf [closed]

I'm using D6 but stole drupal_static() from D7 for a high demand site I'm currently working on. I'm currently optimising some of the slower pages with XHProf which has been fine, but I'm getting a ...
2
votes
1answer
364 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
1answer
3k views

Is there an AJAX command I can use to debug PHP variables without breaking AJAX call?

I know the list of Ajax framework commands. Every one of them is doing something useful. But sometimes I want, for debug, include a piece of debug data in my AJAX response. I want it to be unobtrusive,...
1
vote
1answer
22 views

How can I send an e-mail to the admin when use of a view results in an error?

I have a large number of complicated views on a site, some of which, when searched with certain options or by certain users, give the following error: An illegal choice has been detected. Please ...
0
votes
1answer
874 views

DB and modules in folder that doesn't exist

Ok, so I ran into an issue today that completely baffles me... I have a staging server that I have about 30 sites on. Most are WordPress and about 5 are Drupal. Yesterday I worked on a Drupal site ...
0
votes
1answer
215 views

Resume State - Recruiter Distribution

I have been using the recruiter distribution for a while and for some reason I remove the ability of the resume state. I have analyze the problem and the issue is that every time someone register to ...
1
vote
1answer
118 views

How to extract query placeholders for debug purposes?

When I cast query to string, I can see WHERE that will be passed to the database, like this: WHERE (idProperty = :db_condition_placeholder_0) AND (idCategory = :db_condition_placeholder_1) But ...
9
votes
4answers
11k 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 "devel/...
42
votes
10answers
68k views

How do I enable developer/debug mode?

Installing drupal 8 core (using standard profile). whenever I get exception/error, I get blank page with "The website has encountered an error. Please try again later." (as below image) text and no ...
1
vote
1answer
986 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 "node/...

1
5 6
7
8 9
11