What Types of PHP Errors Shack Error Notify Detects

Documentation for Joomla 3

By default, the Shack Error Notify plugin will notify you of the following seven types of PHP errors in your Joomla 3 site:

  • CompileError: This error is thrown for some compilation errors, which formerly issued a fatal error. See this page from php.net for more details.
  • ParseError: This error is thrown when an error occurs while parsing PHP code, such as when eval() is called. See this page from php.net for more details.
  • TypeError: There are three scenarios where a TypeError may be thrown. The first is where the argument type being passed to a function does not match its corresponding declared parameter type. The second is where a value being returned from a function does not match the declared function return type. The third is where an invalid number of arguments are passed to a built-in PHP function (strict mode only). See this page from php.net for more details.
  • ArgumentCountError: This error is thrown when too few arguments are passed to a user-defined function or method. See this page from php.net for more details.
  • ArithmeticError: This error is thrown when an error occurs while performing mathematical operations. In PHP 7.0, these errors include attempting to perform a bitshift by a negative amount, and any call to intdiv() that would result in a value outside the possible bounds of an integer. See this page from php.net for more details.
  • DivisionByZeroError: This error is thrown when an attempt is made to divide a number by zero. See this page from php.net for more details.
  • AssertionError: This error is thrown when an assertion made via assert() fails. See this page from php.net for more details.

Documentation for Joomla 5

By default, the Shack Error Notify plugin will notify you of the following seven types of PHP errors in your Joomla 5 site:

  • CompileError: This error is thrown for some compilation errors, which formerly issued a fatal error. See this page from php.net for more details.
  • ParseError: This error is thrown when an error occurs while parsing PHP code, such as when eval() is called. See this page from php.net for more details.
  • TypeError: There are three scenarios where a TypeError may be thrown. The first is where the argument type being passed to a function does not match its corresponding declared parameter type. The second is where a value being returned from a function does not match the declared function return type. The third is where an invalid number of arguments are passed to a built-in PHP function (strict mode only). See this page from php.net for more details.
  • ArgumentCountError: This error is thrown when too few arguments are passed to a user-defined function or method. See this page from php.net for more details.
  • ArithmeticError: This error is thrown when an error occurs while performing mathematical operations. In PHP 7.0, these errors include attempting to perform a bitshift by a negative amount, and any call to intdiv() that would result in a value outside the possible bounds of an integer. See this page from php.net for more details.
  • DivisionByZeroError: This error is thrown when an attempt is made to divide a number by zero. See this page from php.net for more details.
  • AssertionError: This error is thrown when an assertion made via assert() fails. See this page from php.net for more details.