error code 500

Senpai

Well-known member
hey guys im trying to make a custom page and this is the error i get
The gam3on.com page isn’t working
gam3on.com is currently unable to handle this request.

500

http://gam3on.com/styles/demo.php


and this is the code im using to make my custom page

Code:
<?php
error_reporting(E_ALL & ~E_NOTICE & ~8192);

define('XF_ROOT', '/my/path/to/xf'); // set this!
define('TIMENOW', time());
define('SESSION_BYPASS', false); // if true: logged in user info and sessions are not needed

require_once(XF_ROOT . '/library/XenForo/Autoloader.php');

XenForo_Autoloader::getInstance()->setupAutoloader(XF_ROOT . '/library');

XenForo_Application::initialize(XF_ROOT . '/library', XF_ROOT);
XenForo_Application::set('page_start_time', TIMENOW);
XenForo_Application::disablePhpErrorHandler();
XenForo_Application::setDebugMode(false);

if (!SESSION_BYPASS)
{
    XenForo_Session::startPublicSession();

    $visitor = XenForo_Visitor::getInstance();

    if ($visitor->getUserId())
    {
        $userModel = XenForo_Model::create('XenForo_Model_User');
        $userinfo = $userModel->getFullUserById($visitor->getUserId());
    }
}

restore_error_handler();
restore_exception_handler();
 
Top Bottom