===== FlatPress Debug mode ===== For the development of templates, plugins and PHP scripts, it is helpful to let FlatPress do the talking. ==== Description==== **Hint:**\\ Before you publish your FlatPress, you should set the "switches" to OFF or delete them again. The Smarty Engine offers a [[https://www.smarty.net/docsv2/en/chapter.debugging.console.tpl|console]] for template designers. It is also helpful, for example, to display any error messages when changing the PHP version. The easiest way is to place the "switches" as centrally as possible, for example in the file [[https://github.com/flatpressblog/flatpress/blob/ed47a9a8f60392fdf2ba634309eefb17084dec3d/fp-includes/core/core.system.php#L195|core.system.php]] in the lower third of the ''function system_init()'' in line 195. Open the file core.system.php with an FTP client, e.g. [[https://filezilla-project.org/|FileZilla]] in the directory ''/fp-includes/core''. Now insert the following code in line 195: // enabled smarty debug console @ini_set('display_errors', 'on'); // on or off @error_reporting(E_ALL); // E_ALL or 0 $smarty->debugging = true; // true or false