Questions tagged [debugging]

Use it for questions about module and theme debugging (e.g. "How do I debug this situation?").

122 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
1 answer
3k views

500 error without any error log entry

Migrated a Drupal 8 site to another server running apache2 PHP 5.5.9 (should be supported). Apache returns 500 when index.php requested, but no errors are logged anywhere. I tested by forcing an ...
BrrBr's user avatar
  • 133
3 votes
1 answer
418 views

Output array data on drush error when showing stack trace

I'm trying to install a module, but its giving me errors during a drush enable. It shows the stack trace log and I can see it has something to do with the flag_lists_type during the install process. I ...
Patoshi パトシ's user avatar
3 votes
1 answer
1k views

How to embed a Rules Link in a View in order to trigger a Rules link to run?

What is the general process to embed a Rules Link in a View in order to trigger a Rules link to run? I have used the Rules Link module to create a Rules Link embedded in a View (it's a View that ...
Paul B's user avatar
  • 589
3 votes
1 answer
756 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 fired....
chefnelone's user avatar
  • 6,257
3 votes
1 answer
539 views

How to display devel dpm messages on a panels generated page?

I am testing a custom module for a site using Panels Everywhere & Panels. I need to put the results of a Devel module dpm() message into a pane so that I can see it on page displays. Does anyone ...
Ashlar's user avatar
  • 5,115
2 votes
0 answers
281 views

Feeds SQL Import shows data in preview but fails to import

I have a problem on a client site with a Feeds import that shows the correct data within the import preview but does not copy the data across to the assigned field during the import. There are 18 ...
raynimmo's user avatar
2 votes
0 answers
35 views

missing format error

Hi Guys I am having a missing format: 1. alert on my web most of the time is when loging out of my web on when I access the front page, this is the log message filter Date Saturday, August 1, 2015 ...
Raidel Grimon's user avatar
2 votes
0 answers
1k views

The website encountered an unexpected error. try again later

Hi guys I get this message when trying to get acces to my web loging as admin this is the error The website encountered an unexpected error. Please try again later. is only when trying to get access ...
Raidel Grimon's user avatar
2 votes
0 answers
242 views

What is the difference between Query build time Query execute time View render time in drupal veiws

I'm using drupal views and set Live preview settings enabled. I'm curious about the difference between three factors: build time, execute time and render time. Sometime when I change a filter or sort ...
shekoufeh's user avatar
  • 589
2 votes
0 answers
330 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". ...
bko's user avatar
  • 21
2 votes
1 answer
3k views

Validating node creation / edit form

I'm using form_alter to play with the node form for a specific content type. This content type has many different fields and I'm also using Field Collection module to organize all these fields & ...
webmaniac's user avatar
  • 268
2 votes
2 answers
212 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: /admin/people/permissions#...
stephanie's user avatar
2 votes
1 answer
233 views

Tuning with New Relic

So I've finally delved into tuning up my aging Drupal 6 site using NewRelic and like most I'm amazed at what their product has to offer. Very useful for honing in on problem areas. However, being new ...
Pooch's user avatar
  • 165
2 votes
0 answers
216 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 ...
Colin's user avatar
  • 21
1 vote
1 answer
73 views

Search is very slow for certain roles

I'm a bit lost here. I have a strange problem and don't know where to begin. I use the core search function on a website I build. When I am logged in as administrator this search function is working ...
Joost's user avatar
  • 1,338
1 vote
0 answers
400 views

How to find the cause of "Uncaught PHP Exception"

When I go to any page, the following error appears in the log: [proxy_fcgi:error] [pid 20333] [client 172.18.0.6:52608] AH01071: Got error 'PHP message: Uncaught PHP Exception Symfony\\Component\\...
Søren Sjøstrøm's user avatar
1 vote
0 answers
274 views

Drupal + XDebug + VSCode = can't break on PHP notice or warning

Using Drupal (8.9), PHP (7.2.34) with xdebug, and VSCode (1.50.1) with PHP Debug (1.13.0), the debugger will no longer break on PHP notices and warnings, even if those option checkboxes are set. The ...
Dan Chadwick's user avatar
1 vote
0 answers
481 views

Render HTML in Drupal 8 error messages

I'm working with Twig templates, and often see messages like this in the browser when I make a mistake: The website encountered an unexpected error. Please try again later.</br></br><...
apostl3pol's user avatar
1 vote
2 answers
558 views

Manipulate a render array in hook_node_view

I'm wanting to modify the contents of some fields at display time so looked at hook_node_view(), however, the $build array is not what I'm expecting, if I dump it with var_dump it is thousands of ...
Alex Monaghan's user avatar
1 vote
0 answers
28 views

Left to right mark added to field name

Using Drupal's admin I added to an existing content type a new text field with the machine name field_note. When fetching the field in my code I want to check if $field_name == 'field_note' but it ...
Livshin's user avatar
  • 13
1 vote
0 answers
443 views

Debugging strange memory overflows on Pantheon

We have a Drupal Commerce site on D8.6.7 running on Pantheon Performance Small servers. We do a bit of side processing besides normal e-commerce stuff like syncing up data, collecting emails, etc. ...
cchoe1's user avatar
  • 235
1 vote
0 answers
1k views

Throwing an AccessDeniedHttpException() in an event causes a "max nesting level" error

I am debugging an event subscriber that checks if a user has access based on certain conditions. If they don't have access, then I am doing: throw new AccessDeniedHttpException(); However, this was ...
Kevin's user avatar
  • 27.8k
1 vote
0 answers
47 views

Page not found errors for images

The site becomes painfully slow at times and when I look into "Recent Log Mesaages" logs such as this is frequently found. The Location shows: http://example.com/sites/default/files/styles/featured/...
Sandesh Yadav's user avatar
1 vote
0 answers
224 views

Problem in deploying Drupal 8 application

I am trying to deploy a Drupal 8 application to another folder from development. Using PGSQL as database server. I have database named xyz. I am copying that database to another one named abc. The ...
Pupil's user avatar
  • 147
1 vote
0 answers
35 views

Reaction rule raises TypeError

I have a working Drupal 8.3.7 installation and use the rules3.0alpha module. I add a reaction rule that is applied After saving new comment. That's all. Now, when I try to save a comment, I get an ...
Philipp Zedler's user avatar
1 vote
2 answers
252 views

How to access all of the properties related to Commerce Line Item entity in a rule?

I wonder how I can access all of the line item properties in Rules? For example in a Rules event "Before saving a line item" I can show a debug message of the line item. It has different properties ...
user1271930's user avatar
1 vote
0 answers
144 views

Unable to install / enable SimpleTest

When I try to install SimpleTest via Extend > Testing > Install, I get the following error: The testing framework requires the sites/simpletest directory to exist and be writable in order to run ...
hawaiian_monkey's user avatar
1 vote
0 answers
136 views

'unexpected error' when visiting any page the first time, but not the second

Quite suddenly, my site has begun behaving erratically. No matter whether the page is an admin page, or a page using my custom theme I receive the 'unexpected error' page whenever I visit the page for ...
Amy's user avatar
  • 5,680
1 vote
1 answer
171 views

Why can't I run krumo() on a node page?

I called krumo() inside hook_node_load(). function mymodule1_node_load($nodes, $types) { krumo($nodes); } It works on my front page, but not on a node page. I get this error message: Fatal ...
okey_on's user avatar
  • 261
1 vote
0 answers
50 views

Drupal Site No Longer Rendering a Specific Theme - How to Troubleshoot?

I have a Drupal 8 instance running on a Ubuntu 16.04 virtual machine through Apache2 to test with and learn Drupal. Up until today, everything has worked correctly, but on starting my VM this morning ...
Donglecow's user avatar
  • 141
1 vote
0 answers
616 views

How do I debug hook_mail_alter()?

I need to debug $message on hook_mail_alter(&$message). In D7 it was pretty easy to dpm() on hook_mail_alter(). Now in D8 dpm() doesn't print the nicest output anymore. I'ld like to see the ...
leymannx's user avatar
  • 18.1k
1 vote
0 answers
360 views

How to expose field collection's items id or UUID to the front end?

I'm working with the Drupal 8 field collections and currently have setup a custom collection that is an editable widget on the edit pages. I'm trying to target these collection items via their unique ...
Patoshi パトシ's user avatar
1 vote
0 answers
650 views

Drupal 8.2.2 kint output in template not working

We are trying to use the kint() or drump() debugging functions inside twig templates in Drupal 8 but both does not seem to be working even though we have tried all the approces to get them working ...
crzpiot's user avatar
  • 434
1 vote
1 answer
29 views

New Account, change Duplicate E-mail error

I run a drupal / civicrm build for a non-profit. We are very careful with our members information, and want to make sure that no one trying to, would be able to figure out if someone they knew was a ...
Matt Muchowski's user avatar
1 vote
0 answers
46 views

Exported feature, panelizer fields are unknown when installing in another environment

I can't seem to find out why my panelizer default layout is not being installed correctly after being exported using features. I am exporting a content type, with some default panelizer settings. ...
gabemartinez's user avatar
1 vote
0 answers
49 views

Site crashed: Ajax error

I have been looking for a solution on the internet before asking for your help here. My drupal site was working fine since yesterday when I create a calendar event chain ( this is a custom module) ...
Tony's user avatar
  • 141
1 vote
0 answers
30 views

Commerce File - Error

I got the following Error when a licensed commerce file should be shown in the "Files" tab of the user account: Notice: Undefined offset: 0 in commerce_file_handler_field_download_limit->pre_render(...
Christian Liebich's user avatar
1 vote
1 answer
98 views

How to avoid missing status for Workflow access module permission just after node creation?

I am using Workflow 7.x-2.8 to manage peer-reviewing publication. When an authenticated user (an author) creates a post, he can choose a first workflow state transition from creation (by default) to ...
Toki's user avatar
  • 424
1 vote
1 answer
399 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 ...
Torenware Networks's user avatar
1 vote
0 answers
99 views

Using entity_metadata_wrapper() and dpm() in node template causes subsequent nodes to return empty values

I've create a view which displays all nodes with content type location. This view renders the node using it's teaser display, which I've created a custom node--location--teaser.tpl.php for. In this ...
Aaron Silber's user avatar
1 vote
0 answers
110 views

Directory permissions and appearance issues after moving site

I recently moved my drupal site and am having issues with it the most pressing issue is one of permissions for temporary directory. there is also some weird css stuff going on but ill figure them ut ...
Lonergan6275's user avatar
1 vote
0 answers
297 views

Serve 404 page on view with contextual filter?

We use facet filters to create collections of content. The facet filters create url arguments that look like this www.example.com/l/language or www.example.com/l/language/g/gender For SEO reasons we ...
Justin's user avatar
  • 21
1 vote
0 answers
46 views

CiviCRM on Drupal: Array to string conversion error in BAO setting.php in Display preferences

I'm receiving this error after a fresh install of civicrm-4.4.17 on drupal-7.38. While attempting to go through the configuration checklist I also noticed that the items were not turning green after ...
ADJenks's user avatar
  • 123
1 vote
0 answers
275 views

error "EntityMalformedException" when creating a node as guest

We have a node type with permission to create new nodes for guests. When we try to create a new node of this type as guest we get the following error: EntityMalformedException: Missing bundle ...
deelite's user avatar
  • 479
1 vote
1 answer
157 views

Invalid URL Aliases in Drupal Nested Sites/Subsites - Main 404

I'm sure my title made no sense! But I'm really struggling with something and could use some assistance. I inherited a Drupal-based website a few months ago, and it was my first exposure to Drupal. ...
Jerry's user avatar
  • 33
1 vote
1 answer
60 views

Search API module causes server error when saving index fields

I am very new to Drupal, so please let me know if I'm doing something wrong. Using the Search API module, I would like to go change some fields of my Node Index. For example, I would like to uncheck ...
Kristina's user avatar
1 vote
2 answers
102 views

Try to add in different views to a single page, keep getting "Error" message?

I have a panel where I'm pulling in 7 different views pages in different regions, and when I try and save it, I keep getting the same message-- "The website encountered an unexpected error. Please try ...
user47143's user avatar
1 vote
1 answer
81 views

Is there a way to trace PHP errors logged from Rules?

Occasionally I'm seeing an error in the error_log [10-Apr-2015 10:16:45 America] PHP Parse error: syntax error, unexpected 'Some text' (T_STRING) in /home/simulab1/public_html/profiles/...
jchwebdev's user avatar
  • 590
1 vote
0 answers
232 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 ...
Lupe Rodarte's user avatar
1 vote
0 answers
28 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 ...
Cameron Kilgore's user avatar