Radsystems 8.7.4
I’ m using Laravel and Bootstrap and when I try to change my profile picture I get this error: Class “Intervention\Image\ImageManagerStatic” not found
Is this a new project on 8.7.4 or you continued an old project in 8.7.4?
If it is an old project, publish it to a different folder to get the right code.
I have tried it on new projects and the same thing happens. I already reported it to Radsystem website support and they told me that they would correct this in future versions.
Hello @wizardigitalpro,
The issue you’re encountering occurs because the Intervention\Image\ImageManagerStatic class has been deprecated and removed in Laravel 11. Instead, you need to update your implementation to use Intervention\Image\ImageManager with an instance-based approach.
To resolve this, you need to adjust the Uploader.php file in the \app\Helpers folder. Here’s the updated code snippet that works with the new library structure:
https://www.nodointeractivo.com/files/code/Uploader.zip
ImageManagerStatic with an instance of ImageManager and its make() method for image processing.Intervention\Image.Uploader.php file in \app\Helpers with the code above.composer require intervention/image to ensure the library is properly installed.php artisan config:cache.After making these changes, you should no longer encounter the error, and your profile picture upload functionality will work as expected.
Just wait for an update to fix that. There is a monthly update being released.
This issue has been fixed in the latest template release.