The debugging tag has no wiki summary.
0
votes
0answers
42 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
28 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 ...
0
votes
0answers
24 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 ...
0
votes
0answers
39 views
PHP notice on update.php
On a Drupal 7 installation I got by inheritance, I am getting the following PHP notice whenever I run upgrade.php:
Notice: Undefined index: scale in number_field_schema()
(line 36 of ...
0
votes
4answers
83 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, ...
1
vote
1answer
20 views
Debugging- 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
42 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) ...
1
vote
1answer
139 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
18 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 ...
5
votes
1answer
54 views
Module to list menu_router / path debug info?
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 ...
0
votes
0answers
21 views
Module Development - Debugging Inforamtion
Where can I get (better) debugging information?
Sometimes Drupal fails silently. For example, I was working with Entity API and I had typed a table name incorrectly and I received no error message, I ...
0
votes
1answer
14 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
66 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
48 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
82 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
142 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 ...
1
vote
2answers
48 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
98 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
119 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
555 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
59 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
117 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
94 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
68 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
88 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
261 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
2answers
160 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
54 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
166 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 ...
2
votes
5answers
152 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
6answers
4k 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
63 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
258 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
55 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
460 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
80 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 ...
2
votes
2answers
517 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
1k 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 ...
3
votes
1answer
99 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 ...
4
votes
4answers
173 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
186 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
887 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 ...
2
votes
0answers
100 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
129 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
536 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
312 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
90 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 ...