14. ErrorException
…/­app/­routes.php282
13. Illuminate\Exception\Handler handleError
…/­app/­routes.php282
12. {closure}
<#unknown>0
11. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php105
10. Illuminate\Routing\Route run
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1000
9. Illuminate\Routing\Router dispatchToRoute
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php968
8. Illuminate\Routing\Router dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php738
7. Illuminate\Foundation\Application dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php708
6. Illuminate\Foundation\Application handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Http/­FrameGuard.php38
5. Illuminate\Http\FrameGuard 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.php606
0. Illuminate\Foundation\Application run
…/­public/­index.php49

ErrorException

Trying to get property of non-object

Route::get('ilm/article/{id}/{name}',  function($id,$tid){
	
	if ($id == '0'){
		return Redirect::to('ilm/1');
	}	
 
	$articles = Articles::find($id);
$articles->view_count = $articles->view_count + 1;
$articles->save();   
	   
Route::get('ilm/article/{id}/{name}',  function($id,$tid){
	
	if ($id == '0'){
		return Redirect::to('ilm/1');
	}	
 
	$articles = Articles::find($id);
$articles->view_count = $articles->view_count + 1;
$articles->save();   
	   
<#unknown>
	 *
	 * @return mixed
	 */
	public function run()
	{
		$parameters = array_filter($this->parameters(), function($p) { return isset($p); });
 
		return call_user_func_array($this->action['uses'], $parameters);
	}
 
		// Once we have successfully matched the incoming request to a given route we
		// can call the before filters on that route. This works similar to global
		// filters in that if a response is returned we will not call the route.
		$response = $this->callRouteBefore($route, $request);
 
		if (is_null($response))
		{
			$response = $route->run($request);
		}
 
		// If no response was returned from the before filter, we will call the proper
		// route instance to get the response. If no route is found a response will
		// still get returned based on why no routes were found for this request.
		$response = $this->callFilter('before', $request);
 
		if (is_null($response))
		{
			$response = $this->dispatchToRoute($request);
		}
 
		}
 
		if ($this->runningUnitTests() && ! $this['session']->isStarted())
		{
			$this['session']->start();
		}
 
		return $this['router']->dispatch($this->prepareRequest($request));
	}
 
	{
		try
		{
			$this->refreshRequest($request = Request::createFromBase($request));
 
			$this->boot();
 
			return $this->dispatch($request);
		}
		catch (\Exception $e)
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		$response = $this->app->handle($request, $type, $catch);
 
		$response->headers->set('X-Frame-Options', 'SAMEORIGIN', false);
		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();
 
Key Value
LSPHP_ENABLE_USER_INI on
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT */*
CONTENT_LENGTH 0
HTTP_HOST www.1god.org
HTTP_REFERER http://www.1god.org/alrasool/public/ilm/article/334/120
HTTP_USER_AGENT claudebot
HTTP_X_HTTPS 1
REDIRECT_UNIQUE_ID ZgXc8_FQ-kDQoBkXw4xAaAABMG8
REDIRECT_QS_ConnectionId 171166027516163335431746
REDIRECT_SCRIPT_URL /alrasool/public/ilm/article/334/120
REDIRECT_SCRIPT_URI https://www.1god.org/alrasool/public/ilm/article/334/120
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI www.1god.org
REDIRECT_HTTP2 on
REDIRECT_H2PUSH off
REDIRECT_H2_PUSH off
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_STREAM_TAG 431746-698-3
REDIRECT_STATUS 200
UNIQUE_ID ZgXc8_FQ-kDQoBkXw4xAaAABMG8
QS_ConnectionId 171166027516163335431746
SCRIPT_URL /alrasool/public/ilm/article/334/120
SCRIPT_URI https://www.1god.org/alrasool/public/ilm/article/334/120
HTTPS on
SSL_TLS_SNI www.1god.org
HTTP2 on
H2PUSH off
H2_PUSH off
H2_PUSHED
H2_PUSHED_ON
H2_STREAM_ID 3
H2_STREAM_TAG 431746-698-3
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.1god.org
SERVER_ADDR 192.185.237.203
SERVER_PORT 443
REMOTE_ADDR 54.243.2.41
DOCUMENT_ROOT /home3/alrasool/public_html
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home3/alrasool/public_html
SERVER_ADMIN webmaster@1god.org
SCRIPT_FILENAME /home3/alrasool/public_html/alrasool/public/index.php
REMOTE_PORT 43550
REDIRECT_URL /alrasool/public/ilm/article/334/120
SERVER_PROTOCOL HTTP/2.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /alrasool/public/ilm/article/334/120
SCRIPT_NAME /alrasool/public/index.php
PHP_SELF /alrasool/public/index.php
REQUEST_TIME_FLOAT 1711660275.18
REQUEST_TIME 1711660275
argv Array ( )
argc 0
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler