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
1answer
3k views

Having problems with file_copy in Drupal 7

In my particular situation I am trying to use Drupal's API to import a bunch of files from my computer into a local Drupal installation. Seems like a smart idea. So I have the following function: ...
9
votes
4answers
6k views

Can Xdebug be triggered by Drush commands?

I'm running into an issue with my Features modules and installation profile when installing the site with drush si. There are a number of probably related issues in the Features issue queue, but none ...
4
votes
3answers
3k views

How can I see my drupal site as a anonymous user while logged in as admin?

I want to use Devel Themer to look at the "homepage" comment field, but it only shows up for anonymous users. Is there anyway to see a page as a anonymous user would, and at the same time be logged ...
1
vote
2answers
1k views

How enable PHPMailer to write complete persistent log?

I am using the PHPMailer module to send emails to a user group (role) by a poormanscron-job. I can see errors in my "recent log entry" view in the backend but I cannot get a persistant log with all ...
23
votes
9answers
37k views

dpm() does not display any results on screen

I have the same problem as file_scan_directory() takes about 10 seconds to execute. I just tried the dpm(func_get_args()) suggestion, and unfortunately it doesn't show anything to me. I've cleared ...
3
votes
1answer
332 views

l() is not being called correctly in menu.inc

I had been getting this error message: PHP Fatal error: Unsupported operand types in /var/www/www.ruv.is/pressflow/includes/common.inc on line 1588 So I did a backtrace and this is what it ...
12
votes
1answer
10k views

Where are logs created by drush_log() stored?

I have installed Devel module to use xhprof. In devel settings, I have enabled xhprof, but when I load a page, can't see a link to xhprof. I read the source and found this: drush_log('xhprof link: ' ....
0
votes
1answer
286 views

hook_init() is executed more than once

When running xdebugger in hook_init(), I noticed that the debugger was stopping at same break points more than once. Why is this so? Will it not affect the page load time?
2
votes
3answers
2k views

How to trace PHP errors

I am getting the following errors from Googlebot; I am getting about 5 of them per minute, and I want to find out what is causing them. Type php Date Friday, February 3, 2012 - 08:16 User ...
1
vote
3answers
3k views

Devel 'Display Query Log' not showing any queries

I've enabled 'Display Query Log' in the Devel Settings but I don't see any logged at the bottom of my page when I load a page. I just get 'Queries exceeding 5 ms are highlighted.'. I'm running Drupal ...
9
votes
1answer
3k views

Debugging hooks that fired?

I'm somewhat new to module development. Is there a way to currently output what hooks have been run on certain nodes? Would this be done with xdebug?
1
vote
2answers
477 views

Tracking down pesky PHP 5.3 errors [closed]

We have a site that is throwing errors when uploading files to a simple "Page" node. I've done a lot of work trying to track down the actual source of the error, and I posted a half dozen messages to ...
3
votes
1answer
2k views

Displaying page execution time using devel

How is it possible to use devel module to show Page execution time on a site? I enebled it and it shows numbers only on admin pages. Thank you for help.
9
votes
4answers
7k views

How to configure XHProf on windows?

With the help of Lorenzo Alberton tutorial, i get XHProf installed for drupal 6 on linux server. Now i need to get it installed on windows but i found that XHProf cant be installed on windows. ...
2
votes
1answer
147 views

Cannot save any modules

Whenever I want to enable/disable modules I am given different errors like the one below. These error messages change every time disable/enable a module. "Fatal error: Out of memory (allocated ...
36
votes
4answers
7k views

How do I debug permissions?

How do I debug permissions in Drupal 7? I use core reporting, error logs, devel module error logs, backtrace and node access permission block but sometimes it is not enough. What else should I check ...
2
votes
1answer
36 views

Has anyone used beta profiling module

For most of my projects i am using Devel module. Recently i looked at other module Profiling - it also provide integration with views and Panels. I was thinking to use this, as mentioned here it is ...
0
votes
1answer
144 views

The Login block has vanished

I haven't changed it in /admin/structure/blocks and it is still there. All that I can think that I installed a few modules to try them out and then disabled them and maybe that caused it. In any ...
2
votes
1answer
781 views

Can't access module settings (Devel module)

I have a module that's enabled and working, but the configuration options won't show. The module in this case is Devel, which I've used on other sites with no problem. In this site, whenever I click ...
3
votes
3answers
2k views

Site in offline mode, any way to debug how this happened?

