Internal Server Error

TypeError

app/Http/Controllers/ExamsPageController.php:183

json_decode(): Argument #1 ($json) must be of type string, array given

LARAVEL 12.49.0
PHP 8.3.6
UNHANDLED
CODE 0
500
GET
http://study4pass.com/study-material/aba/crcm

Exception trace

App\Http\Controllers\ExamsPageControllerjson_decode()
app/Http/Controllers/ExamsPageController.php:183
178            'examPrices' => ExamPrice::where('exam_id', $exam->exam_id)->get(),179            'teImages' => TeImage::where('exam_id', $exam->exam_id)->get(),180            'exam_topics' => ExamTopic::where('exam_id', $exam->exam_id)->get(),181            'exam_question_types' => QuestionType::where('exam_id', $exam->exam_id)->get(),182            'examFaqs' => ExamFaq::where('exam_id', $exam->exam_id)->get(),183            'examCerts' => json_decode($exam->exam_certs, true),184        ];185186        // XML practice test: show "Free Start Practice Test" when pack exists (uses latest version from xml_files)187        $examDetails['has_xml_practice_view'] = false;188        $examDetails['xml_practice_view_url'] = null;189        if ($exam->vendor_perma && $exam->exam_perma) {190            $storagePath = XmlTestEnginePack::findStoragePath($exam->vendor_perma, $exam->exam_perma);191            if ($storagePath !== null && $storagePath !== '') {192                $examDetails['has_xml_practice_view'] = true;193                $examDetails['xml_practice_view_url'] = url('/exams/' . $exam->vendor_perma . '/' . $exam->exam_perma . '/view');194            }195
App\Http\Controllers\ExamsPageController->show()
app/Http/Controllers/ExamsPageController.php:183
178            'examPrices' => ExamPrice::where('exam_id', $exam->exam_id)->get(),179            'teImages' => TeImage::where('exam_id', $exam->exam_id)->get(),180            'exam_topics' => ExamTopic::where('exam_id', $exam->exam_id)->get(),181            'exam_question_types' => QuestionType::where('exam_id', $exam->exam_id)->get(),182            'examFaqs' => ExamFaq::where('exam_id', $exam->exam_id)->get(),183            'examCerts' => json_decode($exam->exam_certs, true),184        ];185186        // XML practice test: show "Free Start Practice Test" when pack exists (uses latest version from xml_files)187        $examDetails['has_xml_practice_view'] = false;188        $examDetails['xml_practice_view_url'] = null;189        if ($exam->vendor_perma && $exam->exam_perma) {190            $storagePath = XmlTestEnginePack::findStoragePath($exam->vendor_perma, $exam->exam_perma);191            if ($storagePath !== null && $storagePath !== '') {192                $examDetails['has_xml_practice_view'] = true;193                $examDetails['xml_practice_view_url'] = url('/exams/' . $exam->vendor_perma . '/' . $exam->exam_perma . '/view');194            }195
48 vendor frames
Illuminate\Routing\Controller->callAction()
vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
Illuminate\Routing\ControllerDispatcher->dispatch()
vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
Illuminate\Routing\Route->runController()
vendor/laravel/framework/src/Illuminate/Routing/Route.php:265
Illuminate\Routing\Route->run()
vendor/laravel/framework/src/Illuminate/Routing/Route.php:211
Illuminate\Routing\Router->Illuminate\Routing\{closure}()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:822
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180
Illuminate\Routing\Middleware\SubstituteBindings->handle()
vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:50
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:87
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\View\Middleware\ShareErrorsFromSession->handle()
vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:48
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Session\Middleware\StartSession->handleStatefulRequest()
vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:120
Illuminate\Session\Middleware\StartSession->handle()
vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:36
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Cookie\Middleware\EncryptCookies->handle()
vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:74
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Pipeline\Pipeline->then()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
Illuminate\Routing\Router->runRouteWithinStack()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:821
Illuminate\Routing\Router->runRoute()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:800
Illuminate\Routing\Router->dispatchToRoute()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:764
Illuminate\Routing\Router->dispatch()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:753
Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:200
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:51
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Http\Middleware\ValidatePostSize->handle()
vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php:27
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:109
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Http\Middleware\HandleCors->handle()
vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:61
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Http\Middleware\TrustProxies->handle()
vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:58
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Foundation\Http\Middleware\InvokeDeferredCallbacks->handle()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/InvokeDeferredCallbacks.php:22
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Http\Middleware\ValidatePathEncoding->handle()
vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePathEncoding.php:26
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
Illuminate\Pipeline\Pipeline->then()
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175
Illuminate\Foundation\Http\Kernel->handle()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144
Illuminate\Foundation\Application->handleRequest()
vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1220
public/index.php
public/index.php:20
1516// Bootstrap Laravel and handle the request...17/** @var Application $app */18$app = require_once __DIR__.'/../bootstrap/app.php';1920$app->handleRequest(Request::capture());21

