Whoops! There was an error.


Leaf \ Exceptions \ ErrorException (E_NOTICE)
Undefined variable: config_userid Leaf\Exceptions\ErrorException thrown with message "Undefined variable: config_userid" Stacktrace: #10 Leaf\Exceptions\ErrorException in /www/wwwroot/contract-miner.com/build/global/page-subnav.php:3 #9 Leaf\Exception\Run:handleError in /www/wwwroot/contract-miner.com/build/global/page-subnav.php:3 #8 require_once in /www/wwwroot/contract-miner.com/build/global/page-navbar.php:252 #7 require_once in /www/wwwroot/contract-miner.com/build/pages/service/media/blogs/display-post.php:45 #6 require_once in /www/wwwroot/contract-miner.com/routes/media.php:28 #5 {closure} in /www/wwwroot/contract-miner.com/vendor/leafs/router/src/Router/Core.php:466 #4 call_user_func_array in /www/wwwroot/contract-miner.com/vendor/leafs/router/src/Router/Core.php:466 #3 Leaf\Router\Core:invoke in /www/wwwroot/contract-miner.com/vendor/leafs/router/src/Router/Core.php:450 #2 Leaf\Router\Core:handle in /www/wwwroot/contract-miner.com/vendor/leafs/router/src/Router/Core.php:381 #1 Leaf\Router\Core:run in /www/wwwroot/contract-miner.com/vendor/leafs/leaf/src/App.php:430 #0 Leaf\App:run in /www/wwwroot/contract-miner.com/index.php:346
Stack frames (11)
10
Leaf\Exceptions\ErrorException
/build/global/page-subnav.php3
9
Leaf\Exception\Run handleError
/build/global/page-subnav.php3
8
require_once
/build/global/page-navbar.php252
7
require_once
/build/pages/service/media/blogs/display-post.php45
6
require_once
/routes/media.php28
5
{closure}
/vendor/leafs/router/src/Router/Core.php466
4
call_user_func_array
/vendor/leafs/router/src/Router/Core.php466
3
Leaf\Router\Core invoke
/vendor/leafs/router/src/Router/Core.php450
2
Leaf\Router\Core handle
/vendor/leafs/router/src/Router/Core.php381
1
Leaf\Router\Core run
/vendor/leafs/leaf/src/App.php430
0
Leaf\App run
/index.php346
/www/wwwroot/contract-miner.com/build/global/page-subnav.php
<?php
// Get count of pending offers
$pendingOfferCountStmtSubnav = $conn->query("SELECT count(*) FROM offers_completed WHERE userid='$config_userid' AND offer_status=1");
$pendingOfferCountSubnav = $pendingOfferCountStmtSubnav->fetchColumn();
?>

<style type="text/css">
.subnav {
  background-color: #1a202c;
  border-bottom: 2px solid transparent;
  border-color: #F48020;
}

.subnavLink {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease-in-out;
  font-weight: 500;
  margin-right: 5px;
  padding-bottom: 11px;
  padding-right: 5px;
  padding-left: 5px;
}

.subnavLink:hover,
.subnavLink.active {
  color: #4299e1;
  border-color: #4299e1;
}
</style>

