Warning: file_get_contents(/mnt/target04/862551/www.btforasthma.com/web/content/_cache/_app/content/content.php): failed to open stream: Permission denied in /mnt/target04/862551/www.btforasthma.com/web/content/_app/core/api/file.php on line 54
Whoops! There was an error
16. ErrorException
…/­web/­content/­_app/­core/­api/­file.php54
15. Slim\Slim handleErrors
<#unknown>0
14. file_get_contents
…/­web/­content/­_app/­core/­api/­file.php54
13. File get
…/­web/­content/­_app/­core/­content/­contentservice.php30
12. ContentService loadCache
…/­web/­content/­_app/­core/­content/­contentservice.php117
11. ContentService getContent
…/­web/­content/­_app/­core/­content/­contentservice.php372
10. ContentService getContentByURL
…/­web/­content/­_app/­core/­api/­content.php119
9. Content get
…/­web/­content/­_app/­routes.php343
8. {closure}
<#unknown>0
7. call_user_func_array
…/­web/­content/­_app/­vendor/­Slim/­Router.php172
6. Slim\Router dispatch
…/­web/­content/­_app/­vendor/­Slim/­Slim.php1290
5. Slim\Slim call
…/­web/­content/­_app/­vendor/­Slim/­Middleware/­Flash.php86
4. Slim\Middleware\Flash call
…/­web/­content/­_app/­vendor/­Slim/­Middleware/­MethodOverride.php94
3. Slim\Middleware\MethodOverride call
…/­web/­content/­_app/­vendor/­Zeuxisoo/­Whoops/­Provider/­Slim/­WhoopsMiddleware.php71
2. Zeuxisoo\Whoops\Provider\Slim\WhoopsMiddleware call
…/­web/­content/­_app/­vendor/­Slim/­Middleware/­PrettyExceptions.php67
1. Slim\Middleware\PrettyExceptions call
…/­web/­content/­_app/­vendor/­Slim/­Slim.php1174
0. Slim\Slim run
…/­web/­content/­index.php68

ErrorException

file_get_contents(/mnt/target04/862551/www.btforasthma.com/web/content/_cache/_app/content/content.php): failed to open stream: Permission denied

     * @param  mixed   $default  Default value if path is not found or content cannot be loaded
     * @return string
     */
    public static function get($path, $default = null)
    {
        if (File::exists($path)) {
            Debug::increment('files', 'opened');
            return file_get_contents($path);
        } else {
            return Helper::resolveValue($default);
<#unknown>
     * @param  mixed   $default  Default value if path is not found or content cannot be loaded
     * @return string
     */
    public static function get($path, $default = null)
    {
        if (File::exists($path)) {
            Debug::increment('files', 'opened');
            return file_get_contents($path);
        } else {
            return Helper::resolveValue($default);
    public static function loadCache()
    {
        if (self::$cache_loaded) {
            return;
        }
 
        self::$cache_loaded = true;
        self::$cache = unserialize(File::get(Path::tidy(BASE_PATH . "/_cache/_app/content/content.php")));
 
        if (!is_array(self::$cache)) {
     * Gets cached content for one page based on a given URL
     *
     * @param string  $url  URL of content to load
     * @return array
     */
    public static function getContent($url)
    {
        self::loadCache();
        if (!self::isContent($url)) {
            return array();
     * Gets cached content by URL
     *
     * @param string  $url  URL to use
     * @return ContentSet
     */
    public static function getContentByURL($url)
    {
        $content = ContentService::getContent($url);
        $content = (count($content)) ? array($content) : $content;
        return new ContentSet($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();
            $data = $route + $data;
        }
 
        $template_list = array($template);
        $content_found = true;
 
    // URL found in the cache
    } elseif ($data = Content::get($complete_current_url)) {
        $add_prev_next   = true;
        $page            = basename($path);
<#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 /find-a-clinic
Path /find-a-clinic
Query String <none>
HTTP Method GET
Script Name
Base URL http://www.btforasthma.com
Scheme http
Port 80
Host www.btforasthma.com
Key Value
REDIRECT_UNIQUE_ID VEputQq7@WcAACmycCwAAAAY
REDIRECT_SCRIPT_URL /find-a-clinic
REDIRECT_SCRIPT_URI http://www.btforasthma.com/find-a-clinic
REDIRECT_PHP_DOCUMENT_ROOT /mnt/target04/862551/www.btforasthma.com/web/content
REDIRECT_STATUS 200
UNIQUE_ID VEputQq7@WcAACmycCwAAAAY
SCRIPT_URL /find-a-clinic
SCRIPT_URI http://www.btforasthma.com/find-a-clinic
PHP_DOCUMENT_ROOT /mnt/target04/862551/www.btforasthma.com/web/content
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_X_FORWARDED_FOR 23.22.204.36
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-us,en-gb,en;q=0.7,*;q=0.3
HTTP_HOST www.btforasthma.com
HTTP_X_MOSSO_DT PHP54-1
HTTP_X_CLUSTER_CLIENT_IP 23.22.204.36
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache/2.2 Server at www.btforasthma.com Port 80</address>
SERVER_SOFTWARE Apache/2.2
SERVER_NAME www.btforasthma.com
SERVER_ADDR 10.187.249.103
SERVER_PORT 80
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /mnt/target04/862551/www.btforasthma.com/web/content/index.php
REMOTE_PORT 12041
REDIRECT_URL /find-a-clinic
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /find-a-clinic
SCRIPT_NAME /index.php
DOCUMENT_ROOT /mnt/target04/862551/www.btforasthma.com/web/content
REMOTE_ADDR 23.22.204.36
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1414164149.321
REQUEST_TIME 1414164149
argv Array ( )
argc 0
empty
empty
empty
empty
empty
Key Value
SHELL /bin/bash
USER root
PATH /sbin:/usr/sbin:/bin:/usr/bin
PWD /home/brian.rinaldi
LANG C
SHLVL 2
_ /usr/sbin/httpd.itk
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\JsonResponseHandler
2. Whoops\Handler\CallbackHandler