You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'random' in 'order clause' (SQL: select * from links where user_id = 1 and links.deleted_at is null order by random asc, RAND() limit 24 offset 0) {"userId":1,"exception":"[object] (Illuminate\Database\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'random' in 'order clause' (SQL: select * from links where user_id = 1 and links.deleted_at is null order by random asc, RAND() limit 24 offset 0) at /PATH_TO/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)
When I try and sort the links by random, I get the above error, and the page give an internal 500 error (see snap). URL bar address: https://instanceurlhere/links?orderBy=random
How to reproduce
Go to All Links
Select Order By > Random
The above error of SQL gets thrown up
The Page throws a 500 internal error and the Logs give the database error.
Expected behavior
The links should be randomly shown, based on a set of coded parameters and logic.
Logs
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'random'in'order clause' (SQL: select* from `links` where `user_id` = 1 and `links`.`deleted_at` is null order by `random` asc, RAND() limit 24 offset 0) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'random' in 'order clause' (SQL: select * from `links` where `user_id` = 1 and `links`.`deleted_at` is null order by `random` asc, RAND() limit 24 offset 0) at /PATH_TO/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)
Screenshots
LinkAce version
V1.12.0
Setup Method
PHP
Operating System
Linux (Ubuntu, CentOS,...)
Client details
Windows 11 - Librewolf - 113.0.1-1
MX Linux - LibreWolf - 133.0.1-1
The text was updated successfully, but these errors were encountered:
Bug Description
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'random' in 'order clause' (SQL: select * from
links
whereuser_id
= 1 andlinks
.deleted_at
is null order byrandom
asc, RAND() limit 24 offset 0) {"userId":1,"exception":"[object] (Illuminate\Database\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'random' in 'order clause' (SQL: select * fromlinks
whereuser_id
= 1 andlinks
.deleted_at
is null order byrandom
asc, RAND() limit 24 offset 0) at /PATH_TO/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)When I try and sort the links by random, I get the above error, and the page give an internal 500 error (see snap). URL bar address: https://instanceurlhere/links?orderBy=random
How to reproduce
Go to All Links
Select Order By > Random
The above error of SQL gets thrown up
The Page throws a 500 internal error and the Logs give the database error.
Expected behavior
The links should be randomly shown, based on a set of coded parameters and logic.
Logs
Screenshots
LinkAce version
V1.12.0
Setup Method
PHP
Operating System
Linux (Ubuntu, CentOS,...)
Client details
Windows 11 - Librewolf - 113.0.1-1
MX Linux - LibreWolf - 133.0.1-1
The text was updated successfully, but these errors were encountered: