Use this tag for questions about module and theme debugging.
0
votes
0answers
18 views
Fatal error: Call to undefined function entity_view_mode_prepare() /sites/all/modules/field_collection/field_collection.entity.inc on line 600
I get this error as I was doing my work. How do I fix this fatal error?
Fatal error: Call to undefined function entity_view_mode_prepare() in
.sites/all/modules/field_collection/field_collection....
0
votes
1answer
17 views
Bizarre Behavior with Markdown Filter and Cache Clearing
We are trying to allow Markdown input on long text fields for certain content types. It is proving difficult. Here is what I have done:
Installed Markdown filter module.
Added a new Text Format in ...
0
votes
1answer
18 views
Classes to differentiate between different status messages?
After enabling my custom theme, I noticed that while Drupal adds special classes for different status messages being put out by the drupal_set_message() function, e.g. messages and messages--status. ...
1
vote
0answers
57 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 ...
3
votes
2answers
111 views
Views_view_result and Devel possible incompatibility
I have experienced a very strange behaviour of Drupal 7. I had Devel module activated, and a View which made the sql logs to disappear from screen. The view was used by views_get_view_result(). When I ...
0
votes
1answer
18 views
Disable a Module after Fatal Error without Server/DB access?
I'm working on a Drupal 7 site and recently triggered a fatal error via installation of incompatible modules. Is it possible to disable a module when site is giving fatal error on each page? ...
0
votes
2answers
23 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
0answers
13 views
How to avoid server error 500 due to page limit on Views display?
I have a View which renders a list of products. It has intensive hook and template managing. When I set the page limit to 100 or more (or unlimited) it shows a 500 error display, due to shortage of ...
0
votes
3answers
73 views
Error - External URLs do not have an internal route name
I can't access to my site because of this error:
UnexpectedValueException: External URLs do not have an internal route name. in Drupal\Core\Url->getRouteName() (line 554 of C:\Users\user\Documents\...
0
votes
0answers
9 views
hook_update_n with $sandbox and xdebug breakpoints
I was wondering why my hook_update_n runned by update.php are not able to fire xdebug breakpoints. And what are your workarounds.
Currently for working around this, I set an admin form where I can ...
0
votes
1answer
34 views
How do I use dpm() or kint() to debug a block plugin I created?
I created a custom module which implements a block plugin. The code was generated with Drupal Console. When I try to debug the code within the build function, I get a function not found error.
Why ...
0
votes
1answer
18 views
Error : Only variables should be passed by reference [duplicate]
I get this error Strict warning:
Only variables should be passed by reference in include() (line 20 of
...)
Can anybody see what is wrong here?
<section id="fixed-navbar">
<nav ...
0
votes
0answers
10 views
“Login to Facebook” link returns to a facebook page error in fb_autopost drupal 7
After setting up a Facebook app and make it live, and after setting up all required permissions; The Login to facebook link in the fb_autopost configuration page returns an error page displaying the ...
1
vote
0answers
28 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 ...
0
votes
0answers
25 views
Cannot delete taxonomy terms, Cannot use object as array
When trying to delete taxonomy terms using the backend I get a 500 error.
I am able to update the terms, but not delete any. I was able to recreate this behaviour locally which was fixed with a core ...
3
votes
3answers
53 views
How to add the twig debug extension
in /var/aegir/platforms/drupal8-dev/sites/my_site_uri/settings.php
# Additional site configuration settings.
if (is_readable('/var/aegir/platforms/drupal8-dev/sites/my_site_uri/local.settings.php'...
0
votes
0answers
6 views
Drupal Rules Module Error
I am suddenly receiving an error on my Drupal 7.43 site. I was doing some styles work right before it appeared. The only thing that may have caused it is the change in permissions within the /sites/...
0
votes
1answer
11 views
Search API isn't returning results with words in the title
I just installed search api and setup a server and index. Then I setup a Views page and exposed the search filter option. Searching all fields work, but for some reason its not searching the title. ...
0
votes
0answers
16 views
How to get rid of “Fatal error: Call to undefined function” in entity module
I received fatal error. 2 weeks ago I installed address field and address field phone module, everything was good, today I opened my local site but I received this error.
I'm using drupal 7,
What ...
0
votes
0answers
29 views
Cloudflare breaks admin
I have a paid subscription with Cloudflare.
I installed the Cloudflare module, and applied "cache all" with the recommended rules so the admin would not be cached.
However, when logged in, and ...
0
votes
0answers
10 views
An AJAX HTTP error occurred. Impossible to update modules
Running Drupal 7.14, everytime I try to update a module this error shows up:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows.....
It happens with every module I try to ...
0
votes
1answer
14 views
Server 500 error in a View which is working perfectly outside of the admin area
I have a View which is affected by several hooks ( views_pre_viewand views_query_alter, mainly). It works perfectly in the final user area, but when I am logged and go to the Views GUI, the browser ...
0
votes
2answers
24 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
0answers
19 views
Node form submission unpublish the node
I have some strange bug after submission of node form of some node of some content type node become unpublished. Other nodes of other content types is ok - no bug.
Checking published checkbox and ...
0
votes
1answer
31 views
Debugging a custom module with XDebug and PHPUnit [closed]
How can I debug a custom module in Drupal 7 using Xdebug and PHPUnit? That is, I would like to debug and perhaps write some unit tests to eliminate some basic potential problems.
This is a code I ...
2
votes
1answer
47 views
How can I log variables to a txt file?
In Drupal 7 I use devel's drupal_debug() or its alias dd() to log a variable to a drupal_debug.txt in the site's temp directory.
In the Drupal 8 version of devel this function has disappeared. It ...
0
votes
1answer
37 views
Internal Server Error and Machine Readable Names
I have installed a new local site using Drupal 8.1.10 which takes a lot of time whenever I give any command (lets say create a text field) and then sometimes it gives a 'Internal Server Error' after ...
0
votes
0answers
17 views
0
votes
1answer
67 views
Debugging variables in Drupal 8 / Twig
I enabled twig debug and tried to debug some custom fields. However if i try this with debug() or kint() my application always crashes. My php memory size is currently at 512MB, i assume that should ...
0
votes
0answers
28 views
PHP Fatal error: Call to undefined function lock_acquire()
Our site which is in production is frequently going offline and takes long time to load page. When I looked at Apache error log I found the following errors. Please help to resolve this issue.
PHP ...
0
votes
0answers
19 views
Cannot edit/add node content
I have a Drupal 7 site, but unexpectedly I cannot modify or add a node.
If I go to /admin/content, and I click Modify for any node, it keeps reloading the same page, in this case the /admin/content ...
1
vote
1answer
14 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 ...
1
vote
2answers
54 views
How to use sdpm() or dpm()?
Almost everywhere I search I find the following example for using dpm() or sdpm() with the Devel and the Search Krumo modules:
Paste the following code in your theme's template.php file, save, and ...
1
vote
0answers
16 views
Changed DNS and some sections shows Fatal error: Call to undefined function node_load() [closed]
I was working in the site http://www.bicevolution.com.ar/ (drupal 7) , Asked to the owner to redirect de DNS for www that were wrong. When they changed that, lot of sections of the site broke and ...
1
vote
1answer
44 views
Minimizing cache clearing during development
I'm suffering from very long (several second) load times when developing locally with Drupal 8 when developing/debugging twig templates or in general having ALL caching disabled. Rebuilding cache ...
0
votes
1answer
47 views
apache solr error: HTTP 500; /usr/local/solr/example/solr/data/index/segments_15qc (Permission denied)
I just noticed that my website apache solr doesn't work any more, but I didn't touch my website for a while. When I tried to delete my solr index, I got this error message:
HTTP 500; /usr/local/...
1
vote
1answer
55 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
33 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
37 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
2answers
42 views
'Back to top' module with Bootstrap 3
I tried to use both 'Back to top' and 'Scroll to top' modules, and although I can choose settings for those modules, button does not appear.
How can I debug this?
I am using drupal 7
0
votes
1answer
158 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
22 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 ...
2
votes
1answer
89 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
37 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
265 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
50 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
38 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
115 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
59 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 ...