Age | Commit message (Collapse) | Author |
|
- the error handler logs warnings and notices, and turns errors into exceptions (`ErrorException`)
- the exception handler catches all uncatched exceptions and display them to the user (HTML or CLI)
- the "screen" logging backend has been removed
- I've normalized exceptions/errors shown to the user in HTML (wether they are catched by the FrontController or not)
|
|
- keep the log message as string
- exceptions are logged in context under the "exception" key
- Piwik\Error objects are replaced by \ErrorException (logged the PSR-3 way)
|
|
instead of events
|
|
|
|
|
|
code, few refactorings, all as part of our code cleanup strategy
|
|
|
|
to use free/libre instead of open source
|
|
refs #4609
|
|
Piwik\ExceptionHandler::exceptionHandler() cannot be static in /Users/dirk/Sites/piwik-02/core/ExceptionHandler.php on line 65
|
|
|
|
|
|
Removing Zend_Registry from Core
fixes #4188
|
|
|
|
Conflicts:
core/ErrorHandler.php
core/ExceptionHandler.php
core/FrontController.php
core/Log.php
core/Piwik.php
|
|
|
|
|
|
name when plugin can't be determined.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/ conversion
|
|
Removed many Piwik_ functions, in Piwik 2 it is best practise to use the methods calls instead
Todo: finish converting core/ classes + convert plugins/ classes to use \Piwik\Plugin namespace + fix build + Merge master
|
|
|
|
|
|
Converting Piwik core source files, PHP, JS, TPL, CSS
More info: http://piwik.org/participate/coding-standards/
|
|
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@6325 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@6300 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
Archive.php improvements
* Added strong errorhandling, handling sql/php/network errors from the script itself or returned from the http requests
If there is a critical error during script exec, such as wrong token_auth or mysql shutdown, then the fatal error is throw, PHP error as well, and the script exits directly.
If there was any non critical errors during execution, the script simply logs errors on screen. Then at the end, it logs them all again on screen for summary then exits (and triggers a PHP error to ensure we trigger cron error handling & email message)
* Added summary error logs at end of script output + other improvements in the output metrics and messaging
* Added flags (a different one for days and periods, one per website) to record a website archiving as succesful and not re-trigger the http request when not necessary. Flags are maintained via the piwik_option lookup table.
* archive.php is now consistently using direct calls to some internal APIs (those that are not processing data) rather than calling over http
git-svn-id: http://dev.piwik.org/svn/trunk@5095 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@2968 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
skipped plugins/Live as there's a large patch to merge
git-svn-id: http://dev.piwik.org/svn/trunk@1968 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
* add @category (Piwik => 'core', Piwik_Plugins => 'plugins')
* in core, use @package and @subpackage more consistently to group files/classes; exception is DataFiles/*, PluginsFunctions/*, and SmartyPlugins/*
* in plugins, @package is the plugin name
* removed '@param none' -- not a phpdoc convention
* '@throws' and '@return void' are also not phpdoc conventions, but are widely used elsewhere, e.g., Smarty & Zend
git-svn-id: http://dev.piwik.org/svn/trunk@1420 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@1321 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
libs. (I didn't touch: open-flash-chart, Zend Framework, and PEAR HTML.)
git-svn-id: http://dev.piwik.org/svn/trunk@1296 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@1270 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@1250 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
PHP (by design) isn't intended to support overloading to the extent of other
OOP languages (i.e., "multiple methods with the same name but different
quantities and types of arguments")
ref: http://ca.php.net/manual/en/language.oop5.overloading.php
this change arises because PHP 5.2.10 escalated the log message
priority for incompatible method declarations
git-svn-id: http://dev.piwik.org/svn/trunk@1249 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@1248 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
autoloader's discovery algorithm; FrontController.php and Common.php
use classes with global scope functions (i.e., this needs to be
refactored)
git-svn-id: http://dev.piwik.org/svn/trunk@1232 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
multiple class definitions (e.g., Piwik_Auth_Result), and fix typo
(reference to Piwik_Api_Proxy).
git-svn-id: http://dev.piwik.org/svn/trunk@1228 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@1150 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
renaming it...
git-svn-id: http://dev.piwik.org/svn/trunk@587 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|