CiviCRM: Difference between revisions

From Freephile Wiki
add debugging section
No edit summary
Line 67: Line 67:
# put site in operation mode<code>drush vset maintenance_mode 0</code>
# put site in operation mode<code>drush vset maintenance_mode 0</code>
# toast
# toast
The even shorter version is to use [[drush]] <code>civivcrm-upgrade</code> does all the above for you.


== Debugging ==
== Debugging ==
There are many tools you can use to debug your CiviCRM instance.
There are many tools you can use to debug your CiviCRM instance.
One of these is the <code>cv</code> tool available on Github.  Also, don't forget to use [[Drush]] if you're on [[Drupal]]; the CiviCRM API; and the ConfigAndLog directory log.
One of these is the <code>cv</code> tool [https://github.com/civicrm/cv available on Github].
<pre>
cv version v0.1.27
 
Usage:
  command [options] [arguments]
 
Options:
  -h, --help            Display this help message
  -q, --quiet          Do not output any message
  -V, --version        Display this application version
      --ansi            Force ANSI output
      --no-ansi        Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
 
Available commands:
  api                    Call an API
  cli                    Load interactive command line
  dis                    Disable an extension
  dl                      Download and enable an extension
  en                      Enable an extension
  ev                      Evaluate a snippet of PHP code
  flush                  Flush system caches
  help                    Displays help for a command
  list                    Lists commands
  path                    Look up the path to a file or directory
  scr                    Execute a PHP script
  url                    Compose a URL to a CiviCRM page
ang
  ang:html:list          List Angular HTML files
  ang:html:show          Show an Angular HTML file
  ang:module:list        List Angular modules
api
  api:batch              Call an API (batch mode)
debug
  debug:container        Dump the container configuration
  debug:event-dispatcher  Dump the list of event listeners
ext
  ext:disable            Disable an extension
  ext:download            Download and enable an extension
  ext:enable              Enable an extension
  ext:list                List extensions
  ext:uninstall          Uninstall an extension and purge its data
  ext:upgrade-db          Apply DB upgrades for any extensions
php
  php:boot                Generate PHP bootstrap code
  php:eval                Evaluate a snippet of PHP code
  php:script              Execute a PHP script
vars
  vars:fill              Generate a configuration file for any missing site data
  vars:show              Show the configuration of the local CiviCRM installation
</pre>
 
Also, don't forget to use [[Drush]] if you're on [[Drupal]]; the CiviCRM API; and the ConfigAndLog directory log. The ConfigAndLog directory is in a path like <code>./sites/default/files/civicrm/ConfigAndLog</code>


== Profiles ==
== Profiles ==

Revision as of 09:38, 10 August 2017