37 | | Please follow and read all automatically completed steps of the upgrade script, paying special attention to the last step. The last step of this upgrade is '''IMPORTANT'''. You will be given special instructions by the script which you will have to do '''MANUALLY'''. |
| 37 | Please follow and read all automatically completed steps of the upgrade script, paying special attention to the last step. The last step of this upgrade is '''IMPORTANT'''. You will be given special instructions by the script which you will have to do '''MANUALLY'''. |
| 38 | Here is a copy of these instructions: |
| 39 | |
| 40 | - Add the following modifications into inc/header.inc.php file: |
| 41 | 1. Add |
| 42 | {{{ |
| 43 | $site['logError'] = true; |
| 44 | $site['fullError'] = false; |
| 45 | $site['emailError'] = true; |
| 46 | }}} |
| 47 | after `$site['bugReportMail']...` line. |
| 48 | 2. Add |
| 49 | {{{ |
| 50 | $db['persistent'] = true; |
| 51 | }}} |
| 52 | after `$db['db']...` line. |
| 53 | 3. Add |
| 54 | {{{ |
| 55 | define('BX_DOL_LOG_ERROR', $site['logError']); |
| 56 | define('BX_DOL_FULL_ERROR', $site['fullError']); |
| 57 | define('BX_DOL_EMAIL_ERROR', $site['emailError']); |
| 58 | define('BX_DOL_REPORT_EMAIL', $site['bugReportMail']); |
| 59 | }}} |
| 60 | after `define('BX_DOL_URL_CACHE_PUBLIC'...` line. |
| 61 | 4. Add |
| 62 | {{{ |
| 63 | define('DATABASE_PERSISTENT', $db['persistent']); |
| 64 | }}} |
| 65 | after `define('DATABASE_NAME'...` line. |
| 66 | 5. Change |
| 67 | {{{ |
| 68 | $aErrors[] = (version_compare(PHP_VERSION, '5.3.0', '<')) ? '<font color="red">PHP version too old, please update to PHP 5.3.0 at least</font>' : ''; |
| 69 | }}} |
| 70 | to: |
| 71 | {{{ |
| 72 | $aErrors[] = (version_compare(PHP_VERSION, '5.4.0', '<')) ? '<font color="red">PHP version too old, please update to PHP 5.4.0 at least</font>' : ''; |
| 73 | }}} |
| 74 | 6. Change |
| 75 | {{{ |
| 76 | if (version_compare(phpversion(), "5.3.0", ">=") == 1) |
| 77 | error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT); |
| 78 | else |
| 79 | error_reporting(E_ALL & ~E_NOTICE); |
| 80 | set_magic_quotes_runtime(0); |
| 81 | ini_set('magic_quotes_sybase', 0); |
| 82 | }}} |
| 83 | to: |
| 84 | {{{ |
| 85 | error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING); |
| 86 | }}} |
| 87 | 7. Add |
| 88 | {{{ |
| 89 | require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolExceptionHandler.php'); |
| 90 | |
| 91 | set_exception_handler([new BxDolExceptionHandler(), 'handle']); |
| 92 | }}} |
| 93 | after `require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php');` line. |
| 94 | |
| 95 | - Clean /cache/, /cache_public/ and /tmp/ folders via FTP or SSH, leave only .htaccess file there if one exists |
| 96 | - Recompile system language file from Admin Panel -> Settings -> Languages Settings -> Languages |
| 97 | - Clean /cache/ folder again |
| 98 | - Recompile Forum language file for all templates from Admin Panel -> Modules -> Forum -> Manage Forum |
| 99 | - Remove /upgrade/ directory |
| 100 | |