Questions related drupal modules & themes debugging

learn more… | top users | synonyms

0
votes
0answers
17 views

Node form array is too big to display - lack of memory or browser crash [on hold]

I'd like to investigate what's inside $form variable, but the array is so big that even the browser can't display it (it crashes every time). I'm pretty sure that there are many unused data in this ...
1
vote
1answer
15 views

Base theme no longer recognized

I recently inherited a Drupal 7 (7.39) site using an old version of Omega 4 (beta7) and a custom subtheme. All was well until this morning, when cron got stuck. It unstuck itself before I could start ...
1
vote
2answers
23 views

In Drupal 7 how do you output array objects to be view able in watchdog error reports?

For some reason I couldn't use devel to debug output object arrays. Is there a way to output the array data to watchdog error reporting? This would also solve the issue of having to install or enable ...
0
votes
0answers
14 views

How to access low level fields in the best way?

I have the module Google Store Locator. In the rendered data of the stores, I wanted to drop the Country name. I had to go the the content type - Store Locator -, and check a few options (see image ...
0
votes
1answer
96 views

dump(), kint() & print_r() are not working in .theme file

I've used drupal 8 with devel module. I want to change some values dynamically in views fields. So i tried to use theme_preprocess_views_view_fields(). When i tried to print variables using print_r(), ...
-2
votes
2answers
53 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
vote
0answers
20 views

Doing a debug_backtrace() - White Screen when putting it in drupal_set_message() [duplicate]

I currently have the following code in my drupal_set_message() 1778 function drupal_set_message($message = NULL, $type = 'status', $repeat = TRUE) { 1779 if ($message) { 1780 if ($type == ...
0
votes
3answers
52 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 ...
0
votes
1answer
33 views

Debugging your code under SimpleTest when the behavior is different

I'm dealing with a weird problem where a few of my tests are dying from exceptions when run inside of SimpleTest, but I'm unable to reproduce the problem outside of the SimpleTest environment. In ...
0
votes
1answer
31 views

How to debug Batch API more efficiently?

I've some issues with Feeds importing (I don't want to focus on particular case) and I'd like to find the way of able to debug Batch API processing more efficiently. Given the fact of complexity of ...
2
votes
2answers
45 views

How do you find out which module is causing a redirect?

I have a Drupal 7 site and have a bunch of custom modules installed. Currently when I hit a specific node/9283 it gets redirected to another page. I'm not sure which module is causing this redirect. I ...
2
votes
1answer
53 views

How to get drush to work with xdebug — may have recently broken

I've been using drush with xdebug for years. It looks like it broke in the last two weeks, possibly due to modifications made to the core "drush" script (Split 'drush' script into finder, wrapper and ...
0
votes
0answers
8 views

How do you find out what module generates some output when running cron.php?

So... I have one website which somehow now generates two empty lines (something like echo "\n\n";) when cron.php is run: wget http://www.example.com/cron.php Output is a cron.php file with "\n\n" ...
1
vote
2answers
59 views

how to print db_select result using watchdog?

I'm trying to debug below code: $perishables = db_select('userpoints_txn', 'up_txn') ->fields('up_txn', array('txn_id', 'uid', 'points', 'remainder', 'time_stamp', 'tid', 'operation', ...
0
votes
1answer
5 views

Can't uninstall “Translation Language capabilities (tmgmt_language_combination)” dissabled ALL translation modules that might be dependant

I've tried drush, I disabled i18, ALL fields, multilingual, entity translation, l10n, everything about translation is disabled. How can I completely get rid of this module, it's caused nothing but ...
0
votes
2answers
56 views

How to find which block is causing PHP errors?

I'm cleaning up a Drupal 7 site and currently its spitting out a bunch of PHP syntax errors pointing to some block that is causing it. It doesn't say which block but only says php_eval() error. So I'm ...
0
votes
1answer
22 views

Best technique to debug checkout panes

I just need to review/explore the array of built in checkout_panes so that I can debug it. However, the following code does not display any result. <?php function ...
1
vote
1answer
29 views

Diff of module version releases

I'm trying to debug an error I'm encountering in the latest version of the Custom Formatters module and I'm encountering a common problem I have in debugging. There's no easy way to do a project-wide ...
0
votes
0answers
122 views

500 error in a Drupal module: “malformed header from script”

I am debugging an error in a specialized module in Drupal 7; basically, the module receives a HTTP POST request from a remote banking system, and needs to store that data and return an "OK". The ...
0
votes
1answer
832 views

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1532856' for key 'PRIMARY': INSERT INTO {watchdog}

I am worried about a big error found on my website.Yesterday it was working and today morning i found the issue.Please help me to solve it. Error message: PDOException: SQLSTATE[23000]: Integrity ...
0
votes
1answer
24 views

How to prevent showing background code in Drupal 7 admin?

I am seeing the following screen when i am saving or updating a node in drupal 7 admin. I am using Drupal 7 with Seven theme.I am seeing the following texts in white screen.To get the actual i need ...
1
vote
2answers
65 views

Redundant log settings between Drupal and Apache

I'm trying to discover how I can reduce the redundant logs (PHP errors, Drupal messages, debug logs, whatever) that are stored in Drupal's database and in Apache's log folders. I'm primarily a ...
0
votes
0answers
16 views

Menu Bug in Drupal 7.35

I'm running into this weird bug in Drupal 7.35; when I try to save a menu item as a child item, it sometimes works and sometimes doesn't. Attached is a video of the behavior. ...
0
votes
1answer
72 views

XHProf not displaying runs but empty table

I'm trying to profile a drupal website using xhprof. I manage to install it and configure drupal to use it (using the devel module) but I have a problem to visualize the result. First, for some ...
3
votes
2answers
291 views

Why is ddebug_backtrace coming up blank?

I've been using the Devel module for a couple of years now but every time I try to get a backtrace I run into issues. I remember getting it working once, but I don't remember how. It seems like ...
3
votes
1answer
220 views

For Drupal 7, is there a hook debug mode equivalent to the theme debug mode?

As a beginning developer, it seems like I spend a significant percentage of my time googling to find out what hook to call in order to modify something before it renders. In the drupal 7.33 release, ...
0
votes
1answer
77 views

Getting Xdebug to work with Dev Desktop [closed]

I'm trying to get xdebug to work with Dev Desktop. I am following the instructions in this guide: https://www.drupal.org/node/1846954 and I still get the message, "waiting to connect" well after it ...
0
votes
2answers
28 views

“Can't create table errno: -1” when trying to create the cache_rules table on D7

I'm having a very strange problem. I have a website on Pantheon (Nginx) that I attempting to import into my local dev environment, but when I import, it is failing when it gets to the cache_rules ...
0
votes
0answers
13 views

The webform is not excepting the files with extension .docx sometime and sometime its excepting?

I have version = "7.x-3.15" core = "7.x" project = "webform" and I have a field file in which I have given permission (.docx, .doc, .pdf) to be uploaded but when the user is uploading any file with ...
0
votes
2answers
20 views

User email being deleted when submitting Profile 2 form

i'm debugging a site that I haven't made. The issue is that the users email address is being deleted. I've found which form it's happening on; and by using hook_form_FORM_ID_alter I can see that ...
0
votes
1answer
41 views

missing cet_enable field in product type settings (Commerce Event Ticket)

I have installed the Commerce Event Ticket module along with any requirements and have enabled it. I see the following under column description in admin/modules: Allows tickets (with unique ...
0
votes
2answers
497 views

How to debug a 5 second Drupal response time

I recently noticed that my Drupal 7.34 site is taking 5 seconds or more to respond. So the most basic page, or an image (with itok) will take 5 seconds or more. If the page is complex then there can ...
0
votes
0answers
31 views

how to get through devel debug log

I've installed devel debug log module to see execution time of all pages. Now the problem is about queries which do an action of delete, insert or update in cash tables in spite of setting cash ...
1
vote
0answers
87 views

View XML Request when using WSClient and Rules

I am building a website that uses 3rd party data from a web service. I decided to use WSClient...so far so good. I am using Rules together with WSClient to create the proper SOAP request, however I ...
0
votes
1answer
58 views

How to add a report an error button in a Drupal 7 website and collect user's browser details?

We just did a website upgrade. On some sites I have seen a 'Report an error' icon (in the right hind corner). After clicking on it, a user can report an error which will send along other information ...
1
vote
2answers
57 views

How can I improve as a site builder for dealing with errors I don't know how to handle? [closed]

As a relatively new Site Builder, I understand some of what is going on under the hood. But when things go wrong .… Without an intimate knowledge of module code and inner workings, the error messages ...
1
vote
0answers
26 views

Issue with “edit” links on Menu pages

I have an unusual bug i've encountered during development of a client site -- it appears that for all Editable menus, when I click on edit, the site loops me into a Redirect Loop, pointing to a menu ...
3
votes
1answer
48 views

Image field - 'Number of values' is not showing up in admin form

Something's very wierd with my existing Drupal 7 setup (current Drupal version, set up in early 2013, custom Zen Subtheme). When I create a new Content Type with a new Field Type "Image" this 'Number ...
0
votes
2answers
101 views

Why does dpm() sometimes fail and krumo() works

They both dump variables in the same format & style. From some articles or documentation that I'd read, it seems krumo() calls dpm(). The problem is that sometimes I call dpm($var) and nothing ...
0
votes
0answers
22 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
23 views

Where Can I find the output of the debug() function displayed?

I have written debug() in a php file in my local Drupal project. I am trying to see the output. How do I do that?
0
votes
1answer
17 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 ...
0
votes
2answers
202 views

Differences from dpm and dsm for devel module for debugging objects?

What are the differences of dpm and dsm for the devel module? I mainly use dsm for the devel module. What are some other common debugging functions that are useful in the devel module?
0
votes
1answer
3k views

Drupal Error : The website encountered an unexpected error. Please try again later [duplicate]

I made a site locally and when I uploaded it to the hosting server, it worked fine except when I went to edit some content type. It showed this error: The website encountered an unexpected error. ...
3
votes
1answer
387 views

Is there an AJAX command I can use to debug PHP variables without breaking AJAX call?

I know the list of Ajax framework commands. Every one of them is doing something useful. But sometimes I want, for debug, include a piece of debug data in my AJAX response. I want it to be ...
1
vote
1answer
20 views

How can I send an e-mail to the admin when use of a view results in an error?

I have a large number of complicated views on a site, some of which, when searched with certain options or by certain users, give the following error: An illegal choice has been detected. Please ...
0
votes
1answer
239 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
620 views

DB and modules in folder that doesn't exist

Ok, so I ran into an issue today that completely baffles me... I have a staging server that I have about 30 sites on. Most are WordPress and about 5 are Drupal. Yesterday I worked on a Drupal site ...
0
votes
1answer
109 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 ...
1
vote
1answer
35 views

How to extract query placeholders for debug purposes?

When I cast query to string, I can see WHERE that will be passed to the database, like this: WHERE (idProperty = :db_condition_placeholder_0) AND (idCategory = :db_condition_placeholder_1) But ...