Questions related drupal modules & themes debugging

learn more… | top users | synonyms

0
votes
1answer
39 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
20 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
40 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
12 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. ...
1
vote
1answer
17 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
65 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
42 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
18 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
7 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
18 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
25 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
107 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
10 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 ...
0
votes
0answers
11 views

Preprocess function values not persisting

I am having a really bizarre problem over the last few days. I'm trying to alter a field value through a preprocess function and while I can see the value has been changed inside the function, it ...
0
votes
0answers
38 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
38 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 ...
0
votes
0answers
43 views

How to debug missing form field?

My content type has a field_file (managed file). Problem is that the file is only visible to person who uploaded it. I upload the file as UID 1 and can't see it as normal admin. The field is there in ...
0
votes
0answers
19 views

Debugging/Profiling tools for Drupal [duplicate]

Looking for other debugging or profiling tools/methods for Drupal other than Web Profiler and Devel module. Anyone?
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
40 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
41 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
19 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
21 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
13 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
85 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
1k 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. ...
2
votes
1answer
189 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
19 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
143 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
0answers
38 views

xdebug hangs every time drush_invoke_process in Drush command

I am trying run xdebug with PHPSTorm while developing DRush commands. Everything seems to work, except it hangs whenever my custom drush command call drush_invoke_process. In drush debug mode, this is ...
0
votes
1answer
380 views

Drupal issues - 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
58 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
31 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 ...
2
votes
2answers
1k views

How to enable developer/debug mode in Drupal 8

Installing drupal 8 core (using standard profile). whenever I get exception/error, I get blank page with "The website has encountered an error. Please try again later." (as below image) text and no ...
1
vote
1answer
174 views

How to log actual SMTP Authentication module communication with server?

We are using SMTP Authentication module. Our SMTP provider claims we are whitelisted. Configuration works. When Drupal is supposed to send email, proper entry appears in Watchdog, claiming succesful ...
6
votes
1answer
106 views

Is there any 'advanced' debugging available for Views?

I know Views can show you an SQL preview, various performance statistics, and other SQL queries performed for live previews; I'm looking for something a bit closer to the bone. The use case... I'm ...
0
votes
1answer
168 views

How to debug / log comments when developing a custom module to fire when cron is run

I am about to develop a custom module that will hook into a hook that is triggered when cron runs. Since the module will be activated during a cron run, i am not sure how to go about giving myself ...
0
votes
1answer
101 views

Cannot add content using default content types

I have Article and Basic Page, but when I try to add either of these to my Drupal Site I get the following error message. You have not created any content types yet. Go to the content type ...
1
vote
1answer
99 views

How to alter and debug views queries?

I'm trying to find the hook/module which can modify a views query. The view is from Workbench module which is displaying the draft's of the actual user. If I Disable SQL rewriting in the Query ...
0
votes
1answer
1k views

An AJAX HTTP error ocurred. HTTP Result Code: 500 (while trying to rebuild content access perms)

I have installed a module that ask me everytime to rebuild content Access Permissions, but every time I try to do it, it shows me an error I do not have idea why is it happening. Please help An AJAX ...
0
votes
0answers
32 views

Best way to approach a mismatch in schema

I'm new to drupal and decided to write my own field module (position_affiliation). But when I enable it and apply the module to content, I get a schema/database mismatch error. The specific mismatch ...
0
votes
1answer
56 views

Debugging Migrate: how to print what data's mapped to a field

I have a migration module that imports data from a CSV. I've steadily been adding code to the module and fields to the CSV, and it's always worked, albeit sometimes only after some work. But now ...
1
vote
2answers
476 views

Messed Up Drupal Site, truncated all cache, menu_router, registry_file and now I can't access site

After disabling comment module, I could not access some modules, so I researched how to get that fixed and end up following this. I cleared all the cache_table, menu_router and registry_file. This ...
0
votes
0answers
83 views

Can't update LDAP module due to Memory Limit

I need to update the LDAP module from 7.1.x to 7.2.x to remove a fatal error. When I navigate to the update.php script, there are 18 updates. When I run the script I get this error: An AJAX HTTP ...
1
vote
3answers
416 views

What Causes DatabaseTransactionOutOfOrderException and how do I fix this?

I am working on plugin to Drupal Commerce, and I started getting this error: DatabaseTransactionOutOfOrderException: in DatabaseConnection->rollback() (line 1058 of ...
1
vote
2answers
100 views

Weird behaviour when using dsm

I am using Drupal 7 on a CentOS 6.5 box. I am trying to debug some code which produces the following error: User error: ImageMagick error 1: convert: no decode delegate for this image format ...
1
vote
0answers
119 views

Debugging Drupal via Drush on Eclipse

I've been trying to set up a debug environment for Drush using Eclipse(Kepler), in order to find out why the difference of the result of running hook_install() between via Web UI and via "Drush en". ...
1
vote
1answer
1k views

How to debug EntityMalformedException?

I've got fatal error EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7700 of .\includes\common.inc) when trying to access user/xyz. I tried to ...
0
votes
1answer
18 views

What file generated output

I was debugging by adding a print_r() to my code to check array values along the way. The problem is I forgot where (which module and which file) I had added the print_r() statement since it has been ...
3
votes
2answers
191 views

How to debug merge query?

I have a simple merge query, with one key and three fields, something like: $query = db_merge('product') ->key(array( 'id' => $id_product, )) ->fields(array( 'name' => ...