What's the deal with Deno? We talk with a major contributor to find out. Listen now.

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
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']['#...
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?
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
1answer
546 views

hook_views_pre_render -> how to access variables

I have a view of teasers, and would like to check the status of each node. Using hook_views_pre_render (in the template.php file of the theme), I can access: $view->style_plugin->row_plugin ...
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 ...
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
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 ...
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
75 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
440 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 ...
0
votes
0answers
22 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 ...
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: ...
0
votes
0answers
239 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
2answers
469 views

Why is the Devel block displaying the Performance, Execute PHP and Switch User blocks?

My Devel block is displaying the Performance, Switch Users and Execute PHP blocks as well in the sidebar, making it very unsightly and bloated as well. I can't see what I could have done to cause ...
0
votes
1answer
202 views

How to debug queries and exports sent to Salesforce?

I'm using Salesforce Suite module. My initial investigation says that the connection is encrypted via HTTPS. Is there any easy way of debugging what is exactly sent to Salesforce? I ended up by ...
0
votes
1answer
87 views

jQuery not functioning in Chrome regardless of core/custom code

For whatever reason jQuery is refusing to function in Chrome for us. It works in all other browsers. This is the case regardless of the theme, page (aka: core admin pages like blocks have no jquery ...
0
votes
0answers
129 views

How do I read the output of the devel module?

This is not asking where to find the output from devel, as I know where to find it. The question is how to read it and make sense of it. I need to find a field from a field collection, and then ...
0
votes
1answer
49 views

Debugging Imagecache related module

I'm trying to create a custom module that builds on top of imagecache and imagecache_actions to dynamically add an overlay to image thumbnails based on fields of the node its attached to. I used ...
0
votes
1answer
154 views

Omega - Debugging blocks only for specified role

Is it possible to see debugging blocks only for specified role? IDEA I made special role "theme developer" to see debugging blocks of Omega only for this role. When I check in *admin/appearance/...
0
votes
0answers
34 views

dsm fails to display full array [duplicate]

I created a nested array. The array contains two identical sub-arrays. When I use dsm() to display the array, the first subarray is displayed just fine. However instead of displaying the second ...
0
votes
0answers
68 views

how to debug database query in drupal 7 [duplicate]

Possible Duplicate: Print the query which is built using db_select() How can I remove :db_insert_placeholder_0 and table prefix from database query __toString() debug function.
0
votes
2answers
2k views

user_login_finalize() logins the user, but I remain anonymous

I'm using user_login_finalize() in my code to login a user (right before the review page), and this works because I can see the log in drush watchdog-list. However, it only works behind the scenes: ...
0
votes
1answer
256 views

PHP evaluated in rule works locally but not on remote server

I have this code. When I run this on my local server, it works fine but when I run it on the remote server it does nothing. Not even the messages appear. I am using the devel module. Any help ...
0
votes
0answers
382 views

Debugging a module - show SQL errors?

I've created a module to create a new pre-built option list for a webform select list - the kind you can select here: My code looks like this: /** * Implementation of ...
0
votes
1answer
196 views

Devel admin interface unreachable; or I broke my Devel?

Not sure what broke where, been using devel & love it. I enabled the Display $page array option, went, did stuff, came back to disable and when trying to load admin/config/development/devel either ...
0
votes
1answer
79 views

Internal Server Error and Machine Readable Names

I have installed a new local site using Drupal 8.1.10 which takes a lot of time whenever I give any command (lets say create a text field) and then sometimes it gives a 'Internal Server Error' after ...
0
votes
2answers
422 views

How to trace an Error: PDOException: SQLSTATE[23000]:

I'm trying to trace this error which is shown when I save a new basic page node. It seems to me that I am trying to save a duplicated title value in field_data_title_field, but it doesn't make any ...
-1
votes
3answers
374 views

Where to put dpm (Devel) to see comment elements?

Where to put dpm or dsm (Devel) to see comment elements?
-1
votes
1answer
94 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 $...
-1
votes
2answers
1k 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
votes
1answer
110 views

Non existing pages does not return 404

I have a strange problem when i visit some page like this example.com/node/386 "onmouseover=prompt(9999) " from Drupal perspective that page doesn't exists right ? getting something like this
-1
votes
1answer
256 views

Ajax fields do not work on custom page with `drupal_render`

From my module test I render the create node form on URL admin/test using the following: function test_menu() { return array( 'admin/test' => array( 'title' => 'test', 'access ...
-1
votes
1answer
519 views

Site got an error after moving from local to a server

I finally wanted to move my site from localhost. After importing db and connecting it to the Drupal I got these errors: The website encountered an unexpected error. Please try again later. Drupal\...
-1
votes
3answers
266 views

How to find the culprit module that's causing all my views not to display anymore?

The Views on my site were working perfectly until I updated a bunch of modules and now I get these errors and the views don't display: Warning: include(/home/x/public_html/.tpl.php): failed to open ...
-1
votes
1answer
919 views

This page is not working

When I visit my site, I get an error: This page isn’t working my---site.com is currently unable to handle this request. HTTP ERROR 500 I have taken the below steps but no luck. In shared ...
-1
votes
1answer
68 views

Ho to use devel on commerce_cart_order_refresh or similar

I want to implement the solution on this link Alter cart unit price and total amount. I want to use dpm on devel to look for available fields on line items but I doesnt show on. Code that I used: ...
-1
votes
1answer
66 views

Unable to render media from nid:******. Error: No file Id

I'm using node_embed module to embed nodes into the body of my main content type. This works fine but whenever I save a node with embedded nodes within its body I get the notice Unable to render media ...
-1
votes
1answer
35 views

PHP functions only called once?

I have written a tiny module with a custom block. The contents of the block is created in the build() function. That function creates the HTMl, which is rendered. I can see that code changes have ...
-1
votes
2answers
606 views

Fatal error: Cannot redeclare

my website show a fatal error about 'cannot redeclare' [1]. In first moment I though that It was a concrete problem and I deleted some part of code though it was repeated. But the problem is yet, but ...
-3
votes
2answers
165 views

How can I prevent memory size exhaustion when dumping variables in Twig? [duplicate]

hello everyone i have a problem with kint , in my twig page i want to listing all variables contains int 'content' variable to make some logic on it , but the page can't loaded because the big pip ...

1
7 8 9 10
11