Questions tagged [debugging]

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

119 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
368 views

Is it possible to trace a Drupal PHP session variable and if so, how?

I'm having an issue with Drupal not caching pages and I think it's being caused by an active PHP session variable being set for anonymous users. I want to know if it's possible to quickly and/or ...
1
vote
0answers
852 views

Add image when creating content with Devel Content Generate?

I used to use Devel to generate nodes content for developing purposes. It works fine but it doesn't add images to the created nodes even though the content type has an image field. What am I missing ...
1
vote
2answers
140 views

Site dead after Devel Module and Library sethtmldom

After installing Devel Module (and Library simplehtmldom), the Drupal7 site is completely dead. Have already set the module to 0 on System table in database, and the module files removed by FTP. But ...
1
vote
1answer
208 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 ...
0
votes
0answers
52 views

Is there a dd() like variable printer that can be used inside a preprocess?

Many times when I start a hook_preprocess_hook, I start by printing the $vars object. I can do this by dpm()'ing, dsm()'ing, kint()'ing etc. The problem is that all of these functions print $vars in ...
0
votes
0answers
154 views

Why is my custom twig template not being selected by Drupal?

So I have a custom module that has boilerplate template code inside it. No problem there. So I following the Drupal Docs which says to create a service.yml file and turn debug on and caches off. Done. ...
0
votes
0answers
125 views

AttributeArray fails to implode #allowed_tags

I started working on existing project and right from beginning, it displayed tons of alerts in specific pages. This is what Drupal outputs: Notice: Array to string conversion in Drupal\Core\Template\...
0
votes
0answers
408 views

Unable to determine class for field type during upgrade

I'm getting the following error when I am updating my site's core and contrib modules. I'm at a loss as to how I would go about finding the issue. I've gone to views.views.inc line 181 and looked ...
0
votes
0answers
166 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. ...
0
votes
0answers
638 views

How to turn off Twig debugging for a views feed?

I am trying to build a calendar rss feed from views. The rss.xml is being generated, but it doesn't appear to be accepted as a calendar rss on local systems. When I look at the source, I see it's ...
0
votes
0answers
36 views

How to trace the raw data of each element in a web page we want to check?

I'm a beginner of Drupal8, and I've encountered lots of difficulties till now. One of the biggest one is that when I enable the Theme Debug, I always confused about where the selected part comes from. ...
0
votes
0answers
372 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 ...
0
votes
1answer
46 views

Language switcher block hides for authenticated user

I have a language switcher added to my site. It works fine as long as I'm an unauthenticated user. Logging into site replaces it with: <span data-big-pipe-placeholder-id="callback=Drupal%5Cblock%...
0
votes
0answers
86 views

Error message not converting html tags

In entity browser I tried uploading a file which is not supported. So I got the valid error message. But it does not convert the html tags which are being generated from token. Following is the code ...
0
votes
0answers
94 views

Can't access the Status Report page

I've updated my LOCAL site with composer, updated the database but can't access the Status Report page (site encountered an unexpected error). I looked at the recent log messages and saw this error: ...
0
votes
2answers
88 views

Receiving Error message on every attempt to add or remove content. Is this normal?

New to drupal & collaborating on a project. Error message reads "Error ; The website encountered an unexpected error. Please try again later." I've been getting that error message for 4 days in a ...
0
votes
1answer
1k views

showing errors even though display_errors is off

