Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /srv/users/serverpilot/apps/chatnovacopper/public/_app/vendor/PHPMailer/PHPMailerAutoload.php on line 45

Warning: session_cache_limiter(): Cannot change cache limiter when headers already sent in /srv/users/serverpilot/apps/chatnovacopper/public/_app/start.php on line 109

Warning: session_start(): Cannot start session when headers already sent in /srv/users/serverpilot/apps/chatnovacopper/public/_app/start.php on line 110
Whoops! There was an error
16. ErrorException
…/­chatnovacopper/­public/­_add-ons/­webhooks/­hooks.webhooks.php3
15. Slim\Slim handleErrors
<#unknown>0
14. header
…/­chatnovacopper/­public/­_add-ons/­webhooks/­hooks.webhooks.php3
13. require_once
…/­chatnovacopper/­public/­_app/­core/­functions.php249
12. autoload_statamic
<#unknown>0
11. spl_autoload_call
<#unknown>0
10. is_callable
…/­chatnovacopper/­public/­_app/­core/­api/­hook.php67
9. Hook run
…/­chatnovacopper/­public/­_app/­routes.php171
8. {closure}
<#unknown>0
7. call_user_func_array
…/­chatnovacopper/­public/­_app/­vendor/­Slim/­Router.php172
6. Slim\Router dispatch
…/­chatnovacopper/­public/­_app/­vendor/­Slim/­Slim.php1290
5. Slim\Slim call
…/­chatnovacopper/­public/­_app/­vendor/­Slim/­Middleware/­Flash.php86
4. Slim\Middleware\Flash call
…/­chatnovacopper/­public/­_app/­vendor/­Slim/­Middleware/­MethodOverride.php94
3. Slim\Middleware\MethodOverride call
…/­chatnovacopper/­public/­_app/­vendor/­Zeuxisoo/­Whoops/­Provider/­Slim/­WhoopsMiddleware.php71
2. Zeuxisoo\Whoops\Provider\Slim\WhoopsMiddleware call
…/­chatnovacopper/­public/­_app/­vendor/­Slim/­Middleware/­PrettyExceptions.php67
1. Slim\Middleware\PrettyExceptions call
…/­chatnovacopper/­public/­_app/­vendor/­Slim/­Slim.php1174
0. Slim\Slim run
…/­chatnovacopper/­public/­index.php70

ErrorException

Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/chatnovacopper/public/_app/vendor/PHPMailer/PHPMailerAutoload.php:45)

<?php
 
header("Access-Control-Allow-Origin: *");
class Hooks_webhooks extends Hooks
{
 
    public function control_panel__add_to_foot()
    {
        return $this->js->link('webhooks');
    }
<#unknown>
<?php
 
header("Access-Control-Allow-Origin: *");
class Hooks_webhooks extends Hooks
{
 
    public function control_panel__add_to_foot()
    {
        return $this->js->link('webhooks');
    }
            return true;
        } elseif (strpos($class, "_") !== false) {
            list($addon_type, $addon_name) = explode("_", $class, 2);
            
            if (!isset($addon_types[$addon_type])) {
                continue;
            } elseif (file_exists($location . $addon_name . "/" . $addon_types[$addon_type] . "." . $addon_name . ".php")) {
                require_once $location . $addon_name . "/" . $addon_types[$addon_type] . "." . $addon_name . ".php";
                return true;
            }
<#unknown>
<#unknown>
        if (self::$hook_files) {
            foreach (self::$hook_files as $file) {
                $name = substr($file, strrpos($file, '/') + 7);
                $name = substr($name, 0, strlen($name) - 4);
    
                $class_name = 'Hooks_' . $name;
                
                if (!is_callable(array($class_name, $namespace . '__' . $hook), false)) {
                    continue;
                }
    | Hook: Routes Before
    |--------------------------------------------------------------------------
    |
    | Useful for running your own route. Remember to use $app->pass() if
    | you're not doing anything with the current request.
    |
    */
    Hook::run('_routes', 'before');
 
    $requesting_xml = false;
<#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 /
Path /
Query String <none>
HTTP Method GET
Script Name
Base URL https://chat.novacopper.com
Scheme https
Port 443
Host chat.novacopper.com
Key Value
TMP /srv/users/serverpilot/tmp/chatnovacopper
TEMP /srv/users/serverpilot/tmp/chatnovacopper
TMPDIR /srv/users/serverpilot/tmp/chatnovacopper
PATH /sbin:/usr/sbin:/bin:/usr/bin
USER serverpilot
HOME /srv/users/serverpilot
SCRIPT_NAME /index.php
REQUEST_URI /
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 60636
SCRIPT_FILENAME /srv/users/serverpilot/apps/chatnovacopper/public/index.php
SERVER_ADMIN webmaster@
CONTEXT_DOCUMENT_ROOT /srv/users/serverpilot/apps/chatnovacopper/public
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /srv/users/serverpilot/apps/chatnovacopper/public
REMOTE_ADDR 54.156.82.247
SERVER_PORT 443
SERVER_ADDR 127.0.0.1
SERVER_NAME chat.novacopper.com
SERVER_SOFTWARE Apache/2.4.28 (Unix) OpenSSL/1.0.1f
SERVER_SIGNATURE
LD_LIBRARY_PATH /opt/sp/apache/lib
HTTP_IF_MODIFIED_SINCE Mon, 25 Sep 2017 18:30:48 GMT
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_CONNECTION close
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_SSL on
HTTP_X_FORWARDED_FOR 54.156.82.247
HTTP_HOST chat.novacopper.com
SCRIPT_URI https://chat.novacopper.com/
SCRIPT_URL /
HTTPS on
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1511198210.6967
REQUEST_TIME 1511198210
argv Array ( )
argc 0
empty
empty
empty
empty
empty
Key Value
TMP /srv/users/serverpilot/tmp/chatnovacopper
TEMP /srv/users/serverpilot/tmp/chatnovacopper
TMPDIR /srv/users/serverpilot/tmp/chatnovacopper
PATH /sbin:/usr/sbin:/bin:/usr/bin
USER serverpilot
HOME /srv/users/serverpilot
SCRIPT_NAME /index.php
REQUEST_URI /
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 60636
SCRIPT_FILENAME /srv/users/serverpilot/apps/chatnovacopper/public/index.php
SERVER_ADMIN webmaster@
CONTEXT_DOCUMENT_ROOT /srv/users/serverpilot/apps/chatnovacopper/public
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /srv/users/serverpilot/apps/chatnovacopper/public
REMOTE_ADDR 54.156.82.247
SERVER_PORT 443
SERVER_ADDR 127.0.0.1
SERVER_NAME chat.novacopper.com
SERVER_SOFTWARE Apache/2.4.28 (Unix) OpenSSL/1.0.1f
SERVER_SIGNATURE
LD_LIBRARY_PATH /opt/sp/apache/lib
HTTP_IF_MODIFIED_SINCE Mon, 25 Sep 2017 18:30:48 GMT
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_CONNECTION close
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_SSL on
HTTP_X_FORWARDED_FOR 54.156.82.247
HTTP_HOST chat.novacopper.com
SCRIPT_URI https://chat.novacopper.com/
SCRIPT_URL /
HTTPS on
FCGI_ROLE RESPONDER
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\JsonResponseHandler
2. Whoops\Handler\CallbackHandler