I came in this morning to find my companies site in offline mode. I personally checked with the only other site admin, and none of other users have the ability to turn off the site. I was using the ...
3
votes
4answers
961 views

How to debug Drupal Forms

Sometime back I'd gone through a Lullabot video that showed me how to simply click a form and see all its elements using Krumo using Devel module. But I've searched all internet I'm not able to find ...
8
votes
3answers
14k views

How to use the dsm( ) Devel function to print the $form array of my form?

I want to use the dsm() function of the Devel module to print the $form array of a form, where the form_id is search_theme_form. How to do that?
1
vote
1answer
513 views

Custom PHP code in Rules differs from Devel's one

I'm facing an issue which is quite boring since the result displayed into Devel's PHP executer differs from the results of the Custom PHP code. What I want to do is sending private messages (thanks to ...
0
votes
1answer
1k views

getting around recursion when dumping a node?

I'm working on a template and I'm using kpr() from devel to look at the values defined in $variables. One of them is the node in question, and what gets displayed is a big infinity sign indicating ...
4
votes
1answer
943 views

How to speed up Drupal 7 calls to _theme_process_registry?

Using xhprof php profiler I can see there is much more then 100000 calls to function_exists each time user accesses a Drupal 7.8 page, mostly from _theme_process_registry. What to do to limit the ...
0
votes
4answers
413 views

DSM output intermittently shows up

For some reason my DSM output is only occasionally showing up. Nothing significant is changing on the template I'm calling it from. It will show up, then on refresh go away, and randomly re-appear 10 ...
2
votes
1answer
453 views

How to make Drush rsync @dev @staging exclude some directories?

I am using the following drush commands to synchronize development and test environments. drush rsync @dev @staging drush sql-sync @dev @staging How to setup drush to exclude certain directories (...
1
vote
2answers
3k views

dpm does not display form return values

I just enabled the devel module on Drupal 6 and using dpm($form) was showing values for me but it does not show values any more. What would mostly the issue here? Is there a way to see those values? ...
7
votes
4answers
8k views

Debugging #AJAX and FormAPI

What is the easiest way to view current '$form_state' variables while working with #ajax? is there a way I can get dpm() to update automatically on each ajax load? If it matters, I'm testing ajax on ...
6
votes
1answer
4k views

Devel kpr, dpr, dpm, etc. only print after cache flush

I'm writing a small module and using the Devel print functions (dpr, kpr, dpm, etc.) to print out some values. However, I only see the values in the page after I flush certain caches. if I just ...
3
votes
1answer
4k views

What causes the error “Call-time pass-by-reference has been deprecated?”

My understanding is that objects in PHP 5.3 are all passed by reference so using the &$ notation is not necessary. My problem is using date_views module where I'm getting this error. Deprecated ...
10
votes
5answers
7k views

Missing “Clean URLs” option

I have a new installation of Drupal 7. I was having a problem with administrative overlay URLs having URL encodings in them, which I asked about here. Another user suggested I confirm that I have ...
1
vote
2answers
1k views

URL encoding in admin overlays - breaks overlay

I have a fresh install of Drupal 7 with no content, and a few extra modules installed. Recently as I've navigated on the admin side, the URLs for the overlays have escaped HTML in them, like this: ...
1
vote
1answer
613 views

How to use Devel module to see what creates an URL?

I want to know what creates an URL of a site for example a view,panel etc. Which command should I write on the Devel module on "Execute php" ? Thanks
2
votes
1answer
178 views

How to inspect outgoing email content?

There are several modules that send email from my site: Rules, Trigger, User, ... I am looking for a place to set a drupal_set_message() and print out the email contents. Where in the code would be ...
3
votes
3answers
4k views

Need to print all the function calls Drupal makes

I need to examine all the function calls Drupal makes during it loads a page (even if there are no errors). I guess debugging software can do this but I would also like to know a way to do this ...
6
votes
2answers
8k views

How can I output the Devel query log?

Is it possible to output the Devel generated query log in some way? By default, it prints to the bottom of the page which is fine until I need to send the results to someone else to review.
0
votes
3answers
685 views

How do I echo the node vocabulary in preprocess_page or in page.tpl.php so that I can test against it in Drupal 7?

I need to be able to echo the vocabulary that is associated with a node, but I need to echo it either in the preprocess_page function in template.php OR somewhere in page.tpl.php. I can't seem to find ...

1
7 8 9 10
11