12
votes
Accepted
Where are the "ConfigAndLog" and "templates_c" directories?
The two directories are found side-by-side. The location varies by CMS; see below. Note that you'll need access to your server's file system. If you have FTP/SFTP/SSH access, you can use that. If ...
9
votes
Accepted
How can I use Xdebug with CiviCRM unit tests?
Xdebug configuration is a somewhat temperamental issue -- the details depend on the IDE, the PHP build, host OS, target application, test suite, etc. Providing a good answer to this is tricky -- e.g. ...
6
votes
Accepted
DB Error: unknown error
Reviewing the stack trace you provided, the line [debug_info] => SELECT GET_LOCK( 'pantheon.1.cache.3a9e8c34426bc6dde01d5581d9654dcf_mapper/moduleFiles._', 3 ) [nativecode=3057 ** Incorrect user-...
5
votes
Where are the "ConfigAndLog" and "templates_c" directories?
Another option for seeing the civi logs is adding the extension CiviCRM Log Viewer which gives a link via the Admin menu to view the error log
4
votes
DB Error: unknown error
Browser - From the browser, go to Administer > System Settings > Debugging and Error Handling and you can turn on Enable Debugging and Display Backtrace. That should provide you with more specific ...
4
votes
Accepted
Unable to add or edit profiles on contribution pages
Turns out that Jetpack conflicts with CiviCRM - Fix for now is to disable Jetpack when using CiviCRM Profiles on contribution pages and then reactivate when done. Also note: Jetpack also impacts the ...
4
votes
Accepted
How do I add debug lines?
At the link you referenced it says you can use Civi::log()->debug(); this section, so for example Civi::log()->debug(var_export($my_variable, true));
I'm not sure what you mean by the directory ...
3
votes
How do I add debug lines?
Re "where can I view the results" - if you want to view the log via the GUI try the log viewer extension.
3
votes
Accepted
Drush cannot disable civicrm debug
The civicrm-disable-debug command isn't defined in civicrm_drush_command(). See line 155:
$items['civicrm-enable-debug'] = array(
'description' => "Enable CiviCRM Debugging.",
);
To solve this ...
3
votes
CiviMail: Can only write new mailing in debug mode (SOLVED)
Cross-origin refers to accessing resources on a different domain. It's curious that URLs you reference are actually different domains -- www.netzwerk-n.org vs netzwerk-n.org. You might want to check ...
2
votes
How do I increase the backtrace line length
:( it is hard-coded. I changed $maxArgLen in CRM/Core/Error.php and now I can see the full backtrace.
2
votes
What's the correct way to log debug info to log?
I use
Civi::log()->debug('my message')
to write to the log file.
2
votes
DB Error: unknown error
Sorry for the late post here, but this tip might help someone going forward with this error.
I too was receiving this error on a fresh install of CiviCRM with WordPress. It was noted there were ajax ...
2
votes
Accepted
Can't disable debug/backtrace on WordPress
If you have command-line access and wp-cli enabled (with the CiviCRM extension), you can run: wp civicrm disable-debug.
If you don't have command-line access, run the following SQL via PHPMyAdmin or ...
2
votes
Error on contribution details display, recently updated system
I think it would be worth following the lead about disabled or invalid financial types. At /civicrm/admin/financial/financialType?reset=1 , do any of the financial types show as disabled? If so, you ...
2
votes
Accepted
combining log and error output
I can think of a way to do it the other way around, by defining your own civicrm logger and having it send to syslog. The problem is large stacktraces might get cut off and be formatted badly because ...
2
votes
Civimail gives a blank page
Sorry, should have searched more carefully. Found the answer here:
Status page angular load error
2
votes
Accepted
After upgrade to 5.44 menu and some elements won't load without debugging enabled
Long story short, it was a permission issue. A change to groups on my institutions relatively new server left Apache without execute permission on some files and folders in myTheme/civicrm/files. The ...
1
vote
combining log and error output
If you can't correlate the events in order, are you logging from different machines?
Event correlation is a rabbit hole and there are a lot of great products (free and not free to do it) however, you ...
1
vote
How to fix it? By pressing “Print Summary”, there are 2 extra blank pages printed
There is CSS that is adding the space. When I remove the height for the following it will not print blank pages.
crm-container div.form-item {
height: 100%;
}
I would create an "extras.css" so that ...
1
vote
Reports will no longer generate pdfs:Shows HTTP 500 error
After updating to the latest CiviCRM it seems the problem was corrected.
1
vote
Accepted
CiviMail: Can only write new mailing in debug mode (SOLVED)
At some point I recognized that it's not only the new mailing page that doesn't load when I disable debugging, but also the system status page wouldn't. So I thought, both things might have something ...
1
vote
What tpl or php file calls/loads CRM/UF/Page/Group.tpl for the Profiles page?
For the Profiles page, the templates/CRM/common/joomla.tpl template loads the Group.tpl file. Since the production website was malfunctioning, I had to install a local copy in order to adequately ...
1
vote
Accepted
Debug PseudoConstant
In regards to the first one its a little bit misleading the actual thing is another function has been marked as deprecated and calls to that function should be refactored to use ...
1
vote
Where is the exact path to the ConfigAndLog log *file*?
Found it!
The log file is named by CRM_Exception::generateLogFileName($prefix); in civicrm/CRM/Core/Error.php.
1
vote
DB Error: unknown error
Based on the following line in the CiviCRM log file:
[debug_info] => SELECT GET_LOCK( 'pantheon.1.cache.3a9e8c34426bc6dde01d5581d9654dcf_mapper/moduleFiles._', 3 ) [nativecode=3057 ** Incorrect ...
1
vote
Custom report Action not working on new development
OK,
I tried deleting the report and recreating the report from the template, and like magic the functions started working. Seems that CiviCRM has certain ways about it that developers need to know. (...
1
vote
Accepted
Suppress 'Unsupported locale specified to parseStreetAddress: en_GB' message
If you switch off the checkbox for street parsing (as petednz suggests) the error will disappear. But if you really need the street parsing that will not help you. In that case you would need to add ...
1
vote
Switch template in extension
I use alter template file in 4.7.2. It has been working great for me.
I needed to switch out the contact editor form based on contact subtype. One important thing I found if doing this programically ...
1
vote
How do I increase the backtrace line length
Or call
CRM_Core_Error::debug('message',CRM_Core_Error::formatBacktrace(debug_backtrace(), TRUE, 300));
where 300 is the maximum characters allowed for each arguments
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
debugging × 43wordpress × 6
drupal × 6
upgrade × 4
error × 4
logs × 4
extension × 3
developer × 3
templates × 3
civimail × 2
profile × 2
contribution-page × 2
search × 2
mysql × 2
php × 2
civicrm-home × 2
ajax × 2
drush × 2
sql × 2
civievent × 1
joomla × 1
civicase × 1
activities × 1
payment-processor × 1
installation × 1