:navigation-title: Installation .. _installation: ============ Installation ============ .. _installation-requirements: Requirements ============ .. list-table:: :header-rows: 1 * - Requirement - Supported * - TYPO3 - 13.4 LTS and 14.3 LTS * - PHP - 8.2, 8.3, 8.4 and 8.5 * - Required TYPO3 system extensions - ``typo3/cms-core``, ``typo3/cms-backend``, ``typo3/cms-filelist`` * - Optional - ``typo3/cms-workspaces`` (workspace titles in reports) * - Database - Tested with MariaDB 10.11, MySQL 8.0 and SQLite. PostgreSQL has not been tested. * - Browser - A current desktop browser. Screen capture requires a secure context (HTTPS) and the Screen Capture API; it has been verified in Chromium. Upload and paste work without it. The same package works on both TYPO3 branches; Composer picks the matching dependencies. A few labels differ because TYPO3 14 renamed backend modules, see :ref:`upgrade-typo3`. .. _installation-composer: Installation with Composer ========================== .. code-block:: bash composer require priebera/typo3-context-reporter vendor/bin/typo3 extension:setup The setup creates three database tables for reports, screenshots and the delivery history, see :ref:`privacy-storage`. The extension also adds its report action to the default list of primary file list actions, see :ref:`configuration-tsconfig`. .. _installation-classic: Classic mode ------------ Composer mode is recommended. In classic mode (installation without Composer), install the ZIP file from the `TYPO3 Extension Repository `__: #. Open :guilabel:`Admin Tools > Settings > Extension Configuration` (:guilabel:`System > Settings` in TYPO3 14), open :guilabel:`extensionmanager` and switch off :guilabel:`Install extensions automatically after download from TER or file upload`. #. Open :guilabel:`Admin Tools > Extensions` (:guilabel:`System > Extensions` in TYPO3 14), choose :guilabel:`Upload Extension` and upload the ZIP file, for example :file:`context_reporter_0.2.0.zip`. Keep the file name: the Extension Manager reads the extension key from it. #. Click :guilabel:`Activate` next to :guilabel:`Context Reporter` (and confirm in TYPO3 14). The activation creates the database tables. With the automatic installation switched on, the Extension Manager of TYPO3 13.4 and 14.3 activates an uploaded extension in the same request and fails with "Extension context_reporter is not available" when the extension was not installed before. This happens with every newly uploaded extension, not only with Context Reporter. The uploaded files are removed again, so switch the option off and upload the file once more. Alternatively, extract the ZIP file to :file:`typo3conf/ext/context_reporter/` and activate the extension in the Extension Manager or with ``typo3/sysext/core/bin/typo3 extension:activate context_reporter``. .. _installation-first-steps: First steps =========== #. Open :guilabel:`System > Context Reports` and click :guilabel:`Settings` at the top right. #. Set a project name and environment, and configure the :ref:`email ` or :ref:`webhook ` destination. Check the :guilabel:`Status` panel and use :guilabel:`Send test email` or :guilabel:`Send test webhook`. #. Switch the destination on, click :guilabel:`Report a problem` in the backend toolbar and send a first report. #. Check the delivery in :guilabel:`System > Context Reports`. Without a configured destination, reports are stored in the report history and can be downloaded as JSON or Markdown. Decide early how long reports should be kept: the default retention keeps them forever, see :ref:`usage-retention`. If administrators should not be able to change the webhook destination, pin it in the system configuration, see :ref:`privacy-webhook-boundary`.