Illuminate \ View \ ViewException (E_ERROR)
Undefined array key "HTTP_ACCEPT_LANGUAGE" (View: /home/rgstech/ilmetal.com/app/view/frontend/themes/rgs-catalog/main.blade.php)
Previous exceptions
  • Undefined array key "HTTP_ACCEPT_LANGUAGE" (2)
Illuminate\View\ViewException thrown with message "Undefined array key "HTTP_ACCEPT_LANGUAGE" (View: /home/rgstech/ilmetal.com/app/view/frontend/themes/rgs-catalog/main.blade.php)" Stacktrace: #14 Illuminate\View\ViewException in /home/rgstech/ilmetal.com/app/helper/frontend-modal.php:85 #13 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/rgstech/ilmetal.com/vendor/illuminate/view/Engines/PhpEngine.php:60 #12 Whoops\Exception\ErrorException in /home/rgstech/ilmetal.com/app/helper/frontend-modal.php:85 #11 Whoops\Run:handleError in /home/rgstech/ilmetal.com/app/helper/frontend-modal.php:85 #10 chooseLang in /home/rgstech/ilmetal.com/app/view/frontend/themes/rgs-catalog/cache/0c3a6f76bf9e69df9b07fd949b71275d196422f5.php:2 #9 require in /home/rgstech/ilmetal.com/vendor/illuminate/filesystem/Filesystem.php:107 #8 Illuminate\Filesystem\Filesystem:Illuminate\Filesystem\{closure} in /home/rgstech/ilmetal.com/vendor/illuminate/filesystem/Filesystem.php:108 #7 Illuminate\Filesystem\Filesystem:getRequire in /home/rgstech/ilmetal.com/vendor/illuminate/view/Engines/PhpEngine.php:58 #6 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/rgstech/ilmetal.com/vendor/illuminate/view/Engines/CompilerEngine.php:61 #5 Illuminate\View\Engines\CompilerEngine:get in /home/rgstech/ilmetal.com/vendor/illuminate/view/View.php:139 #4 Illuminate\View\View:getContents in /home/rgstech/ilmetal.com/vendor/illuminate/view/View.php:122 #3 Illuminate\View\View:renderContents in /home/rgstech/ilmetal.com/vendor/illuminate/view/View.php:91 #2 Illuminate\View\View:render in /home/rgstech/ilmetal.com/app/view/frontend/mainpage.php:11 #1 require in /home/rgstech/ilmetal.com/app/controller/index.php:9 #0 require in /home/rgstech/ilmetal.com/index.php:24
Stack frames (15)
14
Illuminate\View\ViewException
/app/helper/frontend-modal.php85
13
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php60
12
Whoops\Exception\ErrorException
/app/helper/frontend-modal.php85
11
Whoops\Run handleError
/app/helper/frontend-modal.php85
10
chooseLang
/app/view/frontend/themes/rgs-catalog/cache/0c3a6f76bf9e69df9b07fd949b71275d196422f5.php2
9
require
/vendor/illuminate/filesystem/Filesystem.php107
8
Illuminate\Filesystem\Filesystem Illuminate\Filesystem\{closure}
/vendor/illuminate/filesystem/Filesystem.php108
7
Illuminate\Filesystem\Filesystem getRequire
/vendor/illuminate/view/Engines/PhpEngine.php58
6
Illuminate\View\Engines\PhpEngine evaluatePath
/vendor/illuminate/view/Engines/CompilerEngine.php61
5
Illuminate\View\Engines\CompilerEngine get
/vendor/illuminate/view/View.php139
4
Illuminate\View\View getContents
/vendor/illuminate/view/View.php122
3
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php91
2
Illuminate\View\View render
/app/view/frontend/mainpage.php11
1
require
/app/controller/index.php9
0
require
/index.php24
/home/rgstech/ilmetal.com/app/helper/frontend-modal.php
    if ($systemLang == '') {
        return "tr";
    }
    if ($systemLang != "tr") {
        return "en";
    } else {
        return "tr";
    }
}

function social()
{
    global $db;
    $social = $db->from('tbl_social')->where('s_status', 1)->all();
    return $social;
}//wio

