Questions related drupal modules & themes debugging

learn more… | top users | synonyms

0
votes
1answer
20 views

Simple debug results in internal server error

All I want to do is print a view out so I can check the variables and see the structure of what's being created but it results in an internal server error. I'm using Acquia Dev Desktop. I've checked ...
0
votes
2answers
31 views

How can I print out large variables in hook_entity_presave for debugging?

I'm trying to print out the $entity variable im hook_entity_presave because I want to see all of the properties and their values at the time of saving. The problem is that every way I have tried to ...
1
vote
3answers
41 views

Rules debug: How can I display the value of a variable inside a condition?

I have created a rule using the Rules UI. My rule is not working, and I need to debug it, displaying the values of my variables inside a condition where I make a comparison. I see within Rules ...
1
vote
2answers
88 views

How to debug or explore an unknown object or array too big for Drupal's debug()?

I'm trying to see what variables I have available in a $vars object in a Views hook. Unfortunately, like many Drupal object, this one is huge and attempting to output it using the Drupal debug() ...
0
votes
0answers
7 views

How to catch the currently indexed node id by Search API?

My Search API indexing is stuck at a node, and fatals with memory exhausted php error. I suspect a node may be corrupted. How can I output the node id where the queue is stuck? Perhaps echo it ...
0
votes
1answer
19 views

How do I get kint() to include the variable name in output?

My understanding that normally kint will display the variable name in the output, e.g. $abc. But in my code kint($abc) never outputs the $abc label so when I have multiple kints it becomes very ...
3
votes
1answer
32 views

Copy path to variable in array using Kint

In D7 using dmp() with Krumo in produced output like this: Double clicking on a variable value, in this case "foobar" shows the path through the array to that value (the highlighted text in the ...
1
vote
1answer
21 views

debugging an array while creating custom rule

I am trying debug a custom rule I am creating. In my helper function I am calling an array I want to work with. I want to dpm the contents of the array so that I can see what is available, but it is ...
0
votes
1answer
31 views

How to debug custom node type

I am following this guide to build a custom node type in Drupal 7: http://www.sitepoint.com/creating-a-new-drupal-node-type/ Unfortunately, my code is not working and drupal is not outputting any ...
2
votes
2answers
31 views

Error after installing and enabling “Rooms-Drupal Booking for Hotels, B&B and Vacations” and dependent modules

After installing and enabling "Rooms-Drupal Booking for Hotels, B&B and Vacations" and dependent modules, I get this error when I try to go to the content menu. Does anybody have anything to fix ...
7
votes
2answers
125 views

Drupal Settings for PHPStorm

I want to try to work with PHPStorm Debug. I already installed debug on my Mac and changed the php.ini File. Furthermore, I installed the Debug Helper for Chrome and created a Projekt on PHPStorm. ...
0
votes
1answer
19 views

How to get a backtrace in Drupal, without problems like out-of-memory when huge objects are in the trace?

I often have problems with the standard backtracing functions when working with Drupal: debug_print_backtrace(); often seems to get lost between pages and never prints, Drupal's objects and classes ...
0
votes
2answers
40 views

Why does my code for checking field permissions allow users to register with the same email address?

Based on the Examples module, I tried to set up permissions on some user account fields so that only admins can read them. However, the code below somehow allows users to register with the same email ...
0
votes
2answers
52 views

How Can I display values of variables in a “PHP contextual filter code” to debug my code? [duplicate]

I have to use PHP code in contextual filter code in a "Arguments/Contextual Filters" of a view: global $user; $uid=$user->uid; $pid=db_query("select pid from profile where ...
0
votes
1answer
25 views

How to debug a server reset or WSOD?

We have recently observed that we can put Drupal in an inconsistent state where it responds with a server reset or WSOD, where no data is sent. This by simply having some faulty configuration (See CCK ...
1
vote
1answer
16 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
26 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
15 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
288 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
72 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
62 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
49 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
57 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
55 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 ...
3
votes
1answer
84 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
9 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
74 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
6 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
63 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
26 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
34 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
144 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
1k 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
25 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
72 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
87 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 ...
5
votes
2answers
432 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
243 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
87 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
29 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
2answers
21 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
46 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 ...
1
vote
0answers
109 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
59 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 ...
1
vote
2answers
119 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 ...