21. ErrorException
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­erusev/­Parsedown.php915
20. Slim\Slim handleErrors
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­erusev/­Parsedown.php915
19. erusev\Parsedown element
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­erusev/­Parsedown.php952
18. erusev\Parsedown elements
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­erusev/­Parsedown.php268
17. erusev\Parsedown lines
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­erusev/­Parsedown.php50
16. erusev\Parsedown text
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­erusev/­ParsedownExtra.php40
15. erusev\ParsedownExtra text
…/­tdb.ca/­lhi-services.ca/­_app/­core/­api/­parse.php65
14. Parse markdown
…/­tdb.ca/­lhi-services.ca/­_app/­core/­api/­content.php83
13. Content transform
…/­tdb.ca/­lhi-services.ca/­_app/­core/­api/­content.php61
12. Content parse
…/­tdb.ca/­lhi-services.ca/­_app/­core/­content/­contentset.php819
11. ContentSet prepare
…/­tdb.ca/­lhi-services.ca/­_app/­core/­content/­contentset.php1097
10. ContentSet get
…/­tdb.ca/­lhi-services.ca/­_app/­core/­api/­content.php120
9. Content get
…/­tdb.ca/­lhi-services.ca/­_app/­routes.php440
8. {closure}
<#unknown>0
7. call_user_func_array
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­Slim/­Router.php172
6. Slim\Router dispatch
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­Slim/­Slim.php1290
5. Slim\Slim call
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­Slim/­Middleware/­Flash.php86
4. Slim\Middleware\Flash call
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­Slim/­Middleware/­MethodOverride.php94
3. Slim\Middleware\MethodOverride call
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­Zeuxisoo/­Whoops/­Provider/­Slim/­WhoopsMiddleware.php71
2. Zeuxisoo\Whoops\Provider\Slim\WhoopsMiddleware call
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­Slim/­Middleware/­PrettyExceptions.php67
1. Slim\Middleware\PrettyExceptions call
…/­tdb.ca/­lhi-services.ca/­_app/­vendor/­Slim/­Slim.php1174
0. Slim\Slim run
…/­tdb.ca/­lhi-services.ca/­index.php68

ErrorException