function chooseLang()
{
    $systemLang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
    switch ($systemLang) {
        case "tr":
            $lang = "tr";
            break;
        case "en":
            $lang = "en";
            break;
        case "es":
            $lang = "es";
            break;
        case "fr":
            $lang = "fr";
            break;
        default:
            $lang = "tr";
    }
    if (!@$_COOKIE['lang'] && !get('lang')) {
        setcookie("lang", $lang, time() + (86400 * 30), "/");
        return $lang;
    } elseif (@get('lang')) {
/home/rgstech/ilmetal.com/vendor/illuminate/view/Engines/PhpEngine.php
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    protected function evaluatePath($path, $data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            $this->files->getRequire($path, $data);
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
        }
 
/home/rgstech/ilmetal.com/app/helper/frontend-modal.php
    if ($systemLang == '') {
        return "tr";
    }
    if ($systemLang != "tr") {
        return "en";
    } else {
        return "tr";
    }
}

function social()
{
    global $db;
    $social = $db->from('tbl_social')->where('s_status', 1)->all();
    return $social;
}//wio

function chooseLang()
{
    $systemLang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
    switch ($systemLang) {
        case "tr":
            $lang = "tr";
            break;
        case "en":
            $lang = "en";
            break;
        case "es":
            $lang = "es";
            break;
        case "fr":
            $lang = "fr";
            break;
        default:
            $lang = "tr";
    }
    if (!@$_COOKIE['lang'] && !get('lang')) {
        setcookie("lang", $lang, time() + (86400 * 30), "/");
        return $lang;
    } elseif (@get('lang')) {
Exception message: Undefined array key "HTTP_ACCEPT_LANGUAGE"
/home/rgstech/ilmetal.com/app/helper/frontend-modal.php
    if ($systemLang == '') {
        return "tr";
    }
    if ($systemLang != "tr") {
        return "en";
    } else {
        return "tr";
    }
}

function social()
{
    global $db;
    $social = $db->from('tbl_social')->where('s_status', 1)->all();
    return $social;
}//wio

function chooseLang()
{
    $systemLang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
    switch ($systemLang) {
        case "tr":
            $lang = "tr";
            break;
        case "en":
            $lang = "en";
            break;
        case "es":
            $lang = "es";
            break;
        case "fr":
            $lang = "fr";
            break;
        default:
            $lang = "tr";
    }
    if (!@$_COOKIE['lang'] && !get('lang')) {
        setcookie("lang", $lang, time() + (86400 * 30), "/");
        return $lang;
    } elseif (@get('lang')) {
/home/rgstech/ilmetal.com/app/view/frontend/themes/rgs-catalog/cache/0c3a6f76bf9e69df9b07fd949b71275d196422f5.php
<!DOCTYPE html>
<html lang="<?php echo e(chooseLang()); ?>">
<head>
<?php echo $__env->make('inc/head', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('static/rgs-head', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</head>
<?php echo $__env->make('inc/loader', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<body>
<div class="body">
<?php echo $__env->make('inc/menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<div role="main" class="main">
    <section class="section section-with-shape-divider overflow-hidden border-0 m-0" style="background-image: url(<?php echo e(upload_url('images/').images('anasayfa_buyuk')); ?>); background-repeat: no-repeat; background-size: cover; background-position: center;">
        <div class="shape-divider shape-divider-bottom" style="height: 120px;">
            <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 2000 120" preserveAspectRatio="xMinYMin">
                <polygon fill="#FFF" points="-11,2 693,112 2019,6 2019,135 -11,135 "/>
            </svg>
        </div>
        <div class="container-fluid px-0 mb-5">
            <div class="row">
                <div class="col-sm-9 col-md-8 col-lg-7 col-xl-4 text-center text-sm-end z-index-0 px-5 px-sm-0 mt-5 mt-sm-0 pt-4 pt-sm-0">
                    <div class="position-relative bg-color-grey p-5">
                        <div class="spacer my-5 py-2 d-none d-sm-block"></div>
                        <div class="overflow-hidden pt-sm-5 mt-sm-5">
                            <h1 class="font-weight-semibold text-10 mb-0 appear-animation" data-appear-animation="maskUp" data-appear-animation-delay="300"><?php echo e(flang('hero-text-1')); ?></h1>
                        </div>
                        <div class="mb-1">
                            <h2 class="font-weight-semibold text-10 line-height-2 mb-0 appear-animation" data-appear-animation="maskUp" data-appear-animation-delay="500">
                                <strong class="font-weight-extra-bold custom-font-size-2"><?php echo e(flang('hero-text-2')); ?></strong>
                            </h2>
                        </div>
                        <p class="custom-font-size-1 appear-animation" data-appear-animation="fadeInUpShorter" data-appear-animation-delay="700"><?php echo e(flang('hero-text-3')); ?></p>
                        <a href="<?php echo e(site_url('urunlerimiz')); ?>" class="btn btn-primary text-color-hover-light mb-sm-5 appear-animation" data-appear-animation="fadeInUpShorter" data-appear-animation-delay="900">
                            <?php echo e(flang('button-text')); ?>

                        </a>
                        <div class="custom-hero-sub-images-style-1 text-start">
                            <div class="custom-hero-sub-images-shadow"></div>
                        </div>
                        <div class="spacer py-2"></div>
/home/rgstech/ilmetal.com/vendor/illuminate/filesystem/Filesystem.php
 
    /**
     * Get the returned value of a file.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function getRequire($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
            return (static function () use ($__path, $__data) {
                extract($__data, EXTR_SKIP);
 
                return require $__path;
            })();
        }
 
        throw new FileNotFoundException("File does not exist at path {$path}.");
    }
 
    /**
     * Require the given file once.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function requireOnce($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
/home/rgstech/ilmetal.com/vendor/illuminate/filesystem/Filesystem.php
    /**
     * Get the returned value of a file.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function getRequire($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
            return (static function () use ($__path, $__data) {
                extract($__data, EXTR_SKIP);
 
                return require $__path;
            })();
        }
 
        throw new FileNotFoundException("File does not exist at path {$path}.");
    }
 
    /**
     * Require the given file once.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function requireOnce($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
/home/rgstech/ilmetal.com/vendor/illuminate/view/Engines/PhpEngine.php
    }
 
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    protected function evaluatePath($path, $data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            $this->files->getRequire($path, $data);
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
/home/rgstech/ilmetal.com/vendor/illuminate/view/Engines/CompilerEngine.php
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    public function get($path, array $data = [])
    {
        $this->lastCompiled[] = $path;
 
        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            $this->compiler->compile($path);
        }
 
        // Once we have the path to the compiled file, we will evaluate the paths with
        // typical PHP just like any other templates. We also keep a stack of views
        // which have been rendered for right exception messages to be generated.
        $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        $e = new ViewException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
/home/rgstech/ilmetal.com/vendor/illuminate/view/View.php
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    public function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
/home/rgstech/ilmetal.com/vendor/illuminate/view/View.php
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
/home/rgstech/ilmetal.com/vendor/illuminate/view/View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? $callback($this, $contents) : null;
 
            // Once we have the contents of the view, we will flush the sections if we are
            // done rendering all views so that there is nothing left hanging over when
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
/home/rgstech/ilmetal.com/app/view/frontend/mainpage.php
<?php
/**
 * 23.03.2022
 * 11:04
 * Prepared by Buğra Şıkel @bugraskl
 * https://www.bugra.work/
 */

require 'build.php';

echo $blade->make('main')->render();
/home/rgstech/ilmetal.com/app/controller/index.php
<?php
/**
 * 23.12.2021
 * 11:36
 * Prepared by Buğra Şıkel @bugraskl
 * https://www.bugra.work/
 */

require view('frontend/mainpage');
/home/rgstech/ilmetal.com/index.php
 * Buğra Şıkel @bugraskl tarafından hazırlanmıştır.
 */



require "app/init.php";

$_url = get('url');
$_url = array_filter(explode('/', $_url));


if (!isset($_url[0])){
    $_url[0] = 'index';
}
if (!file_exists(controller($_url[0]))){
    $_url[0] = 'index';
}


require controller($_url[0]);
 

Environment & details:

Key Value
url cgi-bin/
C D;O=D
empty
empty
empty
Key Value
token db8b9437363b47ad1ef0e3ce6138a038d31a5635640a2b92620ccd35c020b796
Key Value
CONTEXT_DOCUMENT_ROOT /home/rgstech/ilmetal.com
CONTEXT_PREFIX
DOCUMENT_ROOT /home/rgstech/ilmetal.com
GATEWAY_INTERFACE CGI/1.1
HTTPS on
HTTP_ACCEPT */*
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 44.192.16.116
HTTP_CF_IPCOUNTRY US
HTTP_CF_RAY 86bf42c2cbd929b5-IAD
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_CONNECTION close
HTTP_HOST www.ilmetal.com
HTTP_REFERER https://ilmetal.com/cgi-bin/?C=D;O=D
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_FOR 44.192.16.116
HTTP_X_FORWARDED_HOST www.ilmetal.com
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_SERVER www.ilmetal.com
HTTP_X_REAL_IP 44.192.16.116
PATH /bin:/usr/bin:/usr/local/php/bin
PHPRC /home/rgstech
QUERY_STRING url=cgi-bin/&C=D;O=D
REDIRECT_STATUS 200
REMOTE_ADDR 44.192.16.116
REMOTE_PORT 37392
REQUEST_METHOD GET
REQUEST_SCHEME https
REQUEST_URI /index.php?url=cgi-bin/&C=D;O=D
SCRIPT_FILENAME /home/rgstech/ilmetal.com/index.php
SCRIPT_NAME /index.php
SERVER_ADDR 212.20.147.8
SERVER_ADMIN [email protected]
SERVER_NAME www.ilmetal.com
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.0
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
UNIQUE_ID ZgabYsliwoYxc2eXhZ82-AAAAAQ
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711709026.2267
REQUEST_TIME 1711709026
empty
0. Whoops\Handler\PrettyPageHandler