Attempted to lazy load [reactionTypes] on model [Waterhole\Models\ReactionSet] but lazy loading is disabled
My project is a waterhole integration into a laravel 10 app.
My client has started using the forum in production and suddenly gets following error trying to access the frontend of the forum:
Attempted to lazy load [reactionTypes] on model [Waterhole\Models\ReactionSet] but lazy loading is disabled
Despite this error, I don't find any reference in the codebase indicating that lazy loading is disabled like "Model::preventLazyLoading()" or other methods to prevent lazy loading
The rest of the error log looks like this:
... (lots of preceeding html and js)
</pre><script>Sfdump(\"sf-dump-848759880\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
"}},"userId":6,"exception":"[object] (Spatie\\LaravelIgnition\\Exceptions\\ViewException(code: 0): Attempted to lazy load [reactionTypes] on model [Waterhole\\Models\\ReactionSet] but lazy loading is disabled. at /vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php:564)
[stacktrace]
#0 /site/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(523): Illuminate\\Database\\Eloquent\\Model->handleLazyLoadingViolation('...')
#1 /site/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('...')
#2 /site/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2226): Illuminate\\Database\\Eloquent\\Model->getAttribute('...')
#3 /site/vendor/waterhole/core/src/View/Components/Reactions.php(32): Illuminate\\Database\\Eloquent\\Model->__get('...')
#4 /site/vendor/laravel/framework/src/Illuminate/View/Component.php(102): Waterhole\\View\\Components\\Reactions->__construct(Object(Waterhole\\Models\\Post))
#5 /site/storage/framework/views/6b83bb6e4f22ff2a0d76a72615e41371.blade.php(1): Illuminate\\View\\Component::resolve(Array)
#6 /site/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(123): require('...')
#7 /site/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(124): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#8 /site/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire('...', Array)
#9 /site/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(22): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('...', Array)
#10 /site/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(72): Livewire\\Mechanisms\\ExtendBlade\\ExtendedCompilerEngine->evaluatePath('...', Array)
#11 /site/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(10): Illuminate\\View\\Engines\\CompilerEngine->get('...', Array)
#12 /site/vendor/laravel/framework/src/Illuminate/View/View.php(207): Livewire\\Mechanisms\\ExtendBlade\\ExtendedCompilerEngine->get('...', Array)
#13 /site/vendor/laravel/framework/src/Illuminate/View/View.php(190): Illuminate\\View\\View->getContents()
#14 /site/vendor/laravel/framework/src/Illuminate/View/View.php(159): Illuminate\\View\\View->renderContents()
#15 /site/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesComponents.php(103): Illuminate\\View\\View->render()
#16 /site/vendor/waterhole/core/resources/views/components/post-list-item.blade.php(37): Illuminate\\View\\Factory->renderComponent()
#17 /site/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(123): require('...')
#18 /site/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(124): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#19 /site/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire('...', Array)
#20 /site/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(22): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('...', Array)
#21 /site/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(72): Livewire\\Mechanisms\\ExtendBlade\\ExtendedCompilerEngine->evaluatePath('...', Array)
#22 /site/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(10): Illuminate\\View\\Engines\\CompilerEngine->get('...', Array)
#23 /site/vendor/laravel/framework/src/Illuminate/View/View.php(207): Livewire\\Mechanisms\\ExtendBlade\\ExtendedCompilerEngine->get('...', Array)
Any idea what the problem could be?
Thanks,
Emmanuel