Array to string conversion

 
        if (isset($Element['text']))
        {
            $markup .= '>';
 
            if (isset($Element['handler']))
            {
                $markup .= $this->$Element['handler']($Element['text']);
            }
            else
 
        if (isset($Element['text']))
        {
            $markup .= '>';
 
            if (isset($Element['handler']))
            {
                $markup .= $this->$Element['handler']($Element['text']);
            }
            else
            if (is_string($Element)) # because of Markup
            {
                $markup .= $Element;
 
                continue;
            }
 
            $markup .= $this->element($Element);
        }
 
 
        $Elements []= $CurrentBlock['element'];
 
        unset($Elements[0]);
 
        # ~
 
        $markup = $this->elements($Elements);
 
        # ~
        # remove surrounding line breaks
        $text = trim($text, "\n");
 
        # split text into lines
        $lines = explode("\n", $text);
 
        # iterate through lines to identify blocks
        $markup = $this->lines($lines);
 
        # trim line breaks
    }
 
    #
    # ~
 
    function text($text)
    {
        $markup = parent::text($text);
 
        # merge consecutive dl elements
 
                self::$parsers['markdown'] = $parser;
            }
        }
 
        // parse for markdown
        if (strtolower(Config::get('markdown_parser', 'standard')) === "parsedown") {
            $result = self::$parsers['markdown']->text($string);
        } else {
            $result = self::$parsers['markdown']->transform($string);
    public static function transform($content, $content_type=NULL) {
        $content_type = Helper::pick($content_type, Config::getContentType());
 
        // render HTML from the given $content_type
        switch (strtolower($content_type)) {
            case "markdown":
            case "md":
                $content = Parse::markdown($content);
                break;
 
 
        $parse_order = Config::getParseOrder();
 
        if ($parse_order[0] == 'tags') {
            $output = Parse::template($template_data, $data);
            $output = self::transform($output, $type);
        } else {
            $output = self::transform($template_data, $type);
            $output = Parse::template($output, $data);
        }
                    // content file exists
                    if ($content_file && File::exists($content_file)) {
                        // make this
                        $raw_file  = substr(File::get($content_file), 3);
                        $divide    = strpos($raw_file, "\n---");
 
                        $item_content['content_raw']  = trim(substr($raw_file, $divide + 4));
                        $item_content['content']      = Content::parse($item_content['content_raw'], $item);
                    }
 
     * @return array
     */
    public function get($parse_content=true, $supplement=true)
    {
        if ($supplement) {
            $this->supplement();
        }
        $this->prepare($parse_content);
        return $this->content;
    }
    public static function get($url, $parse_content=true, $supplement=true)
    {
        $hash = Debug::markStart('content', 'getting');
        $url_hash = Helper::makeHash($url, $parse_content, $supplement);
        
        if (!isset(self::$fetched_content[$url_hash])) {
            $content_set  = ContentService::getContentByURL($url);
            $content      = $content_set->get($parse_content, $supplement);
            self::$fetched_content[$url_hash] = (isset($content[0])) ? $content[0] : array();
        }
                $more   = 'Visitor came directly to this page and may have typed the URL incorrectly.';
                $aspect = 'visitor';
            }
 
            Log::error("404 - Page not found. " . $more, $aspect, "content");
        }
 
        $data          = Content::get(Path::tidy(Config::getSiteRoot() . "/404"));
        $template_list = array('404');
        $response_code = 404;
<#unknown>
 
        //Invoke middleware
        foreach ($route->getMiddleware() as $mw) {
            call_user_func_array($mw, array($route));
        }
 
        //Invoke callable
        call_user_func_array($route->getCallable(), array_values($route->getParams()));
 
        return true;
            ob_start();
            $this->applyHook('slim.before.router');
            $dispatched = false;
            $matchedRoutes = $this->router->getMatchedRoutes($this->request->getMethod(), $this->request->getResourceUri());
            foreach ($matchedRoutes as $route) {
                try {
                    $this->applyHook('slim.before.dispatch');
                    $dispatched = $this->router->dispatch($route);
                    $this->applyHook('slim.after.dispatch');
                    if ($dispatched) {
    {
        //Read flash messaging from previous request if available
        $this->loadMessages();
 
        //Prepare flash messaging for current request
        $env = $this->app->environment();
        $env['slim.flash'] = $this;
        $this->next->call();
        $this->save();
    }
            $req = new \Slim\Http\Request($env);
            $method = $req->post($this->settings['key']);
            if ($method) {
                $env['slim.method_override.original_method'] = $env['REQUEST_METHOD'];
                $env['REQUEST_METHOD'] = strtoupper($method);
            }
        }
        $this->next->call();
    }
}
			$app->config('whoops', new Run);
			$app->config('whoops')->pushHandler($app->config('whoops.error_page_handler'));
			$app->config('whoops')->pushHandler($app->config('whoops.error_json_handler'));
			$app->config('whoops')->pushHandler($app->config('whoops.slim_info_handler'));
			$app->error(array($app->config('whoops'), Run::EXCEPTION_HANDLER));
		}
 
		$this->next->call();
	}
}
 
    /**
     * Call
     */
    public function call()
    {
        try {
            $this->next->call();
        } catch (\Exception $e) {
            $env = $this->app->environment();
    {
        set_error_handler(array('\Slim\Slim', 'handleErrors'));
 
        //Apply final outer middleware layers
        $this->add(new \Slim\Middleware\PrettyExceptions());
 
        //Invoke middleware and application stack
        $this->middleware[0]->call();
 
        //Fetch status, header, and body
| All the heavy initialization and configuration happens right here.
| Let's get going!
|
*/
 
$app = require_once BASE_PATH . '/_app/start.php';
 
$app->run();
 
Key Value
Charset
Locale <none>
Application Class Slim\Slim
Route Name <none>
Route Pattern /(:segments+)
Route Middleware <none>
Key Value
URI
Request URI /news-and-events/naboc-national-aboriginal-business-opportunities-conference
Path /news-and-events/naboc-national-aboriginal-business-opportunities-conference
Query String <none>
HTTP Method GET
Script Name
Base URL https://lhi-services.ca
Scheme https
Port 443
Host lhi-services.ca
Key Value
USER tdbcafir
HOME /var/www/vhosts/tdb.ca
SCRIPT_NAME /index.php
REQUEST_URI /news-and-events/naboc-national-aboriginal-business-opportunities-conference
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /news-and-events/naboc-national-aboriginal-business-opportunities-conference
REMOTE_PORT 34546
SCRIPT_FILENAME /var/www/vhosts/tdb.ca/lhi-services.ca/index.php
SERVER_ADMIN root@localhost
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/tdb.ca/lhi-services.ca
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /var/www/vhosts/tdb.ca/lhi-services.ca
REMOTE_ADDR 3.80.173.25
SERVER_PORT 443
SERVER_ADDR 199.103.62.56
SERVER_NAME lhi-services.ca
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_REFERER http://lhi-services.ca/news-and-events/naboc-national-aboriginal-business-opportunities-conference
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_ACCEL_INTERNAL /internal-nginx-static-location
HTTP_X_REAL_IP 3.80.173.25
HTTP_HOST lhi-services.ca
proxy-nokeepalive 1
HTTPS on
BASE /
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY 0
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY 0
PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
SCRIPT_URI https://lhi-services.ca/news-and-events/naboc-national-aboriginal-business-opportunities-conference
SCRIPT_URL /news-and-events/naboc-national-aboriginal-business-opportunities-conference
UNIQUE_ID ZgbUcpYnRqdIAjR4lh@cpgAAANg
REDIRECT_STATUS 200
REDIRECT_HTTPS on
REDIRECT_BASE /
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY 0
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY 0
REDIRECT_PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REDIRECT_SCRIPT_URI https://lhi-services.ca/news-and-events/naboc-national-aboriginal-business-opportunities-conference
REDIRECT_SCRIPT_URL /news-and-events/naboc-national-aboriginal-business-opportunities-conference
REDIRECT_UNIQUE_ID ZgbUcpYnRqdIAjR4lh@cpgAAANg
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711723634.6378
REQUEST_TIME 1711723634
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\JsonResponseHandler
2. Whoops\Handler\CallbackHandler