14. ErrorException
…/­app/­models/­Shop.php729
13. Illuminate\Exception\Handler handleError
…/­app/­models/­Shop.php729
12. Shop distributorsInitialize
…/­app/­start/­global.php126
11. require
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­start.php239
10. {closure}
<#unknown>0
9. call_user_func
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php830
8. Illuminate\Foundation\Application fireAppCallbacks
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php604
7. Illuminate\Foundation\Application bootApplication
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php587
6. Illuminate\Foundation\Application boot
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php743
5. Illuminate\Foundation\Application handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Session/­Middleware.php72
4. Illuminate\Session\Middleware handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Cookie/­Queue.php47
3. Illuminate\Cookie\Queue handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Cookie/­Guard.php51
2. Illuminate\Cookie\Guard handle
…/­vendor/­stack/­builder/­src/­Stack/­StackedHttpKernel.php23
1. Stack\StackedHttpKernel handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php641
0. Illuminate\Foundation\Application run
…/­public/­index.php49

ErrorException (E_WARNING)

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
ErrorException thrown with message "Invalid argument supplied for foreach()" Stacktrace: #14 ErrorException in /home/forge/h000395.rvs-server.com/app/models/Shop.php:729 #13 Illuminate\Exception\Handler:handleError in /home/forge/h000395.rvs-server.com/app/models/Shop.php:729 #12 Shop:distributorsInitialize in /home/forge/h000395.rvs-server.com/app/start/global.php:126 #11 require in /home/forge/h000395.rvs-server.com/vendor/laravel/framework/src/Illuminate/Foundation/start.php:239 #10 {closure} in <#unknown>:0 #9 call_user_func in /home/forge/h000395.rvs-server.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:830 #8 Illuminate\Foundation\Application:fireAppCallbacks in /home/forge/h000395.rvs-server.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:604 #7 Illuminate\Foundation\Application:bootApplication in /home/forge/h000395.rvs-server.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:587 #6 Illuminate\Foundation\Application:boot in /home/forge/h000395.rvs-server.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:743 #5 Illuminate\Foundation\Application:handle in /home/forge/h000395.rvs-server.com/vendor/laravel/framework/src/Illuminate/Session/Middleware.php:72 #4 Illuminate\Session\Middleware:handle in /home/forge/h000395.rvs-server.com/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php:47 #3 Illuminate\Cookie\Queue:handle in /home/forge/h000395.rvs-server.com/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php:51 #2 Illuminate\Cookie\Guard:handle in /home/forge/h000395.rvs-server.com/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23 #1 Stack\StackedHttpKernel:handle in /home/forge/h000395.rvs-server.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:641 #0 Illuminate\Foundation\Application:run in /home/forge/h000395.rvs-server.com/public/index.php:49

Invalid argument supplied for foreach()

    }

    public function distributorsInitialize() {

        $aJsonDistributors = json_decode(getJson("notizen.json?id=109"),true);

        // Save Array for further use
        foreach($aJsonDistributors as $key=>$row)
            $aDistributors[$row["1001,1,2"]] = $row["1001,1,3"];

    }

    public function distributorsInitialize() {

        $aJsonDistributors = json_decode(getJson("notizen.json?id=109"),true);

        // Save Array for further use
        foreach($aJsonDistributors as $key=>$row)
            $aDistributors[$row["1001,1,2"]] = $row["1001,1,3"];

//if (true)
{
    $shop = new Shop();
    $shop->parameterInitialize();
    $shop->navigationInitialize();
    $shop->navigationBuildHtml();
    $shop->mengeneinheitenInitialize();
    $shop->distributorsInitialize();
    $shop->materialInitialize();
    $shop->schutzartInitialize();
	| any of the existing IoC bindings, as well as register its own new
	| bindings for things like repositories, etc. We'll load it here.
	|
	*/
 
	$path = $app['path'].'/start/global.php';
 
	if (file_exists($path)) require $path;
 
	/*
<#unknown>
	 * @param  array  $callbacks
	 * @return void
	 */
	protected function fireAppCallbacks(array $callbacks)
	{
		foreach ($callbacks as $callback)
		{
			call_user_func($callback, $this);
		}
	}
		// Once the application has booted we will also fire some "booted" callbacks
		// for any listeners that need to do work after this initial booting gets
		// finished. This is useful when ordering the boot-up processes we run.
		$this->fireAppCallbacks($this->bootingCallbacks);
 
		$this->booted = true;
 
		$this->fireAppCallbacks($this->bootedCallbacks);
	}
 
	 */
	public function boot()
	{
		if ($this->booted) return;
 
		array_walk($this->serviceProviders, function($p) { $p->boot(); });
 
		$this->bootApplication();
	}
 
	 */
	public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		try
		{
			$this->refreshRequest($request = Request::createFromBase($request));
 
			$this->boot();
 
			return $this->dispatch($request);
		if ($this->sessionConfigured())
		{
			$session = $this->startSession($request);
 
			$request->setSession($session);
		}
 
		$response = $this->app->handle($request, $type, $catch);
 
		// Again, if the session has been configured we will need to close out the session
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		$response = $this->app->handle($request, $type, $catch);
 
		foreach ($this->cookies->getQueuedCookies() as $cookie)
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		return $this->encrypt($this->app->handle($this->decrypt($request), $type, $catch));
	}
 
    {
        $this->app = $app;
        $this->middlewares = $middlewares;
    }
 
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        return $this->app->handle($request, $type, $catch);
    }
 
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @return void
	 */
	public function run(SymfonyRequest $request = null)
	{
		$request = $request ?: $this['request'];
 
		$response = with($stack = $this->getStackedClient())->handle($request);
 
		$response->send();
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have whipped up for them.
|
*/
 
$app->run();
 
empty
empty
empty
empty
empty
Key Value
USER forge
HOME /home/forge
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.schauwecker.com
REDIRECT_STATUS 200
HTTPS on
SERVER_NAME h000395.rvs-server.com
SERVER_PORT 443
SERVER_ADDR 93.90.204.41
REMOTE_PORT 54380
REMOTE_ADDR 54.197.64.207
SERVER_SOFTWARE nginx/1.15.8
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /home/forge/h000395.rvs-server.com/public
DOCUMENT_URI /index.php
REQUEST_URI /schaltschraenke/standschraenke-aus-edelstahl/anreihschrank-va304l-h2000xb600xt500mm-1-tuerig_s1D-51953.html
SCRIPT_NAME /index.php
SCRIPT_FILENAME /home/forge/h000395.rvs-server.com/public/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711654442.8838
REQUEST_TIME 1711654442
empty
0. Whoops\Handler\PrettyPageHandler