Questions tagged [debugging]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
498 views

Why I'm not able to debug twig templates? sites/default/files/php directory is empty

As in question. I'm following this tutorial: https://dev.acquia.com/blog/debugging-drupal-8/debugging-twig-templates-in-drupal-8-with-phpstorm-and-xdebug/25/08/2016/16586 but directory sites/...
0
votes
1answer
23 views

Admin user can't administer the site

When I sign with admin user (or any other user), I can edit the contents, I can edit user, I can´t create user, I can`t Edit nodes, I can´t install upgrades, I can´t install modules, I can´t save ...
0
votes
1answer
44 views

How does Drush figure out modules that have updates?

How does Drush get information about installed and disabled modules and updates for them? I'm facing issues since drush is trying to update modules that AREN'T in the modules directory nor in the ...
0
votes
1answer
719 views

Access denied PDO Exception - other users are getting it but not me

I've set up a new Drupal 7 site (which is still in a vanilla post-install state with no custom code, no themes, no content). This particular site runs on a remote DB, with users (my team colleagues) ...
0
votes
1answer
167 views

Saving 1 vocabulary deletes all terms of all vocabualries in the site | Data mining

Since I migrated D7 to D8 I suffer from the following problem and need help regarding mining the data that could be useful to make a fine report to the Drupal community. The story: When you visit ...
1
vote
1answer
153 views

How to resolve the error about 'A partially-completed form was found'?

Yesterday I have updated Webform module from 7.x-4.0-beta3 to 7.x-4.13. After doing so, I am getting this notification message, throughout the site: A partially-completed form was found. Please ...
3
votes
1answer
630 views

How can I fix, or troubleshoot, Fatal Error Class not found with XHProf Module [closed]

I'm seeing the following error when I enable xhprof in Drupal 8 either via Drush or via Composer. Class 'Drupal\xhprof\RequestMatcher\XHProfRequestMatcher' not found in /var/www/mysite/docroot/...
0
votes
1answer
114 views

I can't import images

I'm using the Feeds and Feeds XML XPath Parser modules on Drupal 7. While there is no problem importing all other fields (Title, body, etc.), it does not populate the image field in my nodes. Feeds ...
1
vote
2answers
2k views

Why some twig templates have no file name suggestions

I have enabled twig debug. The following source snippet shows that there are some templates has no any suggestions such as views-view.html.twig: <!-- THEME DEBUG --> <!-- THEME HOOK: 'block' ...
3
votes
1answer
786 views

Turning on verbose logging

Is the "Verbose logging" in Drupal actually the PHP errors that can be activated in various ways (.htaccess, php.ini, settings.php) to be seen on screen? Is it drush ws --full ? From the material I'...
0
votes
0answers
128 views

How can I debug a class code?

I would like to print out the result of this method and check out what the input is. public function handleAutocomplete(Request $request, $target_type, $selection_handler, $selection_settings_key) {...
1
vote
2answers
477 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 ...
1
vote
1answer
286 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 ...
1
vote
0answers
9k views

The specified URL cannot be found [closed]

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, ...
0
votes
1answer
176 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
372 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
1answer
1k 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
1k 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
2k 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 ...
10
votes
1answer
9k 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
45 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
920 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
162 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
1answer
653 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 ...
5
votes
1answer
650 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 ...
-1
votes
1answer
511 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. Drupal\...
1
vote
0answers
21 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 ...
6
votes
1answer
3k 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".
1
vote
1answer
551 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 (...
7
votes
8answers
10k 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
44 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
48 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
37 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
23 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
665 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 ...
1
vote
1answer
320 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 ...
3
votes
7answers
5k 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
310 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
208 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
497 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
2k 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 there ...
2
votes
1answer
155 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
25 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(...
1
vote
2answers
33 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 ...
2
votes
0answers
250 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
18 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
662 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
86 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 ...
1
vote
1answer
601 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
369 views

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

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

1 2 3
4
5
11