Use this tag for questions about module and theme debugging.

learn more… | top users | synonyms (1)

1
vote
2answers
61 views

Can you debug a site with Drush?

I have 3 Drupal 8 sites. 2 have premium themes and one is Bartik themed. When I built the 2 the sites with premium themes in Ubuntu I could log in fine but when I log in to them when online (CentOS ...
0
votes
0answers
28 views

Debugging JavaScript tests

Recently started working on some JavaScript tests by extending JavascriptTestBase in drupal 8.2 and the biggest problem currently is debugging. Phantomjs is installed and i have no problem running ...
0
votes
0answers
20 views

Why I get 'Error 500' at the first step of installation?

I'm trying to install a new site, it works fine on my local but i have just recently uploaded everything and i can't seem to get through the first part of the installation. The first button 'save ...
0
votes
0answers
22 views

sql error shows on all admin pages

The following error appears on all of my admin pages. It doesn't seem to affect any admin changes, but the problem is it also appears inside the text editor. So, whenever anyone makes a change to a ...
2
votes
1answer
23 views

Track What Causes Ajax Http Error 200 in Drupal Form API

I always encountered Ajax Http Error 200 with out knowing the reason that causes it. This error is so mind boggling, since I do not know where it came from. For example, in my recent code, it ...
0
votes
0answers
35 views

The specified URL cannot be found

My site was working absolutely fine but suddenly I got an error: The specified URL cannot be found. Whenever I click on submit button of any form on site (custom/admin, eg: while saving node, while ...
0
votes
1answer
62 views

Update from 8.1.3 to 8.1.7 gives me a fatal error on most pages

After attempting to update to version 8.1.5 I received the "The website encountered an unexpected error. Please try again later." error on many pages. I also get the following error in Recent Log ...
1
vote
1answer
13 views

all my edit button cannot work and got “Invalid form POST data” AJAX error

I don't know why all my edit button doesn't work since yesterday. In the log report, I got an AJAX HTTP error with 200 HTTP Code and "Invalid form POST data." message. And when I clicked any "edit" ...
0
votes
0answers
21 views

Getting Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute()

I'm getting an error message when trying to use a function from a custom module in a rules condition. (Drupal 7.41, Rules 7.x-2.9). The error is: Recoverable fatal error: Object of class stdClass ...
0
votes
1answer
25 views

ERROR: MAIL not accepted from server: 530 Authentication required , SMTP Authentication

I used SMTP Authentication Support Module to send the email. I also added my authentication. But still got this error: SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "220 email-...
0
votes
1answer
23 views

PluginNotFoundException: The “user” entity type does not exist

I am trying to return the common parent of 2 entities from their revision graph. For ex: 1->2->3->4->5 is a linear graph with 1 as original node and rest all are revisions. So, I wrote a function to ...
1
vote
2answers
82 views

Constantly getting “The website encountered an unexpected error. Please try again later.”

I wondered if I can get some advice regarding working with Drupal 8. I've tried installation after installation and sooner rather than later I'm effectively bricking the installs by just installing ...
3
votes
1answer
123 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 ...
1
vote
0answers
11 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
59 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
12 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
44 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
46 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
48 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
39 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
52 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
47 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
31 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
23 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
50 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
20 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
16 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
63 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
35 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
41 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
40 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
39 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
44 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
87 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
91 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
16 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
38 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
9 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
65 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
35 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
41 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
55 views

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

Where to put dpm or dsm (Devel) to see comment elements?
0
votes
1answer
30 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
75 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 ...
2
votes
3answers
70 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
108 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() ...