Questions related drupal modules & themes debugging

learn more… | top users | synonyms (1)

0
votes
1answer
15 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
7 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 ...
0
votes
0answers
17 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
15 views

Drupal 7: 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
13 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 ...
0
votes
1answer
41 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
32 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
30 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
24 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
43 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
84 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 ...
0
votes
0answers
14 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 ...
1
vote
2answers
18 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 ...
0
votes
1answer
18 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
24 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
39 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
45 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
95 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
0answers
9 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
21 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
39 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
34 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 ...
2
votes
2answers
36 views

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

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
46 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
132 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
29 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 ...
0
votes
1answer
19 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
10 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?
0
votes
2answers
44 views

Why does my code for checking field permissions allow users to register with the same email address?

Based on the Examples module, I tried to set up permissions on some user account fields so that only admins can read them. However, the code below somehow allows users to register with the same email ...
0
votes
2answers
55 views

How Can I display values of variables in a “PHP contextual filter code” to debug my code? [duplicate]

I have to use PHP code in contextual filter code in a "Arguments/Contextual Filters" of a view: global $user; $uid=$user->uid; $pid=db_query("select pid from profile where ...
0
votes
1answer
27 views

How to debug a server reset or WSOD?

We have recently observed that we can put Drupal in an inconsistent state where it responds with a server reset or WSOD, where no data is sent. This by simply having some faulty configuration (See CCK ...
0
votes
1answer
28 views

CCK field migration reproducibly results in server error on node display

I am trying to migrate my CCK types to Fields using CCK module in D7, using content_migrate, following the documentation. After migrating all fields of a certain content types, I got a server reset ...
1
vote
1answer
16 views

Base theme no longer recognized

I recently inherited a Drupal 7 (7.39) site using an old version of Omega 4 (beta7) and a custom subtheme. All was well until this morning, when cron got stuck. It unstuck itself before I could start ...
1
vote
2answers
26 views

In Drupal 7 how do you output array objects to be view able in watchdog error reports?

For some reason I couldn't use devel to debug output object arrays. Is there a way to output the array data to watchdog error reporting? This would also solve the issue of having to install or enable ...
-1
votes
2answers
40 views

Fatal error: Cannot redeclare

my website show a fatal error about 'cannot redeclare' [1]. In first moment I though that It was a concrete problem and I deleted some part of code though it was repeated. But the problem is yet, but ...
0
votes
0answers
15 views

How to access low level fields in the best way?

I have the module Google Store Locator. In the rendered data of the stores, I wanted to drop the Country name. I had to go the the content type - Store Locator -, and check a few options (see image ...
0
votes
1answer
365 views

dump(), kint() & print_r() are not working in .theme file

I've used drupal 8 with devel module. I want to change some values dynamically in views fields. So i tried to use theme_preprocess_views_view_fields(). When i tried to print variables using print_r(), ...
-2
votes
2answers
80 views

How to get PHP path of stdClass object from dump of dpm()? [closed]

I need to print the below value [seventhly] as per the attachment, so please advice. If you need any detail please ask me.
1
vote
1answer
17 views

Suppressing another module's warnings [closed]

Is it possible to suppress another module's warnings? My module calls another causing a warning to appear.
1
vote
0answers
20 views

Doing a debug_backtrace() - White Screen when putting it in drupal_set_message() [duplicate]

I currently have the following code in my drupal_set_message() 1778 function drupal_set_message($message = NULL, $type = 'status', $repeat = TRUE) { 1779 if ($message) { 1780 if ($type == ...
0
votes
3answers
65 views

How to find the culprit module that's causing all my views not to display anymore?

The Views on my site were working perfectly until I updated a bunch of modules and now I get these errors and the views don't display: Warning: include(/home/x/public_html/.tpl.php): failed to ...
0
votes
1answer
53 views

Debugging your code under SimpleTest when the behavior is different

I'm dealing with a weird problem where a few of my tests are dying from exceptions when run inside of SimpleTest, but I'm unable to reproduce the problem outside of the SimpleTest environment. In ...
1
vote
1answer
65 views

How to debug Batch API more efficiently?

I've some issues with Feeds importing (I don't want to focus on particular case) and I'd like to find the way of able to debug Batch API processing more efficiently. Given the fact of complexity of ...
0
votes
1answer
80 views

How to trace an Error: PDOException: SQLSTATE[23000]:

I'm trying to trace this error which is shown when I save a new basic page node. It seems to me that I am trying to save a duplicated title value in field_data_title_field, but it doesn't make any ...
2
votes
2answers
56 views

How do you find out which module is causing a redirect?

I have a Drupal 7 site and have a bunch of custom modules installed. Currently when I hit a specific node/9283 it gets redirected to another page. I'm not sure which module is causing this redirect. I ...
3
votes
1answer
91 views

How to get drush to work with xdebug — may have recently broken

I've been using drush with xdebug for years. It looks like it broke in the last two weeks, possibly due to modifications made to the core "drush" script (Split 'drush' script into finder, wrapper and ...
0
votes
0answers
9 views

How do you find out what module generates some output when running cron.php?

So... I have one website which somehow now generates two empty lines (something like echo "\n\n";) when cron.php is run: wget http://www.example.com/cron.php Output is a cron.php file with "\n\n" ...
1
vote
2answers
78 views

how to print db_select result using watchdog?

I'm trying to debug below code: $perishables = db_select('userpoints_txn', 'up_txn') ->fields('up_txn', array('txn_id', 'uid', 'points', 'remainder', 'time_stamp', 'tid', 'operation', ...
0
votes
1answer
7 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 ...