<div class="subnav pt-[1px] text-center text-base h-[46px] hidden md:block mt-[10px]">
  <div class="mt-[8px]">
    <?php
    $menu_drop = '<svg class="w-3 h-3" aria-hidden="true" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="https://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>';

    $breadcrumbs = [
      '/rp-games' => [
        ['text' => 'RP Games', 'url' => __LINK_RPG_OVERVIEW__],
/www/wwwroot/contract-miner.com/build/global/page-subnav.php
<?php
// Get count of pending offers
$pendingOfferCountStmtSubnav = $conn->query("SELECT count(*) FROM offers_completed WHERE userid='$config_userid' AND offer_status=1");
$pendingOfferCountSubnav = $pendingOfferCountStmtSubnav->fetchColumn();
?>

<style type="text/css">
.subnav {
  background-color: #1a202c;
  border-bottom: 2px solid transparent;
  border-color: #F48020;
}

.subnavLink {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease-in-out;
  font-weight: 500;
  margin-right: 5px;
  padding-bottom: 11px;
  padding-right: 5px;
  padding-left: 5px;
}

.subnavLink:hover,
.subnavLink.active {
  color: #4299e1;
  border-color: #4299e1;
}
</style>

<div class="subnav pt-[1px] text-center text-base h-[46px] hidden md:block mt-[10px]">
  <div class="mt-[8px]">
    <?php
    $menu_drop = '<svg class="w-3 h-3" aria-hidden="true" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="https://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>';

    $breadcrumbs = [
      '/rp-games' => [
        ['text' => 'RP Games', 'url' => __LINK_RPG_OVERVIEW__],
/www/wwwroot/contract-miner.com/build/global/page-navbar.php
                </li>
                
                <!--<a class="dropdown-navigation-link" href="<?=__LINK_CITY_HOME_APP_FAUCET_LIST__;?>">Faucet List</a>-->
                */ ?>
              </ul>
            </div>
          </div>
          <?php
        } else {
          ?>
          <a class="button secondary px-2 mr-1 mt-[4px]" href="<?=__LINK_ACCOUNT_LOGIN__;?>">Login</a>
          <a class="button primary px-2 mt-[4px]" href="<?=__LINK_ACCOUNT_SIGNUP__;?>">Signup</a>
          <?php
        }
        ?>
      </div>
    </div>
  </div>
 
  <?php require_once($_SERVER["DOCUMENT_ROOT"] . '/build/global/page-subnav.php'); ?>
</nav>
 
<?php
include $_SERVER["DOCUMENT_ROOT"] . '/build/ads/728x90.php'; # Main Ads (Ref files included)
include $_SERVER["DOCUMENT_ROOT"] . '/build/ads/200x200.php';
include $_SERVER["DOCUMENT_ROOT"] . '/build/ads/468x60.php';
include $_SERVER["DOCUMENT_ROOT"] . '/build/ads/160x600.php';
?>
 
<div class="pt-1 pl-1 pr-1 mt-[60px] md:mt-[110px] text-center" id="cm_dashboard_navbar">
  <?php
  if(isset($_SESSION['username'])) {
    ?>
    <div class="max-w-[1200px]" style="margin:0 auto;">
      <?php
      // We check to see if a Global Message is active
      $gm_check_query=$conn->prepare("SELECT global_message, global_last_updated, global_enabled, global_alert FROM mod_settings WHERE global_enabled='1'");
      $gm_check_query->execute();
      if($gm_check_query->rowCount() > 0) {
        $gm_check_display = $gm_check_query->fetch(PDO::FETCH_ASSOC);
/www/wwwroot/contract-miner.com/build/pages/service/media/blogs/display-post.php

    // We add to the page views
    $stmt3 = $conn->prepare("UPDATE blog_posts SET page_views = page_views + 1 WHERE blog_id = :blog_post_id");
    $stmt3->bindParam(':blog_post_id', $blog_post_id);
    $stmt3->execute();

    // Create and display page
    ?>
<!DOCTYPE html>
<html lang="en">
<head>
  <?php require_once(__BUILD_COMMON_CSS__); ?>
  <title><?= $blog_post_title; ?> - Blog Post</title>
  <META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
  <meta name="description" content="<?= $blog_post_title; ?>">
</head>
<body>
  <?php
  require_once(__BUILD_PAGE_SIDEBAR__);
  require_once(__BUILD_PAGE_NAVBAR__);
  ?>
  <div class="w-full" style="margin:0 auto;">
    <div id="cm_content">
      <div class="max-w-[1300px]" style="margin:0 auto;">
        <div class="widget-box no-padding text-center mb-1" style="padding: 5px;">
          <h4 style="margin-top: 5px;"><?= $blog_post_title; ?></h4>
        </div>
        <div class="text-center">
          <?= $ads_468x60_display_5; ?>
        </div>
        <div class="row">
          <div class="col-lg-2 col-md-2 col-sm-3 col-xs-0 text-center">
            <?=$ads_160x600_display_1;?>
          </div>
          <div class="col-lg-8 col-md-8 col-sm-9 col-xs-12">
            <div class="widget-box no-padding text-center mb-1">
              <div class="p-1">
                <?= $blog_post_info; ?><br />
                <div class="text-center">
                  <?= $ads_468x60_display_4; ?>
/www/wwwroot/contract-miner.com/routes/media.php
    require_once(__WEBSITE_CORE_ROOT__ . '/core/common_globals.php');

    $news_post_id = htmlspecialchars($news_post_id);

    require_once(__WEBSITE_CORE_ROOT__ . '/build/pages/service/media/news/news-post.php');
  } else { header('Location: /'); exit; }
});

app()->match('GET|POST', '/blog', function () { # Blog Overview
  require_once(__WEBSITE_CORE_ROOT__ . '/core/common_globals.php');
  require_once(__WEBSITE_CORE_ROOT__ . '/build/pages/service/media/blogs/overview.php');
});

app()->all('/blog/{blog_post_id}', function ($blog_post_id) { # Display Blog Post
  if(!empty($blog_post_id)) {
    require_once(__WEBSITE_CORE_ROOT__ . '/core/common_globals.php');

    $blog_post_id = htmlspecialchars($blog_post_id);

    require_once(__WEBSITE_CORE_ROOT__ . '/build/pages/service/media/blogs/display-post.php');
  } else { header('Location: /'); exit; }
});
?>
/www/wwwroot/contract-miner.com/vendor/leafs/router/src/Router/Core.php
                }, $matches, array_keys($matches));
 
                // Call the handling function with the URL parameters if the desired input is callable
                static::invoke($route['handler'], $params);
                ++$numHandled;
 
                if ($quitAfterRun) {
                    break;
                }
            }
        }
 
        return $numHandled;
    }
 
    private static function invoke($handler, $params = [])
    {
        if (is_callable($handler)) {
            call_user_func_array(
                $handler,
                $params
            );
        }
        // If not, check the existence of special parameters
        elseif (stripos($handler, '@') !== false) {
            list($controller, $method) = explode('@', $handler);
 
            if (!class_exists($controller)) {
                trigger_error("$controller not found. Cross-check the namespace if you're sure the file exists");
            }
 
            if (!method_exists($controller, $method)) {
                trigger_error("$method method not found in $controller");
            }
 
            // First check if is a static method, directly trying to invoke it.
            // If isn't a valid static method, we will try as a normal method invocation.
            if (call_user_func_array([new $controller(), $method], $params) === false) {
                // Try to call the method as a non-static method. (the if does nothing, only avoids the notice)
                if (forward_static_call_array([$controller, $method], $params) === false);
/www/wwwroot/contract-miner.com/vendor/leafs/router/src/Router/Core.php
                }, $matches, array_keys($matches));
 
                // Call the handling function with the URL parameters if the desired input is callable
                static::invoke($route['handler'], $params);
                ++$numHandled;
 
                if ($quitAfterRun) {
                    break;
                }
            }
        }
 
        return $numHandled;
    }
 
    private static function invoke($handler, $params = [])
    {
        if (is_callable($handler)) {
            call_user_func_array(
                $handler,
                $params
            );
        }
        // If not, check the existence of special parameters
        elseif (stripos($handler, '@') !== false) {
            list($controller, $method) = explode('@', $handler);
 
            if (!class_exists($controller)) {
                trigger_error("$controller not found. Cross-check the namespace if you're sure the file exists");
            }
 
            if (!method_exists($controller, $method)) {
                trigger_error("$method method not found in $controller");
            }
 
            // First check if is a static method, directly trying to invoke it.
            // If isn't a valid static method, we will try as a normal method invocation.
            if (call_user_func_array([new $controller(), $method], $params) === false) {
                // Try to call the method as a non-static method. (the if does nothing, only avoids the notice)
                if (forward_static_call_array([$controller, $method], $params) === false);
/www/wwwroot/contract-miner.com/vendor/leafs/router/src/Router/Core.php
            $route['pattern'] = preg_replace('/\/{(.*?)}/', '/(.*?)', $route['pattern']);
 
            // we have a match!
            if (preg_match_all('#^' . $route['pattern'] . '$#', $uri, $matches, PREG_OFFSET_CAPTURE)) {
                // Rework matches to only contain the matches, not the orig string
                $matches = array_slice($matches, 1);
 
                // Extract the matched URL parameters (and only the parameters)
                $params = array_map(function ($match, $index) use ($matches) {
                    // We have a following parameter: take the substring from the current param position until the next one's position (thank you PREG_OFFSET_CAPTURE)
                    if (isset($matches[$index + 1]) && isset($matches[$index + 1][0]) && is_array($matches[$index + 1][0])) {
                        return trim(substr($match[0][0], 0, $matches[$index + 1][0][1] - $match[0][1]), '/');
                    }
 
                    // We have no following parameters: return the whole lot
                    return isset($match[0][0]) ? trim($match[0][0], '/') : null;
                }, $matches, array_keys($matches));
 
                // Call the handling function with the URL parameters if the desired input is callable
                static::invoke($route['handler'], $params);
                ++$numHandled;
 
                if ($quitAfterRun) {
                    break;
                }
            }
        }
 
        return $numHandled;
    }
 
    private static function invoke($handler, $params = [])
    {
        if (is_callable($handler)) {
            call_user_func_array(
                $handler,
                $params
            );
        }
        // If not, check the existence of special parameters
/www/wwwroot/contract-miner.com/vendor/leafs/router/src/Router/Core.php
                $middleware[0]->call();
            }
        }
 
        static::callHook('router.before.route');
 
        static::$requestedMethod = \Leaf\Http\Request::getMethod();
 
        if (isset(static::$routeSpecificMiddleware[static::$requestedMethod])) {
            static::handle(static::$routeSpecificMiddleware[static::$requestedMethod]);
        }
 
        static::callHook('router.before.dispatch');
 
        $numHandled = 0;
 
        if (isset(static::$routes[static::$requestedMethod])) {
            $numHandled = static::handle(
                static::$routes[static::$requestedMethod],
                true
            );
        }
 
        static::callHook('router.after.dispatch');
 
        if ($numHandled === 0) {
            if (!static::$notFoundHandler) {
                if (class_exists('Leaf\App')) {
                    static::$notFoundHandler = function () {
                        \Leaf\Exception\General::default404();
                    };
                } else {
                    static::$notFoundHandler = function () {
                        echo 'Route not found';
                    };
                }
            }
 
            static::invoke(static::$notFoundHandler);
        }