Queries

mysql
select * from `single_exam` where `exam_perma` = 'crcm' limit 1
1.27ms
mysql
select * from `vendors` where `vendor_id` = 213 limit 1
0.32ms
mysql
select * from `single_exam` where `vendor_id` = 213 and `exam_questions` > 0 and `exam_id` != 158
0.34ms
mysql
select * from `banners` where `is_enabled` = 1 order by `created_at` desc limit 1
0.3ms
mysql
select * from `hot_exams` where `type` = 'week'
0.68ms
mysql
select * from `hot_exams` where `type` = 'month'
0.66ms
mysql
select * from `single_exam` where `exam_code` = 'MB-230' limit 1
3.16ms
mysql
select * from `single_exam` where `exam_code` = 'CAS-004' limit 1
5.7ms
mysql
select * from `single_exam` where `exam_code` = '220-1101' limit 1
5.8ms
mysql
select * from `single_exam` where `exam_code` = 'DevOps-SRE' limit 1
6.36ms
mysql
select * from `single_exam` where `exam_code` = 'MD-102' limit 1
6.5ms
mysql
select * from `single_exam` where `exam_code` = 'AZ-204' limit 1
4.06ms
mysql
select * from `single_exam` where `exam_code` = 'MB-910' limit 1
4.86ms
mysql
select * from `single_exam` where `exam_code` = 'SC-200' limit 1
4.74ms
mysql
select * from `single_exam` where `exam_code` = 'PL-600' limit 1
5.4ms
mysql
select * from `single_exam` where `exam_code` = 'CISM' limit 1
0.95ms
mysql
select * from `single_exam` where `exam_code` = 'ANS-C01' limit 1
5.91ms
mysql
select * from `single_exam` where `exam_code` = 'CBAP' limit 1
0.92ms
mysql
select * from `single_exam` where `exam_code` = 'MS-721' limit 1
7.13ms
mysql
select * from `single_exam` where `exam_code` = '212-82' limit 1
5.94ms
mysql
select * from `single_exam` where `exam_code` = '4A0-114' limit 1
7.94ms
mysql
select * from `single_exam` where `exam_code` = 'CEH-001' limit 1
1.47ms
mysql
select * from `single_exam` where `exam_code` = 'Okta-Certified-Professional' limit 1
4.8ms
mysql
select * from `single_exam` where `exam_code` = 'BL0-100' limit 1
5.04ms
mysql
select * from `single_exam` where `exam_code` = 'PL-200' limit 1
4.32ms
mysql
select * from `single_exam` where `exam_code` = 'ACT-Test' limit 1
4.77ms
mysql
select * from `single_exam` where `exam_code` = 'CWM_LEVEL_2' limit 1
4.96ms
mysql
select * from `single_exam` where `exam_code` = 'GCP-GC-IMP' limit 1
5.53ms
mysql
select * from `single_exam` where `exam_code` = 'GCP-GC-REP' limit 1
6.41ms
mysql
select * from `single_exam` where `exam_code` = 'GCP-GC-ADM' limit 1
5.55ms
mysql
select * from `single_exam` where `exam_code` = 'CMT-Level-II' limit 1
5.92ms
mysql
select * from `single_exam` where `exam_code` = 'CSSLP' limit 1
0.82ms
mysql
select * from `single_exam` where `exam_code` = 'F3' limit 1
2.74ms
mysql
select * from `single_exam` where `exam_code` = 'ISO20KF' limit 1
1.21ms
mysql
select * from `single_exam` where `exam_code` = 'CIS-SAM' limit 1
3.79ms
mysql
select * from `single_exam` where `exam_code` = 'DMF-1220' limit 1
4.64ms
mysql
select * from `single_exam` where `exam_code` = 'AZ-801' limit 1
5.62ms
mysql
select * from `single_exam` where `exam_code` = 'NS0-162' limit 1
5.04ms
mysql
select * from `single_exam` where `exam_code` = 'OG0-023' limit 1
1.09ms
mysql
select * from `single_exam` where `exam_code` = 'C1000-130' limit 1
20.78ms
mysql
select * from `single_exam` where `exam_code` = 'Databricks-Certified-Data-Engineer-Associate' limit 1
7ms
mysql
select * from `single_exam` where `exam_code` = 'CGFM' limit 1
3.65ms
mysql
select * from `single_exam` where `exam_code` = 'T1-GR1' limit 1
0.98ms
mysql
select * from `single_exam` where `exam_code` = 'MB-310' limit 1
3ms
mysql
select * from `single_exam` where `exam_code` = 'ACP-01301' limit 1
3.54ms
mysql
select * from `single_exam` where `exam_code` = 'GMAT-Test' limit 1
4.34ms
mysql
select * from `single_exam` where `exam_code` = 'AHM-510' limit 1
1.15ms
mysql
select * from `single_exam` where `exam_code` = 'CAMS' limit 1
3.22ms
mysql
select * from `single_exam` where `exam_code` = '101-500' limit 1
3.13ms
mysql
select * from `single_exam` where `exam_code` = '300-630' limit 1
4.45ms
mysql
select * from `single_exam` where `exam_code` = 'AD0-E117' limit 1
4.99ms
mysql
select * from `single_exam` where `exam_code` = 'AZ-140' limit 1
5.43ms
mysql
select * from `single_exam` where `exam_code` = 'Google-Analytics-Individual-Qualification' limit 1
5.48ms
mysql
select * from `single_exam` where `exam_code` = 'CIS-HAM' limit 1
6.3ms
mysql
select * from `single_exam` where `exam_code` = 'JavaScript-Developer-I' limit 1
4.27ms
mysql
select * from `single_exam` where `exam_code` = '300-735' limit 1
3.81ms
mysql
select * from `single_exam` where `exam_code` = '1z0-082' limit 1
8.26ms
mysql
select * from `single_exam` where `exam_code` = 'ACP-01101' limit 1
3.98ms
mysql
select * from `single_exam` where `exam_code` = 'PSE-SASE' limit 1
6.64ms
mysql
select * from `single_exam` where `exam_code` = 'C1000-132' limit 1
6.31ms
mysql
select * from `single_exam` where `exam_code` = 'HPE0-S59' limit 1
6.39ms
mysql
select * from `single_exam` where `exam_code` = 'CCDAK' limit 1
7.16ms
mysql
select * from `single_exam` where `exam_code` = 'PEGAPCBA87V1' limit 1
6.5ms
mysql
select * from `single_exam` where `exam_code` = 'OGEA-103' limit 1
6.79ms
mysql
select * from `single_exam` where `exam_code` = 'ASIS-CPP' limit 1
0.51ms
mysql
select * from `single_exam` where `exam_code` = 'EX0-115' limit 1
2.95ms
mysql
select * from `single_exam` where `exam_code` = 'CISSP-ISSAP' limit 1
0.91ms
mysql
select * from `single_exam` where `exam_code` = 'ITIL-4-DITS' limit 1
6.51ms
mysql
select * from `single_exam` where `exam_code` = 'PCCSA' limit 1
3.76ms
mysql
select * from `single_exam` where `exam_code` = '4A0-113' limit 1
5.63ms
mysql
select * from `single_exam` where `exam_code` = 'MCIA-Level-1' limit 1
3.8ms
mysql
select * from `single_exam` where `exam_code` = 'CKA' limit 1
4.13ms
mysql
select * from `single_exam` where `exam_code` = 'B2C-Commerce-Architect' limit 1
5.82ms
mysql
select * from `single_exam` where `exam_code` = 'TCP-BW6' limit 1
4.27ms
mysql
select * from `single_exam` where `exam_code` = 'GACE' limit 1
4.19ms
mysql
select * from `single_exam` where `exam_code` = 'MS-700' limit 1
3.56ms
mysql
select * from `single_exam` where `exam_code` = 'NetSuite-ERP-Consultant' limit 1
6.09ms
mysql
select * from `single_exam` where `exam_code` = 'AD0-E213' limit 1
6.52ms
mysql
select * from `single_exam` where `exam_code` = 'PHR' limit 1
1.14ms
mysql
select * from `single_exam` where `exam_code` = 'CSA' limit 1
4.05ms
mysql
select * from `single_exam` where `exam_code` = 'Professional-Cloud-Network-Engineer' limit 1
5ms
mysql
select * from `single_exam` where `exam_code` = 'Marketing-Cloud-Email-Specialist' limit 1
4.17ms
mysql
select * from `single_exam` where `exam_code` = 'MB-800' limit 1
5.68ms
mysql
select * from `single_exam` where `exam_code` = 'IIA-CRMA' limit 1
5.86ms
mysql
select * from `single_exam` where `exam_code` = 'PCAP-31-03' limit 1
6.11ms
mysql
select * from `single_exam` where `exam_code` = 'CFE-Fraud-Prevention-and-Deterrence' limit 1
6.19ms
mysql
select * from `single_exam` where `exam_code` = 'CFE-Investigation' limit 1
6.45ms
mysql
select * from `single_exam` where `exam_code` = 'NS0-003' limit 1
6.93ms
mysql
select * from `single_exam` where `exam_code` = 'H31-311_V2.5' limit 1
7.71ms
mysql
select * from `single_exam` where `exam_code` = 'ARA-C01' limit 1
6.95ms
mysql
select * from `single_exam` where `exam_code` = 'PMI-ACP' limit 1
1.07ms
mysql
select * from `single_exam` where `exam_code` = 'HAAD-RN' limit 1
1.26ms
mysql
select * from `single_exam` where `exam_code` = 'NCLEX-RN' limit 1
1.48ms
mysql
select * from `single_exam` where `exam_code` = 'C_BRSOM_2020' limit 1
7.52ms
mysql
select * from `single_exam` where `exam_code` = 'PL-500' limit 1
7.66ms
mysql
select * from `single_exam` where `exam_code` = 'MSP-Foundation' limit 1
6.31ms
mysql
select * from `single_exam` where `exam_code` = 'MCD-Level1-Delta' limit 1
4.79ms
mysql
select * from `single_exam` where `exam_code` = 'PMI-RMP' limit 1
1.37ms
mysql
select * from `single_exam` where `exam_code` = '212-89' limit 1
4.4ms
mysql
select * from `single_exam` where `exam_code` = 'Marketing-Cloud-Developer' limit 1
4.92ms

Headers

x-forwarded-for
162.0.217.198
cf-ray
a0dbd5011c2c9705-AMS
user-agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64)
referer
https://www.btolat.com/
accept
*/*
cdn-loop
cloudflare; loops=1
cf-connecting-ip
162.0.217.198
cf-ipcountry
NL
cf-visitor
{"scheme":"https"}
x-forwarded-proto
https
connection
Keep-Alive
host
study4pass.com
accept-encoding
gzip, br

Body

// No request body

Routing

controller
App\Http\Controllers\ExamsPageController@show
middleware
web

Routing parameters

{
    "vendor_perma": "aba",
    "exam_perma": "crcm"
}