Questions related drupal modules & themes debugging

learn more… | top users | synonyms (1)

3
votes
1answer
77 views

dump() not working in Drupal 8 (blank page, debbugging is enabled)

I want to use dump() in my .twig template (inside custom theme). The problem is, when I place {{ dump() }} the page is just blank. I have had: Set twig.confing debug: true in services.yml. Cleared ...
0
votes
0answers
7 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. ...
1
vote
1answer
38 views

Using kint in views-view-unformatted

What is corect way to use kint in views-view-unformatted.html.twig I do: {{ kint(rows) }} but I get this error. Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate ...
0
votes
1answer
10 views

Server Error 500 - Edit Tab of Managing Custom Fields of Custom Content Types

Alright, I've got a very irritating error with my site. Whenever I try and Edit a file or image field I get what appears to be a half-loaded page (see image below) I have check an error log and have ...
1
vote
0answers
29 views

Issues With Devel [closed]

After installing Devel, along with its components, I'm now getting a warning. I'm new to Drupal, and this is really throwing me off. The warning goes after uninstalling Devel, but appears right away ...
1
vote
1answer
40 views

How to get path of an element of a kint printed array?

In D7, when you used DPM to print out an array / object, you could double click each line to get the "path" of the element (like: ['#target']['tid']). In D8 am totally missing this feature. I also ...
0
votes
0answers
29 views

How can I debug Simpletests for a custom module?

I am struggling to debug PHPUnit Tests (with xdebug) in a custom D8 Module from PHPStorm or via the command line. Is it possible to do this? I'm running an Acquia Bolt generated site on a Drupal-VM ...
-3
votes
1answer
33 views

Site got an error after moving from local to a server

I finally wanted to move my site from localhost. After importing db and connecting it to the Drupal I got these errors: The website encountered an unexpected error. Please try again later. ...
0
votes
0answers
40 views

Fatal error: Cannot redeclare class Doctrine\Common\Annotations\Annotation\Target in n< on line 31

My Drupal 8 site is repeatedly showing the following error, post 8.1.2 installation: Cannot redeclare class Doctrine\Common\Annotations\Annotation\Target in n< on line 31 Reverting to the ...
1
vote
0answers
13 views

Flushing all caches throws me error - PDOException: SQLSTATE[HY000]: General error: 1030 Got error -1 [duplicate]

i got problem clearing my caches, it throws me an error - PDOException: SQLSTATE[HY000]: General error: 1030 Got error -1 from storage engine: TRUNCATE {cache_field} ; Array ( ) in cache. I use xampp ...
3
votes
1answer
29 views

Debug “Access Denied”

Is there a way for debugging "Access Denied" errors in Drupal 8? I'm having some routing/permission issues, and I would like to be able to debug why i'm getting "Access Denied".
0
votes
1answer
22 views

No more error messages shown, once i uploaded a file of invalid size?

The scenario is as follow: when i uploaded a file with invalid extension a proper error shown, everything is fine. nothing bad with invalid extensions. where as: when i uploaded a file of larger size (...
0
votes
0answers
18 views

Ajax 403 Error Access Forbidden when editing views or creating blocks

I'm getting 403 Errors, Access Forbidden on a Drupal 7 site when trying to edit views or add blocks. The error doesn't always occur, but once it start it doesn't go away either. The hosting company ...
1
vote
3answers
39 views

How do I print the SQL query of a view in front end?

I have installed latest Drupal 8.1.1 also Devel module installed there is no any option for Display query log on devel setting page while it's present on D7 Devel module. I have created a view with ...
1
vote
0answers
19 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) ...
1
vote
1answer
21 views

Css redirect to other css file after logging out. Bug?

I have styled the class .tab-content and it works fine whenever i logged in, but i logged out then the css file is changed to a different file as you can see on the screenshoots below. I have ran ...
0
votes
1answer
15 views

Which hook is invoked when pressing the remove button with widget image?

In a content type named "R" there is a image field say "I". When a node with R->I is filled with a image file then standard you can remove this by pressing the remove button. The standard images ...
1
vote
0answers
17 views

Where is basic documentation for the devel module? [closed]

Can someone point me to the basic documentation about how to use the devel module to add and delete nodes, users, etc.? I did not find any links on the project page.
0
votes
1answer
55 views

How do you use drupal's devel krumo ddebug_backtrace()?

