Replies: 1 comment
-
Experimentally, a nested album with a long name was found. After removing it, the error no longer appeared. When the long name of the last subalbum was shortened, an error has gone. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Lychee version
v 5.2.0
Which PHP version are you using?
PHP 8.3
Detailed description of the problem
When I try to move a photo to another album, when loading the album list , I get a "500 HttpException: mb_strimwidth(): Argument #3 ($width) is out of range".
A similar error occurs when I try to move an album to another.
The following entry appears in the error log:
Error | 2024-06-05 10:22:17 | production | ::mb_strimwidth:600 mb_strimwidth(): Argument #3 ($width) is out of range
::mb_strimwidth:600 mb_strimwidth(): Argument #3 ($width) is out of range App\Livewire\Components\Forms\Album\SearchAlbum::App\Livewire\Components\Forms\Album{closure}:173 mb_strimwidth(): Argument #3 ($width) is out of range; caused by
I couldn't find the mb_strimwidth() function call in the source code, but in the PHP manual I found this:
mb_strimwidth()
(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)
mb_strimwidth — Get truncated string with specified width
<...>
width
The width of the desired trim. If negative width is specified, count from the end of the string.
Note:
Passing negative width is deprecated as of PHP 8.3.0.
Could this be the reason?
Steps to reproduce the issue
First way:
Second way:
Diagnostics [REQUIRED]
Diagnostics
-----------
Warning: Dropbox import not working. dropbox_key is empty.
Info: Found 1 small that could be generated.
You can use
php artisan lychee:generate_thumbs small 1
to generate them.Info: Found 1 medium2x that could be generated.
You can use
php artisan lychee:generate_thumbs medium2x 1
to generate them.Browser & System [REQUIRED]
Windows 10
Google Chrome Version 125.0.6422.141 (Official 64-bit build)
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions