Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Undefined variable $allRecordsCount on production but not locally - Filament
F
Filament
•
3y ago
•
4 replies
ssmusoke
Undefined variable $allRecordsCount on production but not locally
<
?php unset
(
$
componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4
)
;
?
>
<
?php endif
;
?
>
<span class
=
"
<
?php echo
\Illuminate
\Support
\
A
r
r
:
:toCssClasses
(
[
'
d
a
r
k
:text
-white
'
=
> config
(
'tables
.dark
_mode
'
)
]
)
?
>
" x
-text
=
"window
.pluralize
(
<
?php echo
\Illuminate
\Support
\
J
s
:
:from
(
(
'
t
a
b
l
e
s
:
:table
.selection
_indicator
.selected
_count
'
)
)
-
>toHtml
(
)
?
>
, selectedRecords
.length
,
{ count
: selectedRecords
.length
}
)
"
>
<
/span
>
<span id
=
"
<
?php echo e
(
$this
-
>id
)
;
?
>
.table
.selection
.indicator
.record
-count
.
<
?php echo e
(
$allSelectableRecordsCount
)
;
?
>
" x
-show
=
"
<
?php echo e
(
$allSelectableRecordsCount
)
;
?
>
!
=
= selectedRecords
.length
"
>
<button x
-
o
n
:click
=
"selectAllRecords
" class
=
"text
-sm font
-medium text
-primary
-600
"
>
<
?php echo e
(trans
_choice
(
'
t
a
b
l
e
s
:
:table
.selection
_indicator
.buttons
.select
_all
.label
'
,
$allSelectableRecordsCount
)
)
;
?
>
.
<
/button
>
<
/span
>
The strange thing is that it works on my computer
(doesn
't it always
)
, and other tables on the server for other resources
I have run
php artisan optimize
php artisan optimize
,
php artisan filament upgrade
php artisan filament upgrade
and also manually cleared the storage
/app
/framework folders
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Widget Time counter works locally but not on production
F
Filament / ❓┊help
3y ago
Database notifications working locally, on production not
F
Filament / ❓┊help
4mo ago
Filament Shield: 403 Forbidden on Production but Works Fine Locally
F
Filament / ❓┊help
11mo ago
Undefined variable $isSearchOnBlur
F
Filament / ❓┊help
2y ago