I've been trying to debug a weird bug on Drupal 7 for awhile. It happens randomly on my site as it's hard to reproduce. I'm able to finally get ddebug_backtrace() to run when the error happens. The ...
0
votes
1answer
33 views

Weird gibberish characters appearing on bottom of Drupal 7 pages

What are some reasons to why there would be weird gibberish characters appearing on the bottom of a Drupal 7 site? I work in a linux environment, but sometimes I copy the files over from windows. I'm ...
0
votes
2answers
36 views

Twig debug statements not appearing

Still new to Drupal, but I've read over the docs countless times and can't figure this out. I'm not seeing Twig's debug comments. I am using a sub-theme of 'Bootstrap 3'. Running on local environment ...
0
votes
1answer
36 views

Painfully slow, Devel Query logs show culprit

I have been having a few problems with one of my clients site. Its a big site, theres a few thousand nodes, 10k users, and it holds large images galleries with 100+ images that are 500kb each. At its ...
2
votes
2answers
37 views

White screen of death in hook form alter

I have enabled simplenews module in drupal 8 and I am trying to reduce the width of input field from 60 to 30. I am trying to implement form alter hook and have devel module installed. I used dsm($...
0
votes
1answer
32 views

Suddenly unable to add a field to a new content type

When editing a content type I was going to add a simple boolean field to an existing content type. When attempting to add the new field Drupal threw an error. After a few more attempts to add a field ...
1
vote
1answer
65 views

Drupal 7 stopped working 500 internal Server error

For some reasons, my site stopped responding today, Error The www.mysite.com page isn’t working www.mysite.com is currently unable to handle this request. HTTP ERROR 500 I understand ...
3
votes
1answer
87 views

Where are functions being called from when errors are vague?

I have the following errors which show up randomly when browsing the site. It's hard to reproduce, but also hard to debug. I was able to get it in the error state and have it stay during a reload in ...
1
vote
0answers
15 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->...
1
vote
2answers
20 views

How to output $variables without loading everything?

I'm trying to debug a drupal 7 site and print_r() the $variables variable, but its HUGE and crashes certain pages when there is alot of data in it. Is there a way to only output the first level of the ...
1
vote
0answers
34 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 ...
0
votes
1answer
8 views

How do I view the string pulled from feeds image importer?

I am importing images from a feed using xPath parser. I think that I have the correct attribute value, media:content@url, but I am getting a Unable to handle the provided embed string or URL. error. ...
0
votes
1answer
50 views

Devel dpq() not working?

I am trying to print the sql generated from the view but its not working. Below is the error message I am getting:- Fatal error: Call to a member function arguments() on a non-object in /var/www/...
0
votes
1answer
30 views

8 - Node::load is generating an object with circular reference which is crashing kint() and var_export()

I have a content type with a Taxonomy term which has fields. When I try and load a node (or possibly nodes) of this type I get unexpected results. While debugging with kint() and var_export() I get ...
0
votes
1answer
33 views

How to set kint() to be closed by default?

I find that when expanding Kint widgets, if the object is sufficiently large, the loading time can be quite slow. It appears, when you expand the root level, it also expands child objects. I would ...
-1
votes
3answers
52 views

Where to put dpm (Devel) to see comment elements?

Where to put dpm or dsm (Devel) to see comment elements?
0
votes
1answer
27 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
54 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
54 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
100 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
1answer
14 views

Can we configure Devel module to pick up images for the image field of a content type only from a specific directory containing images?

A Yes or No question. Using Drupal 7.43. Devel module generates polycolor image content of a content-type which has an image field. But I need only a few specific images on my contents of that content ...
0
votes
0answers
12 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
30 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
49 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
22 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
35 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 ...
1
vote
2answers
41 views

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

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 ...
0
votes
3answers
57 views

Solve “Cron run failed” without Watchdog

Some years ago i wanted to turn off watchdog because it's memory and db consumption, but today i need info about why my cron isn't running because need to use Search module from now? Trying to run ...
7
votes
2answers
137 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. ...
1
vote
1answer
33 views

Fixing bad node that makes search not index, but completes cron

Upon updating to the latest version of Drupal 7, the following errors presented themselves in the site: Warning: Creating default object from empty value in node_build_content() (line 1398 of /var/...
0
votes
1answer
26 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
1answer
11 views

How to debug closed connection error

I run a panopoly project currently with many many addidtional modules. How to debug a closed-connection-error while uploading an image?