An error occurred while creating the DI container: ' . $e->getMessage() . '
'; + + exit(1); +} + +// Execute the application +// source: https://github.com/joomla/framework.joomla.org/blob/master/www/index.php#L85 +try +{ + $app = $container->get(Joomla\Application\AbstractApplication::class); + // Set the application as global app + \Octoleo\CMS\Factory::$application = $app; + // Execute the application. + $app->execute(); +} +catch (\Throwable $e) +{ + error_log($e); + + if (!headers_sent()) + { + header('HTTP/1.1 500 Internal Server Error', null, 500); + header('Content-Type: text/html; charset=utf-8'); + } + + echo 'An error occurred while executing the application: ' . $e->getMessage() . '
'; + + exit(1); +} +// I am just playing around... ((ewɘ))yn purring \ No newline at end of file diff --git a/week-04/project/administrator/includes/defines.php b/week-04/project/administrator/includes/defines.php new file mode 100644 index 0000000..ed34049 --- /dev/null +++ b/week-04/project/administrator/includes/defines.php @@ -0,0 +1,24 @@ + + * @git WEBD-325-45An error occurred while creating the DI container: ' . $e->getMessage() . '
'; + + exit(1); +} + +// Execute the application +// source: https://github.com/joomla/framework.joomla.org/blob/master/www/index.php#L85 +try +{ + $app = $container->get(Joomla\Application\AbstractApplication::class); + // Set the application as global app + \Octoleo\CMS\Factory::$application = $app; + // Execute the application. + $app->execute(); +} +catch (\Throwable $e) +{ + error_log($e); + + if (!headers_sent()) + { + header('HTTP/1.1 500 Internal Server Error', null, 500); + header('Content-Type: text/html; charset=utf-8'); + } + + echo 'An error occurred while executing the application: ' . $e->getMessage() . '
'; + + exit(1); +} +// I am just playing around... ((ewɘ))yn purring \ No newline at end of file diff --git a/week-04/project/includes/defines.php b/week-04/project/includes/defines.php new file mode 100644 index 0000000..b95081f --- /dev/null +++ b/week-04/project/includes/defines.php @@ -0,0 +1,23 @@ + + * @git WEBD-325-45Sorry, we couldn't find the page matching your request. Try using the navigation to find what you were looking for?
+ {% else %} +Well this is embarrassing, seems there was an error processing this request. Perhaps try again? Or file an issue so we can address it.
+ {% endif %} + + {% if appDebug %} +{{ exception.message|strip_root_path }}
+ + {% if exception.previous %} + {% set _previous = exception.previous %} +{{ exception.message|strip_root_path }}
+ {% endif %} + {% endif %} +Table Heading | +Table Heading | +Table Heading | +
---|---|---|
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Heading | +Table Heading | +Table Heading | +
---|---|---|
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Heading | +Table Heading | +Table Heading | +
---|---|---|
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Table Data | +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | +Edit | +
Sorry, we couldn't find the page matching your request. Try using the navigation to find what you were looking for?
+ {% else %} +Well this is embarrassing, seems there was an error processing this request. Perhaps try again? Or file an issue so we can address it.
+ {% endif %} + + {% if appDebug %} +{{ exception.message|strip_root_path }}
+ + {% if exception.previous %} + {% set _previous = exception.previous %} +{{ exception.message|strip_root_path }}
+ {% endif %} + {% endif %} +It looks like you are trying to run Octoleo! from our git repository. To do so requires you complete a couple of extra steps first.
+
+ 0. Make sure you have composer installed on your system.
+
+ 1. In your terminal go to the root folder of your Octoleo website where you will find the composer.json file.
+
+ 2. Run the following command composer install
to install all PHP packages.
+
Your host needs to use PHP version {{phpversion}} or newer to run this version of Octoleo!
+You need to manually do the following few tasks.
+
+ 1. Import the SQL tables into your database found in /sql/install.sql
+
+ 2. Copy the /octoconfig.php.example file to /octoconfig.php
+
+ 3 .Update the /octoconfig.php to reflect your CMS details
+
+ 4. Remove the installation folder from you root directory
+