Error

We're sorry, but an unhandled error occurred. Please see the details below.

Trying to get property 'publication_date' of non-object

/var/www/html/especiales/100diasabinader/themes/100dias/pages/dias-detalles.htm line 28

    $this['articles_featured']  = Article::OrderBy('publication_date','desc')->take(3)->where('category','destacada')->get();
 
 
 
 
 
    $this['next']       = Article::where('publication_date', $article->publication_date->addDays(1))->first();
 
    $this['previous']   = Article::where('publication_date', $article->publication_date->subDays(1))->first();
 
 
}
?>

Stack trace

# Called Code Document Line
43 Cms6036bac72761e431479359_418cbce2c154df190456e7e1067b7fb0Class->onStart() ~/modules/cms/classes/Controller.php 500
42 Cms\Classes\Controller->execPageCycle() ~/modules/cms/classes/Controller.php 394
41 Cms\Classes\Controller->runPage() ~/modules/cms/classes/Controller.php 225
40 Cms\Classes\Controller->run() ~/modules/cms/classes/CmsController.php 50
39 Cms\Classes\CmsController->run()
38 call_user_func_array() ~/vendor/laravel/framework/src/Illuminate/Routing/Controller.php 54
37 Illuminate\Routing\Controller->callAction() ~/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php 45
36 Illuminate\Routing\ControllerDispatcher->dispatch() ~/vendor/laravel/framework/src/Illuminate/Routing/Route.php 212
35 Illuminate\Routing\Route->runController() ~/vendor/laravel/framework/src/Illuminate/Routing/Route.php 169
34 Illuminate\Routing\Route->run() ~/vendor/laravel/framework/src/Illuminate/Routing/Router.php 658
33 Illuminate\Routing\Router->Illuminate\Routing\{closure}() ~/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php 30
32 Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}() ~/plugins/rainlab/translate/classes/LocaleMiddleware.php 29
31 RainLab\Translate\Classes\LocaleMiddleware->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 149
30 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php 53
29 Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}() ~/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php 41
28 Illuminate\Routing\Middleware\SubstituteBindings->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 149
27 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php 53
26 Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}() ~/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php 49
25 Illuminate\View\Middleware\ShareErrorsFromSession->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 149
24 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php 53
23 Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}() ~/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php 63
22 Illuminate\Session\Middleware\StartSession->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 149
21 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php 53
20 Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}() ~/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php 37
19 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 149
18 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php 53
17 Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}() ~/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php 68
16 Illuminate\Cookie\Middleware\EncryptCookies->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 149
15 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php 53
14 Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 102
13 Illuminate\Pipeline\Pipeline->then() ~/vendor/laravel/framework/src/Illuminate/Routing/Router.php 660
12 Illuminate\Routing\Router->runRouteWithinStack() ~/vendor/laravel/framework/src/Illuminate/Routing/Router.php 635
11 Illuminate\Routing\Router->runRoute() ~/vendor/laravel/framework/src/Illuminate/Routing/Router.php 601
10 Illuminate\Routing\Router->dispatchToRoute() ~/vendor/october/rain/src/Router/CoreRouter.php 20
9 October\Rain\Router\CoreRouter->dispatch() ~/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php 176
8 Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() ~/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php 30
7 Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}() ~/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php 46
6 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle() ~/vendor/october/rain/src/Foundation/Http/Middleware/CheckForMaintenanceMode.php 25
5 October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 149
4 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php 53
3 Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 102
2 Illuminate\Pipeline\Pipeline->then() ~/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php 151
1 Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() ~/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php 116
0 Illuminate\Foundation\Http\Kernel->handle() ~/index.php 43