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
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/...
2
votes
1answer
3k views

Validating node creation / edit form

I'm using form_alter to play with the node form for a specific content type. This content type has many different fields and I'm also using Field Collection module to organize all these fields & ...
1
vote
1answer
516 views

How to detect devel user switch

I need to detect if I'm currently browsing the site as a different user, having used the devel user switch module. The LDAP module I have triggers some profile updates on every login, based on some ...
0
votes
2answers
471 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 ...
1
vote
1answer
108 views

Can the Devel page generation times be placed at the top of the page?

Can the Devel page generation times be placed at the top of the page?. Devel places the page timer and memory usage figures at the bottom of the page making it necessary to scroll down to view them. ...
0
votes
1answer
216 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 ...
18
votes
1answer
22k views

Install and Configure XHProf (Ubuntu)

Problem I'm trying to use XHProf but I'm getting horrible php error every time it runs. Warning: Invalid argument supplied for foreach() in xhprof_compute_inclusive_times() (line 1670 of /var/www/...
0
votes
1answer
663 views

How to fix 'Cannot access empty property' when visiting admin/reports/databasereport?

Fatal error: Cannot access empty property in /home/public_html/sites/all/modules/dba/database/mysql.report.inc on line 44 I get the above fatal error on a WSD when clicking on /admin/reports/...
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 ...
1
vote
0answers
370 views

Is it possible to trace a Drupal PHP session variable and if so, how?

I'm having an issue with Drupal not caching pages and I think it's being caused by an active PHP session variable being set for anonymous users. I want to know if it's possible to quickly and/or ...
0
votes
1answer
2k views

warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'search_form'

I am getting a warning when I use a new theme, I've got error that search form not found. warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'search_form' not found ...
1
vote
1answer
872 views

Drupal 7 site crashed after enabling module - No DB backup. What do?

I enabled the blog module on a website, after that the site crashed. The error is the same on everypage: Catchable fatal error: Argument 2 passed to entity_views_field_definition() must be an ...
0
votes
2answers
236 views

No access to admin page after change my server and domain

I have changed my website to a new domain and server. I can navigate throught my content. However, after login I can't access to admin pages. No error is shown, only blank page. What I did was upload ...
1
vote
1answer
439 views

kpr() in my form validation and submit function is not being called

In my form validation and submit functions, kpr() is not being called. Is there a better way to check that I'm in those functions? If kpr() isn't ideal to output my $form_state array, then what is ...
0
votes
1answer
918 views

Post becomes unpublished upon editing it and no additional date values or image uploads are possible

I have a custom content with a large number of multivalue date fields (around 200-300 values). I created a node and added a large number of dates. When subsequently editing the post, the following ...
5
votes
1answer
218 views

How to know which module is responsible for each database query?

I enable the devel module and set it to Display query log. Then on every page load I get a list of the generated sql queries. You can see an example of that list in the capture I uploaded. So far so ...
1
vote
2answers
593 views

Can I simulate a hook using Devel's PHP execution?

Let's say, for instance, that I want to quickly view the variables sent to HOOK_preprocess_node(), but I'm too lazy (if I'm just being honest) to edit my template.php file just to do that one check. ...
0
votes
4answers
2k views

How can I debug an AJAX error in VBO? (PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'uri'

I have a view that lists all the user accounts on my site. With VBO, I have a rules component, Resave user account (action set, action: save entity (user), no force saving immediately). Recently, ...
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 ...
2
votes
1answer
236 views

Purging session data on devel user switch

If you have used the devel module, you'd probably know about the nifty Switch user tool that is available as a block for use in a site. It allows users with the required permission to switch from the ...
3
votes
2answers
2k views

page.tpl.php override for Panels Pages?

I want to use a specific tpl.php file for all Panels Custom pages. I get some formatting issues if I try to use "Panels Everywhere" module, so would like an alternative.
2
votes
1answer
43 views

When I save a user account as an admin, I get logged in as that user

I'm experiencing a strange issue that I'm having a really hard time debugging. When I save a user account (of an authenticated user) as an admin, the account is saved, but when the page reloads I get ...
0
votes
1answer
552 views

Drupal 7 multisite setup white screen [closed]

I have attempted to set up a Drupal 7 multi site set-up. I followed the instructions online and have one site (site1) that is setup like a regular single install Drupal site and a second site (site2) ...
3
votes
1answer
2k views

Drupal 7 - Array to string conversion in DatabaseStatementBase

I have an error on a Drupal 7 site that I cannot solve. Notice: Array to string conversion in DatabaseStatementBase->execute() (line 2168 of ... I cannot use dpm, can't find a way to debug, and ...
1
vote
1answer
37 views

find out object properties passed to a function

which is the best way of debugging codes in drupal? for instance in election module there is a submodule called conditions, and there is a function: function election_example_conditions_access_gmail($...
2
votes
1answer
128 views

Defining Devel generation rules for custom nodes

I have Devel module installed, I use it mostly for generating content. I wanted to know if it was possible to define some custom rules to generate content for my custom nodes. For example: I want ...
5
votes
1answer
333 views

Module to list menu_router / path debug info? [closed]

Every now and then, mostly when looking at a new site, I find myself wanting to know What's the source of this particular page? Usually, I end up starting to dig in the menu_router table, and ...
1
vote
1answer
619 views

How to put site in 'Safe-Mode' to troubleshoot Drupal if site encounters problem?

If site goes caput. Quite a few modules have been installed. Site was running perfectly fine until you need to upgrade a few dozen modules now. (I have not been updating my drupal site for quite a few ...
4
votes
2answers
4k views

How can I see what variables are available on the loaded page via the devel PHP Execute block?

How can I see what variables are available to me on the page i am viewing via the PHP Execute block? I'm trying to do a dsm($node) but that doesnt seem to work. Neither does dsm($page).
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 ...
1
vote
1answer
353 views

Backtracing an SQL error shown in drupal set message with no specifying information

I am using a feeds hook to email some information to workbench section users. I've been changing some of my code and suddently I'm getting a database error: SQLSTATE[42000]: Syntax error or access ...
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/...
1
vote
1answer
78 views

How to find out allowed memory for a specific Drupal page

I want to find out how much allowed memory a page uses after it is loaded on my drupal 6 site. I know that you can do this when a page is not loading correctly, by enabling errors in php.ini. How do ...
0
votes
1answer
315 views

Finding out what file was called immediately before error

I'm getting the following errors in dblog whenever I look at a page: Notice: Undefined offset: 0 in _menu_check_access() (line 635 of /home/mysite/public_html/includes/menu.inc). Notice: Undefined ...
5
votes
5answers
4k views

Let anonymous view dpm() when using Omega subtheme

I need to debug a D7 site from the anonymous user. What settings need to be changed to allow anonymous to view dsm(), dpm(), krumo(), etc. commands? Note: I have already enabled Access developer ...
2
votes
1answer
635 views

enable dd() for drush - temporary://debug_drupal.txt call fails

If I included calls to dd() from code I run with drush, I see messages like this: WD php: Warning: file_put_contents(temporary://drupal_debug.txt): [warning] failed to open stream: "...
2
votes
2answers
201 views

“This is a debugging block” on Permissions page

On my dev site, everything is working fine EXCEPT the permissions pages. This includes /admin/people/permissions and the permissions pages for individual modules (example: /admin/people/permissions#...
2
votes
1answer
216 views

Tuning with New Relic

So I've finally delved into tuning up my aging Drupal 6 site using NewRelic and like most I'm amazed at what their product has to offer. Very useful for honing in on problem areas. However, being new ...
1
vote
1answer
926 views

Drupal for Firebug does not work in FF> Works fine in Chrome

I have downloaded and installed Drupal for firebug Module and FF and Chrome extensions. I log in as admin (uid 1) and do a simple output call: firep("this is some message", "Message Title"); On ...
1
vote
3answers
30k views

“syntax error, unexpected end of file” Upon enabling modules [closed]

I'm getting a syntax error when enabling modules. This is happening intermittently and it isn't specific to any module in particular, which is making it impossible for me to track down. Here is the ...
1
vote
2answers
3k views

DRUPAL_ROOT undefined on module installation

I try to install the live_agent module. When I go to enable the module, I get the following errors: Notice: Use of undefined constant DRUPAL_ROOT - assumed 'DRUPAL_ROOT' in /sites/all/modules/...
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 ...
4
votes
1answer
425 views

posting a comment on cached page

I am a bit confused now - is it normal behavior that posting an anonymous comment on cached page invalidates ALL cached pages for whole site for current anonymous user? Beacouse that is exactly what I ...
2
votes
2answers
2k views

module_load_include not working including inc file

I am trying to make it work, but it seems simply not working in Drupal 6. Maybe this is the issue, it does not work on D6? This is the code: // $file_path = module_load_include('inc', 'MYMODULE.inc',...
2
votes
1answer
2k views

How to hide empty region in Omega

It seems that by default all regions are rendered in Omega theme because of the Debug blocks. <aside class="grid-3 region region-sidebar-first" id="region-sidebar-first"> <div class="...
3
votes
1answer
665 views

dpm function doesn't display results for arrays

I need to work over the hook_menu_alter function and I found that the dpm() function is not working for arrays. I have devel and admin_devel enabled. I flushed all cache to make sure the hook is fired....
0
votes
1answer
3k views

how to resolve undefined property error

This is my code: function my_module_node_presave($node){ if ($node->type == 'add_stock') { $stock_value = $node->field_stock_value['und'][0]['value']; drupal_set_message('stock_value ...
6
votes
1answer
1k views

What is the difference between the Load and Render objects in Devel?

When viewing a Node in the Devel tab, what are these different objects Load and Render? How and where would I have access to them in the theme layer?
1
vote
1answer
378 views

Reduce latency in loading a page in Drupal 6

I have activated cache in Drupal, and the Devel module. The total time in all queries is less than one second, but the latency is 4.34 seconds. Can anyone explain the latency? What happens during the ...
1
vote
1answer
384 views

Possible explanation for error and site crashing randomly without any provocation?

I have a multilingual client that "suddenly and randomly" started suffering errors and a site crash. The client assured us they "have not touched the site since it went live." And, more or less we ...