I want to hide all error messages to the users. I did all the three steps below Set display_errors = off and error_reporting = 32767 in php.ini Made sure this config $config['system.logging']['...
0
votes
1answer
34 views

Fatal error: Cannot redeclare casa_views_post_execute

I understand this to be two declarations of the same function, which is not allowed. But how to fix this? Everything was fine until I started to enable the MailChimp module, then the backend has this ...
0
votes
1answer
65 views

Can't load font woff

I have relatively simple issue but I can't fix it myself. My log is full warning with same message: page not found http://mywebsite.com/sites/all/themes/bigwig/font/entypo-icon-font.woff I have ...
0
votes
1answer
82 views

How to debug invalid plugins derived by the GraphQL module?

I'm currently using the GraphQL module in combination with the Brightcove module. When I visit /graphql/explorer, all I'm getting is a totally white screen. When I visit /graphql/voyager, I end up ...
0
votes
1answer
187 views

How to utilise watchdog or how to debug webform error

I have a webform that integrates into CiviCRM such that the webform is used to save data into the Civi system. The following error is generated when hitting submit (although data is saved in the ...
0
votes
1answer
32 views

Help solve this error: Class CommerceLicenseEntityController does not exist

When I install the Commerce Licence module, in D7, I get this error. I think it might have to do with my Drupal installation, I'm not sure. What steps can I take to find out what causes this? The ...
0
votes
1answer
892 views

How to use dd(debug_backtrace()); for an error debugging?

I have this exact error on my site. I am trying to troubleshoot the error using dd(debug_backtrace()); through the Devel module as is described on the link above. Being the noob on developing I can't ...
0
votes
1answer
169 views

error: Fatal error: Class 'Drupal\syslog\Logger\SysLog' not found in /lib/Drupal/Component/DependencyInjection/Container.php on line 272

I just activated the module syslog in an almost fresh D8 install and now it has crashed. =( How do I deactivate a core module like this manually or fix the issue?
0
votes
1answer
19 views

Instructive message when a module is disabled accidentally

Site breaks without a warning when code of a non-enabled module is called. (In my project I disabled accidentally a module, while the code is executed by another module.) The correct way is to add ...
0
votes
1answer
28 views

Finding and display custom user variables

I have create a series of user fields. Some of these fields reference taxonomy terms, require a mobile number or are just basic text fields. I used the below to print one of the fields (the number ...
0
votes
1answer
120 views

Accidentally changed the path of an RSS feed page in Views to refer to a menu link item and cannot access Views menu anymore

I cannot access views from the Structure Menu in Drupal 8 anymore. I accidentally changed the path of an RSS feed page in Views to refer to a menu link item and cannot access the Views menu anymore. ...
0
votes
0answers
18 views

What happened to the Devel variable syntax info info by double clicking on items?

Not long ago I could doubleclick on items like arrays, objects etc in Devel to see the syntax, if I wanted to fetch one value or another for example. That does not work anymore. I have tried using ...
0
votes
0answers
1k views

Getting error after fresh install “Redirects to external URLs are not allowed by default”

Playing around with a new install on localhost. Error Happens when I click on a submit button, for example installing new modules. Redirects to external URLs are not allowed by default, use \...
0
votes
1answer
32 views

Log Message - Page Not Found: includes/database/sqlite/log/login

When I check "Recent Log Messages", I keep finding a large number of "Page Not Found" errors with the message "includes/database/sqlite/log/login". I've checked the site and the directory does not ...
0
votes
0answers
216 views

Debugging a WSOD in Drupal 7 even with error_reporting on in the index.php file

I'm coming into a totally abused and hacked up drupal 7 project. The site is currently working on the production server, but I'm trying to migrate it to a new server. I've replicated as much as I can ...
0
votes
2answers
171 views

How to see Database logs in Devel module

I have installed Devel module in Drupal 7. I am able to see logs of error in each page I visit (when I am logged as admin), but, however, have not been able to see the database logs except in the ...
0
votes
2answers
44 views

lost admin toolbar and stock file

I am a total Drupal newbie so need advice. I installed a new module commerce_shipping_postal_code_weight-7.x-1.x-dev, and tried to activate it. I was then advised a couple of other modules needed ...
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
0answers
129 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) {...
0
votes
1answer
671 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
499 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 ...
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
121 views

dpm in submit handler not working?

I have a very interesting problem. I have 2 dev machines (both mac, running XAMPP). In my project I have a submit handler for a custom entity form. When I try to dpm() (or kpr, or dsm, ...) the ...
0
votes
2answers
291 views

hook_node_access($node, $op, $account) not working

I'm using drupal 7.41 module: Devel I created module_template module. function module_template_node_access($node, $op, $account) { kpr($op); kpr($account); } But when I view or edit node not ...
0
votes
1answer
24 views

Devel Module bogus output

I need help with the devel module. I'm outputting my objects/variables with dpm($variables); into my template.php and I get the same output on every page. It's pulling one of my views and showing it ...
0
votes
1answer
33 views

Can't uninstall “Translation Language capabilities (tmgmt_language_combination)” dissabled ALL translation modules that might be dependant

I've tried drush, I disabled i18, ALL fields, multilingual, entity translation, l10n, everything about translation is disabled. How can I completely get rid of this module, it's caused nothing but ...
0
votes
0answers
22 views

Is it possible to use Devel to create a “mad libs” style profile2 registration page?

I've got the template file working, however <?php dpm($page); ?> and <?php dpm($content); ?> aren't getting me what I need to isolate the forms. I saw this post https://stackoverflow.com/...
0
votes
0answers
57 views

How can I track a “DatabaseSchemaObjectExistsException” error message?

How can I track this error message which is shown when I run drush cron in terminal? example@d565:~/www$ drush/drush cron WD cron: DatabaseSchemaObjectExistsException: Table ...
0
votes
0answers
236 views

Undefined variable errors that disappear, should I worry about them?

I get these when I first login to my admin account: Notice: Undefined variable: total in include() (line 19 of C:\WAMP\apache2\htdocs\apricity\sites\all\themes\apricity\templates\page.tpl.php). ...
0
votes
0answers
43 views

Get error after update modules to view Map

After I updated modules, I get the below error, but everything seems to be working fine: Out of a total of 40 result rows in view Map List Business (Block Maps ), 1 rows did not have their ...
0
votes
1answer
274 views

XHProf not displaying runs but empty table

I'm trying to profile a drupal website using xhprof. I manage to install it and configure drupal to use it (using the devel module) but I have a problem to visualize the result. First, for some ...
0
votes
1answer
69 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
0answers
34 views

Devel themer doesn't work on D6

A JS error for devel themer actually : Uncaught TypeError: Cannot read property 'type' of undefined devel_themer.js?r:193 thmrRebuildPopup devel_themer.js?r:193 themerDoIt devel_themer.js?r:87 ...