The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
25 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
29 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 ...
0
votes
1answer
58 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 ...
0
votes
3answers
76 views

Let anonymous view dpm()

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 ...
0
votes
2answers
30 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: ...
1
vote
1answer
51 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 ...
0
votes
0answers
28 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 ...
3
votes
1answer
99 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
1answer
273 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 ...
1
vote
1answer
43 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 ...
0
votes
1answer
51 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 ...
1
vote
1answer
63 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 ...
0
votes
1answer
37 views

Debug Drupal module upgrade

In "Status report" I have message saying that some modules have database schema updates to install. However when I run update.php nothing happens. I just get the standard error message that "Some of ...
0
votes
1answer
69 views

How do I get debug_backtrace() to fire on the endpoint site of a Deployment process?

I'm trying to work through this UUID features bug with the deploy module. On the receiving site, I see errors in that log like PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer ...
3
votes
1answer
210 views

webform + webform_entity gives empty view results :(

I am using Webform + Webform_Entity to show webform results as node content used in Views on certain pages. Here is a screenshot of 1 webform_entity form. The form collects 2 taxonomy terms (from the ...
0
votes
0answers
21 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
1answer
90 views

How can I debug why user_save() is being called twice?

I have a site with a large number of modules (100+) installed and I have an issue with my rules firing twice, which appears to be caused by user_save() being called twice. (I was able to confirm this ...
3
votes
2answers
52 views

How should I file an issue on drupal.org that affects multiple modules?

I have an issue that is caused only when three modules are enabled together (logintoboggan, pathauto, and entity). When I upgrade entity from rc1 to rc3, one of the functions of logintoboggan breaks ...
1
vote
2answers
120 views

So I've installed FirebugForDrupal (updated)

I installed the browser plug in and module in drupal. On this (development environment) I gave authenticated users access to the 'Access Firebug Debug' permission. Site Admin has access to that and ...
0
votes
2answers
56 views

How to inspect a variable when testing with `drush test-run`.

When testing with my SimpleTests, I want to inspect a variable. var_dump() and the likes are not being rendered in the output of Drush, Xdebug interactive debugger does not work due to the simulated ...
1
vote
5answers
2k views

“The website encountered an unexpected error. Please try again later.”

I have this error with Drupal 7 how can I have some more information about this error ? Any report, any log anywhere ? Nothing in php errors. how can I disable that message and have a more useful ...
0
votes
1answer
49 views

Devel user & decrease number queries

I'm trying to decrease the number of my queries with the devel module but I have two questions. 1) Why do I have 281 dblog_watchdog queries? How can I get rid of them? Why should I keep them, I ...
0
votes
0answers
48 views

some menu aliased links set $user global to anonymous

Some of my aliased menu items redirect to login, other items in the same list do not. After some investigating, I found that on these pages, the $user global is set to user 0 (anonymous). I saw this ...
0
votes
2answers
160 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: ...
2
votes
2answers
44 views

Is there a way to log changes to module settings for better long-term administration and debugging?

We run quite a complicated Drupal 6 site with a lot of custom modules which was already migrated from D5. There are a few site administrators and we have had situations where a change in the settings ...
0
votes
1answer
374 views

How do I troubleshoot 'Theme key “” not found'?

How do I troubleshoot the error Theme key "" not found? I found dozens of search results regarding specific keys, but nothing useful for debugging an empty key (""). Here is the full entry from ...
0
votes
1answer
68 views

Issue with Registration codes module in Voucher mode, trying to fix

I am having serious issue with Registration codes module and searching for solution to fix it. It is described here: http://drupal.org/node/797602 There is a patch to the issue, but author of the ...
0
votes
0answers
170 views

Can I set Javascript breakpoints in Eclipse?

In a previous installation of Eclipse I used to be able to set breakpoints in my Drupal module's Javascript code. (I'm not sure it ever worked without crashing the Rhino plugin). I recently ...
2
votes
1answer
326 views

krumo()/dpm() not working

I have a custom module and a template to alter the appearance of my node submission forms, á la these instructions. My module consists of three functions: A hook_form_alter() that works fine A ...
3
votes
3answers
642 views

Devel module and Krumo

I super love Krumo/Devel. However, I'm sure I'm missing something obvious, because when I use dsm() and I get my array or object all expandable and awesome, sometimes I have a hard time knowing which ...
2
votes
1answer
88 views

Developing for Drupal 7

I am trying to wrap my head around the Drupal 7 framework using the debugger in eclipse. The thing is, I'm feeling a little overwhelmed with the endless function calls and watching data bounce back ...
0
votes
0answers
22 views

Debugging multiple page loads

I am trying to debug the module enabling process which involves four modules that depend on each other. It's because one of them throw an exception by calling field_create_field() without giving a ...
4
votes
4answers
167 views

Why do modules have bug reports?

A good question was raised in this comment by EGHDK: Why do these modules have bug reports. Shouldn't this be a simple task for a module to complete with no errors? He was referring to limiting ...
2
votes
1answer
167 views

Can't Review Order, button loops back to checkout form '/cart/checkout'

I'm having a problem which is prevent me from reviewing my order after completing the checkout form. Once I click on "Review Order" the page essentially refreshes itself because of the loop. Others ...
8
votes
3answers
604 views

Is there a good way to inspect objects whose type is derived from the EntityDrupalWrapper class?

I'm sure this question applies to other complex object types, but EntityDrupalWrapper is the one I'm currently working with. This is the type of object returned by entity_metadata_wrapper() (and ...
1
vote
0answers
90 views

How to debug IMCE javascript problem

I have a D7 site with CKEditor + IMCE. The main site (www.example.com) IMCE works as expected. My staging site (cloned w/ Backup & Migrate) (staging.example.com) IMCE javascript is not working ...
0
votes
0answers
110 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 ...
1
vote
1answer
354 views

How to dpm() an object value?

If I run dpm($form); I get an array containing objets. Now I need to just dmp() the uid of the node object. How do I do dmp() to isolate an object value? I tried with dpm($form['#node']['uid']); ...
3
votes
1answer
206 views

How to generate a stack trace from Drupal upon errors

I am sysadmin trying to debug a Drupal application. In my server logs I can see Drupal making the same requests again and again to our Solr instance until PHP eventually runs out memory and httpd ...
0
votes
0answers
73 views

How can I print e-mail messages sent by Drupal to the screen for debugging purposes?

For debugging, I'd like to print the values being used to send e-mail messages to the screen. After enabling the devel module, I tried this code (modified as per Letharion's comment): function ...
0
votes
2answers
348 views

How to dpm() the Drupal.settings.basePath var

For debugging purposes I need to use dpm to output the value of Drupal.settings.basePath. I tried this (but not working): dpm(Drupal.settings.basePath); // not working
1
vote
2answers
209 views

What is the difference between the various log messaging severity levels?

There are several types of log messaging severity levels - emergency, critical, error, alert, info, notice, warning, debug. What does each level mean? Example, emergency and critical sound similar, ...
3
votes
1answer
500 views

Variables dump to Javascript console

Is there any equivalent of var_export or var_dump available in Drupal, that would output variables directly to the console object (FF, Chrome - console.log() or console.info())? I just don't feel like ...
0
votes
1answer
61 views

determine which template file a contrib module is using?

I'm using a contrib module. It doesn't seem to be using the right template file. I'm trying to triage whether the problem exists in my template or if it is just the hook template suggestion. What is ...
1
vote
1answer
259 views

Function trace?

Is there a module that can essentially show you the function stack trace of the last request made? Say I have a form that I submit. After the page loads with the result from the request, I would ...
0
votes
1answer
1k views

Feed aggregator does not update RSS feeds when cron job is run (Drupal 7)

I have several feeds setup in the Feed Aggregator ( admin/config/services/aggregator ) in Drupal 7. I know that my cron job is running regularly - by checking admin/reports/dblog But the when I look ...
2
votes
2answers
835 views

How do I know what variables are available for a theme function?

I am using the Menu block module. In one template I have used kpr($page); to see what hooks the menu block is calling. I then created the correct function in my theme's template.php file ...
0
votes
1answer
72 views

Xdebug: What Drupal values for “Project URL” & “Index File” will NetBeans accept for a new Configuration?

I just slept at a Holiday Inn last night and watched this Vimeo Tut on Xdebug. I'm experiencing trouble with a Views plugin and wish to "step into the Matrix" to find where the error is occurring. ...
0
votes
1answer
543 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: ...
4
votes
2answers
264 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 ...

1 2