CRM_Utils_Check_Component_Env
extends CRM_Utils_Check_Component
in package
Tags
Table of Contents
Methods
- checkAll() : array<string|int, CRM_Utils_Check_Message>
- Run all checks in this class.
- checkAngularModuleSettings() : array<string|int, mixed>
- checkComponents() : array<string|int, mixed>
- Ensure that *some* CiviCRM components (component-extensions) are enabled.
- checkDbEngine() : array<string|int, CRM_Utils_Check_Message>
- Ensure that all CiviCRM tables are InnoDB
- checkDbVersion() : array<string|int, CRM_Utils_Check_Message>
- Checks if CiviCRM database version is up-to-date
- checkDebug() : array<string|int, CRM_Utils_Check_Message>
- checkDefaultMailbox() : array<string|int, CRM_Utils_Check_Message>
- Checks if a default bounce handling mailbox is set up
- checkDirsWritable() : array<string|int, CRM_Utils_Check_Message>
- Check that important directories are writable.
- checkDirVariables() : array<string|int, CRM_Utils_Check_Message>
- Recommend that sites use path-variables for their directories and URLs.
- checkDomainNameEmail() : array<string|int, CRM_Utils_Check_Message>
- Check that domain email and org name are set
- checkEnvironment() : array<string|int, CRM_Utils_Check_Message>
- Check if environment is Production.
- checkExcludeDirectories() : array<string|int, mixed>
- Let people know if they could improve performance by defining the exclude directory.
- checkExtensions() : array<string|int, CRM_Utils_Check_Message>
- Checks if extensions are set up properly
- checkExtensionUpgrades() : array<string|int, CRM_Utils_Check_Message>
- Checks if there are pending extension upgrades.
- checkForMultipleL10NDirs() : array<string|int, mixed>
- checkLastCron() : array<string|int, CRM_Utils_Check_Message>
- Checks if cron has run in the past hour (3600 seconds)
- checkLoggingHasCiviReport() : array<string|int, CRM_Utils_Check_Message>
- Checks if logging is enabled but Civi-report is not.
- checkMbstring() : array<string|int, CRM_Utils_Check_Message>
- Check for required mbstring extension
- checkMysqlTime() : array<string|int, CRM_Utils_Check_Message>
- Check that the MySQL time settings match the PHP time settings.
- checkMysqlUtf8mb4() : array<string|int, CRM_Utils_Check_Message>
- Check for utf8mb4 support by MySQL.
- checkMysqlVersion() : mixed
- checkOutboundMail() : array<string|int, CRM_Utils_Check_Message>
- checkPHPIntlExists() : array<string|int, mixed>
- checkPhpMysqli() : array<string|int, CRM_Utils_Check_Message>
- checkPhpVersion() : array<string|int, CRM_Utils_Check_Message>
- checkReplyIdForMailing() : array<string|int, CRM_Utils_Check_Message>
- Ensure reply id is set to any default value
- checkScheduledJobLogErrors() : array<string|int, CRM_Utils_Check_Message>
- checkTemplateCompileCheck() : array<string|int, mixed>
- Let people know if they could improve performance by defining the template compile check.
- checkUrlVariables() : array<string|int, CRM_Utils_Check_Message>
- Recommend that sites use path-variables for their directories and URLs.
- checkVersion() : array<string|int, CRM_Utils_Check_Message>
- Checks if new versions are available
- fileExists() : bool
- Check if file exists on given URL.
- getAllChecks() : array<string|int, string>
- Get the names of all check functions in this class
- getChecksConfig() : array<string|int, mixed>
- Get the configured status checks.
- isDisabled() : bool
- Is the specified check disabled.
- isEnabled() : bool
- Should these checks be run?
- isRequested() : bool
- Is this check one of those requested
- normalizePath() : string
- Avoid issues with trailing slashes and mixed separators on windows.
Methods
checkAll()
Run all checks in this class.
public
checkAll([array<string|int, mixed> $requestedChecks = [] ][, bool $includeDisabled = FALSE ]) : array<string|int, CRM_Utils_Check_Message>
Parameters
- $requestedChecks : array<string|int, mixed> = []
-
Optionally specify the names of specific checks requested, or leave empty to run all
- $includeDisabled : bool = FALSE
-
Run checks that have been explicitly disabled (default false)
Tags
Return values
array<string|int, CRM_Utils_Check_Message>checkAngularModuleSettings()
public
checkAngularModuleSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>checkComponents()
Ensure that *some* CiviCRM components (component-extensions) are enabled.
public
checkComponents() : array<string|int, mixed>
It is believed that some sites lost their list of active-components due to a flawed upgrade-step circa 5.62/5.63. The upgrade-step has been fixed (civicrm-core#27075), but some sites may still have bad configurations.
This problem should generally be obvious after running web-based upgrader, but it's not obvious in scripted+CLI upgrades.
Tags
Return values
array<string|int, mixed>checkDbEngine()
Ensure that all CiviCRM tables are InnoDB
public
checkDbEngine() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkDbVersion()
Checks if CiviCRM database version is up-to-date
public
checkDbVersion() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkDebug()
public
checkDebug() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkDefaultMailbox()
Checks if a default bounce handling mailbox is set up
public
checkDefaultMailbox([bool $force = FALSE ]) : array<string|int, CRM_Utils_Check_Message>
Parameters
- $force : bool = FALSE
Return values
array<string|int, CRM_Utils_Check_Message>checkDirsWritable()
Check that important directories are writable.
public
checkDirsWritable() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkDirVariables()
Recommend that sites use path-variables for their directories and URLs.
public
checkDirVariables() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkDomainNameEmail()
Check that domain email and org name are set
public
checkDomainNameEmail([bool $force = FALSE ]) : array<string|int, CRM_Utils_Check_Message>
Parameters
- $force : bool = FALSE
Return values
array<string|int, CRM_Utils_Check_Message>checkEnvironment()
Check if environment is Production.
public
checkEnvironment() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkExcludeDirectories()
Let people know if they could improve performance by defining the exclude directory.
public
checkExcludeDirectories() : array<string|int, mixed>
Return values
array<string|int, mixed>checkExtensions()
Checks if extensions are set up properly
public
checkExtensions() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkExtensionUpgrades()
Checks if there are pending extension upgrades.
public
checkExtensionUpgrades() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkForMultipleL10NDirs()
public
checkForMultipleL10NDirs() : array<string|int, mixed>
Return values
array<string|int, mixed>checkLastCron()
Checks if cron has run in the past hour (3600 seconds)
public
checkLastCron([bool $force = FALSE ]) : array<string|int, CRM_Utils_Check_Message>
Parameters
- $force : bool = FALSE
Tags
Return values
array<string|int, CRM_Utils_Check_Message>checkLoggingHasCiviReport()
Checks if logging is enabled but Civi-report is not.
public
checkLoggingHasCiviReport() : array<string|int, CRM_Utils_Check_Message>
Tags
Return values
array<string|int, CRM_Utils_Check_Message>checkMbstring()
Check for required mbstring extension
public
checkMbstring() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkMysqlTime()
Check that the MySQL time settings match the PHP time settings.
public
checkMysqlTime() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkMysqlUtf8mb4()
Check for utf8mb4 support by MySQL.
public
checkMysqlUtf8mb4() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkMysqlVersion()
public
checkMysqlVersion() : mixed
checkOutboundMail()
public
checkOutboundMail([bool $force = FALSE ]) : array<string|int, CRM_Utils_Check_Message>
Parameters
- $force : bool = FALSE
Return values
array<string|int, CRM_Utils_Check_Message>checkPHPIntlExists()
public
checkPHPIntlExists() : array<string|int, mixed>
Return values
array<string|int, mixed>checkPhpMysqli()
public
checkPhpMysqli() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkPhpVersion()
public
checkPhpVersion() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkReplyIdForMailing()
Ensure reply id is set to any default value
public
checkReplyIdForMailing([bool $force = FALSE ]) : array<string|int, CRM_Utils_Check_Message>
Parameters
- $force : bool = FALSE
Return values
array<string|int, CRM_Utils_Check_Message>checkScheduledJobLogErrors()
public
checkScheduledJobLogErrors() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkTemplateCompileCheck()
Let people know if they could improve performance by defining the template compile check.
public
checkTemplateCompileCheck() : array<string|int, mixed>
Return values
array<string|int, mixed>checkUrlVariables()
Recommend that sites use path-variables for their directories and URLs.
public
checkUrlVariables() : array<string|int, CRM_Utils_Check_Message>
Return values
array<string|int, CRM_Utils_Check_Message>checkVersion()
Checks if new versions are available
public
checkVersion([bool $force = FALSE ]) : array<string|int, CRM_Utils_Check_Message>
Parameters
- $force : bool = FALSE
Tags
Return values
array<string|int, CRM_Utils_Check_Message>fileExists()
Check if file exists on given URL.
public
fileExists(string $url[, float|bool $timeoutOverride = FALSE ]) : bool
Parameters
- $url : string
- $timeoutOverride : float|bool = FALSE
Tags
Return values
boolgetAllChecks()
Get the names of all check functions in this class
public
getAllChecks() : array<string|int, string>
Return values
array<string|int, string>getChecksConfig()
Get the configured status checks.
public
getChecksConfig() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>isDisabled()
Is the specified check disabled.
public
isDisabled(string $method) : bool
Parameters
- $method : string
Tags
Return values
boolisEnabled()
Should these checks be run?
public
isEnabled() : bool
Return values
boolisRequested()
Is this check one of those requested
private
isRequested(string $method, array<string|int, mixed> $requestedChecks) : bool
Parameters
- $method : string
- $requestedChecks : array<string|int, mixed>
Return values
boolnormalizePath()
Avoid issues with trailing slashes and mixed separators on windows.
private
static normalizePath(string $path) : string
Parameters
- $path : string