Questions tagged [debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

Civimail gives a blank page

Upgrading to Civi 5.11.0 in a Joomla 3.9.4 site (with templates & cache flushed) has left Civimail (via New Mail or Reuse) producing only blank pages (with menus and Civi's footer). There is no ...
1
vote
1answer
21 views

How to fix it? By pressing “Print Summary”, there are 2 extra blank pages printed

By pressing "Print Summary", there are 2 extra blank pages printed. One of them is before the content and the other is after. How can I make them disappear? I'm using CiviCRM version 5.10.4. Thanks.
1
vote
1answer
28 views

How to fix it? By pressing “Print Summary”, there are extra 2 blank pages printed

By pressing "Print Summary", there are extra 2 blank pages printed. One of them is before the content and the other is after. How can I make them disappear? I'm using CiviCRM version 5.10.4. Thanks.
1
vote
1answer
52 views

Error on contribution details display, recently updated system

Current CiviCRM is 5.6.1 running on Drupal 7.60. This system was very recently updated from 4.4.4 running on Drupal 7.36 or something. The updates were done cyclically, one right after the other, to ...
3
votes
0answers
31 views

Debugging CiviRules Error

I am getting the error triggered by CiviRule and the error can be seen from the CiviRule Logger below. This rule is triggered when a new contact is created. This rule works if I create the contact ...
2
votes
2answers
49 views

What could trigger a transaction rollback on contact save?

I have a few contacts in CiviCRM 4.7.27 for which changes in the "edit contact" form are not saving. The update queries are being sent to MySQL correctly, but they're in a transaction which is being ...
0
votes
1answer
50 views

Reports will no longer generate pdfs:Shows HTTP 500 error

Recently we have been getting an error when attempting to generate pdfs. The only change of note has been that our server just upgraded to FreeBSD 10. When the process is run I get a HTTP 500 error. I ...
1
vote
1answer
50 views

Can't disable debug/backtrace on WordPress

I was encountering an error sending email so I turned on the backtrace/enabled debugging. No I can't get back to the menu to turn it off. I just have a page of error messages. Help! Anyone got any ...
2
votes
2answers
82 views

CiviMail: Can only write new mailing in debug mode (SOLVED)

I've got the problem, that after an upgrade to the newest CiviCRM version (4.7.23) on WordPress, I can only create a new mass mailing when debug mode is enabled. When it is disabled, CiviCRM gives me ...
1
vote
1answer
23 views

What tpl or php file calls/loads CRM/UF/Page/Group.tpl for the Profiles page?

I trying to debug my civicrm backend Profiles page on Joomla. Could someone backtrace the templates/CRM/UF/Page/Group.tpl when the the Profiles page is loaded? I believe the Profiles page loads the ...
1
vote
1answer
75 views

Debug PseudoConstant

I noticed recently under my Drupal "recent logged messages", I've been getting errors logged with the message: "Deprecated function, use CRM_Core_PseudoConstant::getKey Array ( [civi.tag] => ...
3
votes
1answer
110 views

Unable to add or edit profiles on contribution pages

I am unable to add, edit or delete profiles from my contribution pages. I am not sure what is happening. I decided to not modify reserved profiles and create a custom profiles and trying to change ...
2
votes
1answer
67 views

Drush cannot disable civicrm debug

The drush command drush civicrm-disable-debug returns error The drush command 'civicrm-disable-debug' could not be found. Run 'drush cache-clear drush' to clear the commandfile cache if you have ...
3
votes
2answers
258 views

Where is the exact path to the ConfigAndLog log *file*?

In the latest awesome pattern we can now locate our log service easily: Civi::log()->info('Hello, log!'); And then we can tail the log which is in our ConfigAndLog directory. Chris has enumerated ...
7
votes
1answer
1k views

Where are the “ConfigAndLog” and “templates_c” directories?

Many Stack Exchange answers say to "check your CiviCRM logs" which can be found in the "ConfigAndLog" directory, or to "delete your templates_c folder". What are the default locations for the ...
5
votes
1answer
200 views

How can I use Xdebug with CiviCRM unit tests?

Ideally in conjunction with an IDE (I use Netbeans, but will fire up pretty much anything that gets this to work).
1
vote
1answer
27 views

Custom report Action not working on new development

I have now, after a steep learning curve built a custom report based on the kind help I have has so far. How to write custom report SQL But I have an issue, that I don't know how to effectively ...
1
vote
1answer
74 views

Suppress 'Unsupported locale specified to parseStreetAddress: en_GB' message

If debugging is enabled, 'Unsupported locale specified to parseStreetAddress: en_GB' message appears in some situations (add/edit contact), which scares non-techy editors. There are some ancient ...
4
votes
1answer
82 views

Civi posting additional records for recurring PayPal transactions

I'm having problems with recurring transactions with Paypal Pro. It's posting additional financial_trxn and financial_item records. I have exported an example including the following tables: ...
2
votes
1answer
64 views

Switch template in extension

Extension loads and I added the following hook to switch demographics template: function myext_civicrm_alterTemplateFile( $formName, &$form, $context, &$tplName) { switch($tplName) { case ...
6
votes
4answers
3k views

DB Error: unknown error

I'm trying to do some site development on my dev copy of the site, but I'm seeing the following error, both in the browser and in drush commands like drush cc all: Sorry but we are not able to ...
0
votes
2answers
81 views

How do I increase the backtrace line length

Log files include a backtrace which is very helpful for debugging but I find the lines get truncated so I cannot see all the values. After about 200 characters I usually see an ellipsis ... and the ...
16
votes
1answer
2k views

How do I debug CiviCRM when I hit a blank page / white screen / fatal error?

CiviCRM is showing a blank page (aka white screen of death or WSoD) when I expect to see some output. How can I debug CiviCRM when there is no error message visible on screen? This includes when the ...
6
votes
3answers
457 views

What's the correct way to log debug info to log?

The "current" wiki says to use CRM_Core_Error::debug and says, "Most runtime errors are logged here, as well as data that you explicitly write to log using the CRM_Core_Error::debug log=true parameter....
8
votes
1answer
434 views

How to print variable/debug data from your extension.php?

I am trying to add a menu entry in the navigation, but this is causing the navigation menu to disappear, I am trying to debug the code but could not find any particular file. I have checked the ...
2
votes
2answers
866 views

Problem after upgrading: table not found

I have a big issue after installing an upgrade of CIVICRM. The debug output indicates a table is missing but does not identify which one: DB Error: no such table What should I do? I have add a ...
1
vote
3answers
264 views

CiviCRM menu missing Administer link after reboot

I am a CiviCRM admin. I shut down my computer (personal computer, not the server where CiviCRM is installed) and when I restarted it, the menu is different. I do not have an Administer link in my main ...
0
votes
3answers
462 views

CiviCRM dashboard and menus do not load

I cannot load CiviCRM 4.6.3 in my WordPress installation. I can login to Wordpress, but when I click on CiviCRM, The menu is not loaded the dashboard remains on "Loading…" When I check the console (...
4
votes
1answer
261 views

CiviCRM Wordpress Optimization

Keep banging my head against this and can't seem to get anywhere. I've got a dev site up on Centos 6.6 using KVM, with 4 cores and 8 GB of RAM allocated and PHP 5.3.3. I'm testing a large import via ...
3
votes
2answers
204 views

Undefined offset: 1 in CRM_Utils_Check_Security->guessUrl()

Notice: Undefined offset: 1 in CRM_Utils_Check_Security->guessUrl() (line 330 of /home/saintfran/www/www/sites/all/modules/civicrm/CRM/Utils/Check/Security.php). I found the following on the issue ...
1
vote
2answers
93 views

How can I display variables for templates other than the top/main one?

The popup window enabled at civicrm/admin/setting/debug?reset=1 contains only the top level Smarty template variables. How can I see the variables for a lower level included Smarty template?
11
votes
4answers
2k views

What is the easiest way to see the MySQL queries run by a CiviCRM page?

When debugging CiviCRM pages, is there a native way to emit the SQL statements being run, eg on a Search page? I'm looking for something easier than finding the code for the page and putting in a ...
1
vote
2answers
40 views

How Do You Copy Live To Sandbox?

Turning the normal progression of development on it's head, what I am looking to do is take a copy of a production site and put it on a sandbox. I am currently using D 7.36 and Civi 4.4.14 My ...
1
vote
1answer
44 views

How do I generate sql/civicrm_generated.mysql using bin/regen.sh file?

I am working on CRM-11369 bug. However, I was facing problems in generating sql/civicrm_generated.mysql using bin/regen.sh file. The fifth line of bin/regen.sh file is 'source dirname $0/setup.conf'. ...
1
vote
1answer
36 views

Attempting to add a new Contact, why do I get this error message - 'Warning: htmlspecialchars() expects parameter 1 to be string'?

I'm getting this error message when attempting to add a new contact in Civi 4.6: Warning: htmlspecialchars() expects parameter 1 to be string, object given in krumo::_array() (line 1071 of /var/www/[...
1
vote
1answer
88 views

What is Krumo, and why should I care?

What is Krumo, and when enabled, what does it do for a CiviCRM site?
9
votes
1answer
782 views

Where should one look for logs when debugging a new problem?

When a bug or problem arises, one must often seek out the corresponding error-messages or error-logs. Since Civi runs on a large stack, there can be several layers to check, e.g. The browser's ...
1
vote
3answers
270 views

How to tell which .extra.tpl files CiviCRM is trying (and failing) to load?

I was writing an extension which injects a template snippet, and was working fine. While working on the PHP, without any change to the snippet, it's no longer loading (the rest of the extension IS ...