Error

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

Trying to access array offset on value of type bool

~/plugins/olbg/tips/classes/TipsCommon.php line 25

class TipsCommon {
 
    public static function checkArrayUrlAgainstCurrentUrl($data, $currentUrl) {
 
        $currentUrl = rtrim($currentUrl, '/');
        foreach($data as $k => $v) {
            if($currentUrl == rtrim(strtok($v['url'], '?'), '/')) {
                $data[$k]['isCurrentUrl'] = true;
                break;
            }
        }
        return $data;
    }

Stack Trace

# Called Code Document Line
48 Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}() ~/plugins/olbg/tips/classes/TipsCommon.php 25
47 Olbg\Tips\Classes\TipsCommon::checkArrayUrlAgainstCurrentUrl() ~/plugins/olbg/tips/components/TipsPage.php 1160
46 Olbg\Tips\Components\TipsPage->prepareMenuAndApi() ~/plugins/olbg/tips/components/TipsPage.php 364
45 Olbg\Tips\Components\TipsPage->prepareData() ~/plugins/olbg/tips/components/TipsPage.php 256
44 Olbg\Tips\Components\TipsPage->onRun() ~/modules/cms/classes/ComponentBase.php 183
43 Cms\Classes\ComponentBase->runLifeCycle() ~/modules/cms/classes/CmsCompoundObject.php 175
42 Cms\Classes\CmsCompoundObject->runComponents() ~/modules/cms/classes/Controller.php 496
41 Cms\Classes\Controller->execPageCycle() ~/modules/cms/classes/Controller.php 396
40 Cms\Classes\Controller->runPage() ~/modules/cms/classes/Controller.php 226
39 Cms\Classes\Controller->run() ~/modules/cms/classes/CmsController.php 71
38 Cms\Classes\CmsController->run() ~/vendor/laravel/framework/src/Illuminate/Routing/Controller.php 54
37 Illuminate\Routing\Controller->callAction() ~/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php 43
36 Illuminate\Routing\ControllerDispatcher->dispatch() ~/vendor/laravel/framework/src/Illuminate/Routing/Route.php 259
35 Illuminate\Routing\Route->runController() ~/vendor/laravel/framework/src/Illuminate/Routing/Route.php 205
34 Illuminate\Routing\Route->run() ~/vendor/laravel/framework/src/Illuminate/Routing/Router.php 806
33 Illuminate\Routing\Router->Illuminate\Routing\{closure}() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 144
32 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/plugins/olbg/olbguserauth/classes/UserAuthMiddleware.php 20
31 Olbg\Olbguserauth\Classes\UserAuthMiddleware->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 183
30 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/plugins/olbg/offers/classes/TrackingMiddleware.php 23
29 Olbg\Offers\Classes\TrackingMiddleware->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 183
28 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/plugins/olbg/cache/classes/RouteCacheMiddleware.php 59
27 Olbg\Cache\Classes\RouteCacheMiddleware->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 183
26 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php 50
25 Illuminate\Routing\Middleware\SubstituteBindings->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 183
24 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php 49
23 Illuminate\View\Middleware\ShareErrorsFromSession->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 183
22 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php 121
21 Illuminate\Session\Middleware\StartSession->handleStatefulRequest() ~/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php 64
20 Illuminate\Session\Middleware\StartSession->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 183
19 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php 37
18 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 183
17 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php 67
16 Illuminate\Cookie\Middleware\EncryptCookies->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 183
15 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 119
14 Illuminate\Pipeline\Pipeline->then() ~/vendor/laravel/framework/src/Illuminate/Routing/Router.php 805
13 Illuminate\Routing\Router->runRouteWithinStack() ~/vendor/laravel/framework/src/Illuminate/Routing/Router.php 784
12 Illuminate\Routing\Router->runRoute() ~/vendor/laravel/framework/src/Illuminate/Routing/Router.php 748
11 Illuminate\Routing\Router->dispatchToRoute() ~/vendor/october/rain/src/Router/CoreRouter.php 32
10 October\Rain\Router\CoreRouter->dispatch() ~/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php 200
9 Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 144
8 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/plugins/olbg/geo/classes/CountryCodeMiddleware.php 37
7 Olbg\Geo\Classes\CountryCodeMiddleware->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 183
6 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php 99
5 Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() ~/vendor/october/rain/src/Foundation/Http/Middleware/CheckForMaintenanceMode.php 23
4 October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode->handle() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 183
3 Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() ~/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php 119
2 Illuminate\Pipeline\Pipeline->then() ~/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php 175
1 Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() ~/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php 144
0 Illuminate\Foundation\Http\Kernel->handle() ~/index.php 42
Panalobet official