Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /home/jasonmckinney/stock-site.com/_app/vendor/PHPMailer/PHPMailerAutoload.php on line 45

Warning: session_cache_limiter(): Cannot change cache limiter when headers already sent in /home/jasonmckinney/stock-site.com/_app/start.php on line 109

Warning: session_start(): Cannot start session when headers already sent in /home/jasonmckinney/stock-site.com/_app/start.php on line 110
Whoops! There was an error
20. ErrorException
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­erusev/­Parsedown.php985
19. Slim\Slim handleErrors
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­erusev/­Parsedown.php985
18. Parsedown element
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­erusev/­Parsedown.php294
17. Parsedown lines
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­erusev/­Parsedown.php45
16. Parsedown text
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­erusev/­ParsedownExtra.php39
15. ParsedownExtra text
…/­jasonmckinney/­stock-site.com/­_app/­core/­api/­parse.php66
14. Parse markdown
…/­jasonmckinney/­stock-site.com/­_app/­core/­api/­content.php84
13. Content transform
…/­jasonmckinney/­stock-site.com/­_app/­core/­api/­content.php62
12. Content parse
…/­jasonmckinney/­stock-site.com/­_app/­core/­content/­contentset.php833
11. ContentSet prepare
…/­jasonmckinney/­stock-site.com/­_app/­core/­content/­contentset.php1123
10. ContentSet get
…/­jasonmckinney/­stock-site.com/­_app/­core/­api/­content.php121
9. Content get
…/­jasonmckinney/­stock-site.com/­_app/­routes.php326
8. {closure}
<#unknown>0
7. call_user_func_array
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­Slim/­Router.php172
6. Slim\Router dispatch
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­Slim/­Slim.php1290
5. Slim\Slim call
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­Slim/­Middleware/­Flash.php86
4. Slim\Middleware\Flash call
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­Slim/­Middleware/­MethodOverride.php94
3. Slim\Middleware\MethodOverride call
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­Zeuxisoo/­Whoops/­Provider/­Slim/­WhoopsMiddleware.php71
2. Zeuxisoo\Whoops\Provider\Slim\WhoopsMiddleware call
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­Slim/­Middleware/­PrettyExceptions.php67
1. Slim\Middleware\PrettyExceptions call
…/­jasonmckinney/­stock-site.com/­_app/­vendor/­Slim/­Slim.php1174
0. Slim\Slim run
…/­jasonmckinney/­stock-site.com/­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
        # ~
 
        $markup = '';
 
        foreach ($Blocks as $Block)
        {
            $markup .= "\n";
            $markup .= isset($Block['markup']) ? $Block['markup'] : $this->element($Block['element']);
        }
 
        # 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();
        }
    
    // routes via routes.yaml
    if ($found_route) {
        $current_route = $found_route['data'];
 
        $route     = $current_route;
        $template  = $route;
        $data      = $parsed_route_data + Content::get($complete_current_url) + $app->config;
 
        if (is_array($route)) {
<#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 /about
Path /about
Query String <none>
HTTP Method GET
Script Name
Base URL http://stock-site.com
Scheme http
Port 80
Host stock-site.com
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CONTENT_LENGTH 0
SCRIPT_NAME /index.php
REQUEST_URI /about
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /about
REMOTE_PORT 40288
SCRIPT_FILENAME /home/jasonmckinney/stock-site.com/index.php
SERVER_ADMIN webmaster@stock-site.com
CONTEXT_DOCUMENT_ROOT /home/jasonmckinney/stock-site.com
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /home/jasonmckinney/stock-site.com
REMOTE_ADDR 3.231.220.225
SERVER_PORT 80
SERVER_ADDR 69.163.164.196
SERVER_NAME stock-site.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_CONNECTION close
HTTP_HOST stock-site.com
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Mon, 27 Jan 2020 10:11:42 CET
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
BASE /
DH_USER jasonmckinney
ds_id_28889427
dsid 28889427
SCRIPT_URI http://stock-site.com/about
SCRIPT_URL /about
UNIQUE_ID Xs1KS570yuDdE1RmIEhoEQAAAAQ
REDIRECT_STATUS 200
REDIRECT_BASE /
REDIRECT_DH_USER jasonmckinney
REDIRECT_ds_id_28889427
REDIRECT_dsid 28889427
REDIRECT_SCRIPT_URI http://stock-site.com/about
REDIRECT_SCRIPT_URL /about
REDIRECT_UNIQUE_ID Xs1KS570yuDdE1RmIEhoEQAAAAQ
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1590512203.4436
REQUEST_TIME 1590512203
empty
empty
empty
empty
empty
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CONTENT_LENGTH 0
SCRIPT_NAME /index.php
REQUEST_URI /about
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /about
REMOTE_PORT 40288
SCRIPT_FILENAME /home/jasonmckinney/stock-site.com/index.php
SERVER_ADMIN webmaster@stock-site.com
CONTEXT_DOCUMENT_ROOT /home/jasonmckinney/stock-site.com
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /home/jasonmckinney/stock-site.com
REMOTE_ADDR 3.231.220.225
SERVER_PORT 80
SERVER_ADDR 69.163.164.196
SERVER_NAME stock-site.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_CONNECTION close
HTTP_HOST stock-site.com
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Mon, 27 Jan 2020 10:11:42 CET
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
BASE /
DH_USER jasonmckinney
ds_id_28889427
dsid 28889427
SCRIPT_URI http://stock-site.com/about
SCRIPT_URL /about
UNIQUE_ID Xs1KS570yuDdE1RmIEhoEQAAAAQ
REDIRECT_STATUS 200
REDIRECT_BASE /
REDIRECT_DH_USER jasonmckinney
REDIRECT_ds_id_28889427
REDIRECT_dsid 28889427
REDIRECT_SCRIPT_URI http://stock-site.com/about
REDIRECT_SCRIPT_URL /about
REDIRECT_UNIQUE_ID Xs1KS570yuDdE1RmIEhoEQAAAAQ
FCGI_ROLE RESPONDER
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\JsonResponseHandler
2. Whoops\Handler\CallbackHandler