/www/wwwroot/contract-miner.com/vendor/leafs/leaf/src/App.php
        if (class_exists('Leaf\Http\Cors')) {
            Http\Cors::config($options);
        } else {
            trigger_error('Cors module not found! Run `composer require leafs/cors` to install the CORS module. This is required to configure CORS.');
        }
    }
 
    /**
     * @inheritdoc
     */
    public static function run(?callable $callback = null)
    {
        if (class_exists('Leaf\Eien\Server')) {
            server()
                ->wrap(function () use ($callback) {
                    parent::run($callback);
                })
                ->listen();
        } else {
            return parent::run($callback);
        }
    }
}
 
/www/wwwroot/contract-miner.com/index.php
 
/***** EVENTS ROUTER *****/
require_once(__WEBSITE_CORE_ROOT__ . '/routes/events.php'); # Events Router
 
 
require_once(__WEBSITE_CORE_ROOT__ . '/routes/userAuth.php'); # User Auth Route
 
 
require_once(__WEBSITE_CORE_ROOT__ . '/routes/user.php'); # User pages (Public Profile / Leaderboards)
 
 
/***** MEDIA ROUTER - BLOGS // NEWS *****/
require_once(__WEBSITE_CORE_ROOT__ . '/routes/media.php');
 
 
/***** SERVICE PAGES *****/
require_once(__WEBSITE_CORE_ROOT__ . '/routes/service.php');
 
 
app()->run(); # Run the router

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER www
HOME /home/www
HTTP_CF_IPCOUNTRY US
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 44.200.77.59
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_X_FORWARDED_PROTO https
HTTP_CF_RAY 86b6708f0ccf87a9-IAD
HTTP_X_FORWARDED_FOR 44.200.77.59
HTTP_ACCEPT_ENCODING gzip, br
HTTP_CONNECTION Keep-Alive
HTTP_HOST www.contract-miner.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME contract-miner.com
SERVER_PORT 80
SERVER_ADDR 167.86.93.111
REMOTE_PORT 41220
REMOTE_ADDR 162.158.78.124
SERVER_SOFTWARE nginx/1.19.8
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/contract-miner.com
DOCUMENT_URI /index.php
REQUEST_URI /blog/6237672f5db58
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/contract-miner.com/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711616529.9275
REQUEST_TIME 1711616529
empty
0. Leaf\Exception\Handler\PrettyPageHandler