metalsunny
Active member
- May 6, 2022
- 608
- 196
- 43
Most pages on this script have error 500. I just tested forget password. I get error 500. What a problematic script
local.ERROR: compact(): Undefined variable: sociallinks (View: /home/picklerick/bank.pickle.rick/public_html/project/resources/views/layouts/front.blade.php)
@includeIf('partials.front.navbar',compact('sociallinks'))
@includeIf('partials.front.navbar')
<ul class="social-icons py-1 py-md-0 me-md-auto">
@foreach ($sociallinks as $key=>$value)
@if ($value->status)
<li>
<a href="{{ $value->link }}"><i class="{{ $value->icon }}"></i></a>
</li>
@endif
@endforeach
</ul>
@media (max-width: 767px) {
.accounts-section {
display: none;
}
}
Ok. Thanks. let me check what it fixesI managed to do a quick fix for 500 Internal Error!
It's not a permanent fix, you will have to find a solution i can point out the problem.
If you read laravel.log inside storage/logs/laravel.log
Code:local.ERROR: compact(): Undefined variable: sociallinks (View: /home/picklerick/bank.pickle.rick/public_html/project/resources/views/layouts/front.blade.php)
I edited resources/views/layouts/front.blade.php line:68
I changed Line:68 from
Code:<!-- @includeIf('partials.front.navbar',compact('sociallinks')) -->
To
Code:@includeIf('partials.front.navbar')
I edited resources/views/partials/front/navbar.blade.php
I comment Line:5-13
Code:<ul class="social-icons py-1 py-md-0 me-md-auto"> @foreach ($sociallinks as $key=>$value) @if ($value->status) <li> <a href="{{ $value->link }}"><i class="{{ $value->icon }}"></i></a> </li> @endif @endforeach </ul>
To
Code:<!-- <ul class="social-icons py-1 py-md-0 me-md-auto"> @foreach ($sociallinks as $key=>$value) @if ($value->status) <li> <a href="{{ $value->link }}"><i class="{{ $value->icon }}"></i></a> </li> @endif @endforeach </ul> -->
I made it for you so you don't have to do it yourself, i hope someone will sort this soon as i don't have time to fix a broken script
Download quick-fix:
*** Hidden text: cannot be quoted. ***
Already tested and it fixed the 500 error code on pages!Ok. Thanks. let me check what it fixes
i did. Still same result. Let me clear my browser cache
Still doesn't work. Can u send me inbox msg with link of ur demo web. If it works perfectly i will do a fresh installation and insert ur codeAlso it might help to go on your
storage/framework/views/. --- DELETE CONTENT
storage/framework/cache/data/. --- DELETE CONTENT
storage/framework/sessions/. --- DELETE CONTENT
This is what i've done in order to fix the cache problem![]()
Sorted out, was my problem, i edited the tutorial and updated the download link, try now to download files & replace them also clear cache and delete from storage - cache/data & viewsStill doesn't work. Can u send me inbox msg with link of ur demo web. If it works perfectly i will do a fresh installation and insert ur code
OkSorted out, was my problem, i edited the tutorial and updated the download link, try now to download files & replace them also clear cache and delete from storage - cache/data & views
Good luck!
Perfect, told you it was something related to the cache!Everything now working 100% including login, forget password and all pages
Yes. You were right...Perfect, told you it was something related to the cache!
How did you solve the overall issue bruv ? Kindly tell how to go about itYes. You were right...