Questions tagged [debugging]
The debugging tag has no usage guidance.
44
questions
1
vote
1
answer
70
views
Failed upgrade from 5.69.2 to 5.69.5
My System Status page says "The site is running 5.69.2" but the Civi footer on the same page and WP's plugins page say version 5.69.5 - clearly an upgrade has gone wrong!
Now, several pages ...
1
vote
1
answer
29
views
Is it possible to change the output of CRM_Core_Error::debug($form)?
Currently, when I inspect the form structure in CiviCRM using CRM_Core_Error::debug($form), the output is presented as text, which makes it difficult to investigate.
I'd like to find a way to make ...
4
votes
1
answer
60
views
Intermittent failure to grant correct ACLs
We have a Drupal 9 site with approx 50 active users and some relatively complex ACLs (>100 rules). For the vast majority of users, all works fine but we have a very small number of users who it ...
0
votes
1
answer
40
views
After upgrade to 5.44 menu and some elements won't load without debugging enabled
After an upgrade from 5.38 to 5.44 on a Drupal 8 site the menu and dashboard failed to load. Other page elements, like the footer and header did load. Status page was also inaccessible, but mysite/...
2
votes
2
answers
47
views
combining log and error output
I want to combine the output written to the civicrm log file and php_error.log.
This is because I cannot alway conclude based on the time stamp what the order is of the messages in those files. ...
1
vote
2
answers
43
views
How do I add debug lines?
Currently, I'm developing a civi extension in a Wordpress environment. I want to add some debug lines to make sure I'm receiving the intended result from variable/function.
I refer this guide it ...
0
votes
1
answer
43
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
1
answer
29
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
1
answer
47
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
1
answer
94
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
0
answers
59
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
2
answers
69
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
1
answer
62
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
1
answer
135
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
2
answers
133
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
1
answer
37
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
1
answer
104
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
1
answer
131
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
1
answer
103
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
2
answers
612
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 ...
11
votes
2
answers
3k
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
1
answer
236
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
1
answer
41
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
1
answer
86
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
1
answer
107
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
1
answer
79
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 ...
8
votes
4
answers
4k
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
2
answers
149
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 ...
18
votes
2
answers
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
3
answers
972
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
1
answer
683
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
2
answers
1k
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
3
answers
353
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
3
answers
540
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
1
answer
319
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
2
answers
213
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
2
answers
226
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
4
answers
3k
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
2
answers
43
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
1
answer
51
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
1
answer
42
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
1
answer
106
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
1
answer
888
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
3
answers
335
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 ...