[Bug] Internal server error when opening Administrator panel #475
Labels
No labels
blocked
bug
duplicate
enhancement
FR accepted
help wanted
invalid
need discussion
next release
not reproduced
PR requested
question
reproduced
WFB
WIP
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deblan/side_menu#475
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Environment
Configuration
Using a managed NextCloud instance.
Steps to reproduce
In Administration Settings open the Custom Menu entry under Administration section
Observed Results
An server exception occurred.
{"reqId":"8GEa65FFDn001TtFcU0V","level":3,"time":"2026-02-27T22:43:32+00:00","remoteAddr":"37.251.33.224","user":"admin","app":"index","method":"GET","url":"/settings/admin/side_menu","scriptName":"/index.php","message":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute() in file '/var/www/nextcloud/apps/side_menu/lib/Service/LangRepository.php' line 33","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36","version":"33.0.0.16","exception":{"Exception":"Exception","Message":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute() in file '/var/www/nextcloud/apps/side_menu/lib/Service/LangRepository.php' line 33","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1155,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":150,"Previous":{"Exception":"Error","Message":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/side_menu/lib/Settings/Admin.php","line":136,"function":"getUsedLangs","class":"OCA\\SideMenu\\Service\\LangRepository","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":129,"function":"getForm","class":"OCA\\SideMenu\\Settings\\Admin","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":179,"function":"formatSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":56,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":205,"function":"index","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1155,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/side_menu/lib/Service/LangRepository.php","Line":33},"message":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute() in file '/var/www/nextcloud/apps/side_menu/lib/Service/LangRepository.php' line 33","exception":"{\"class\":\"Exception\",\"message\":\"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute() in file '/var/www/nextcloud/apps/side_menu/lib/Service/LangRepository.php' line 33\",\"code\":0,\"file\":\"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php:150\",\"trace\":\"#0 /var/www/nextcloud/lib/private/AppFramework/App.php(153): OC\\AppFramework\\Http\\Dispatcher->dispatch()\\n#1 /var/www/nextcloud/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main()\\n#2 /var/www/nextcloud/lib/base.php(1155): OC\\Route\\Router->match()\\n#3 /var/www/nextcloud/index.php(25): OC::handleRequest()\\n#4 {main}\",\"previous\":{\"class\":\"Error\",\"message\":\"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()\",\"code\":0,\"file\":\"/var/www/nextcloud/apps/side_menu/lib/Service/LangRepository.php:33\",\"trace\":\"#0 /var/www/nextcloud/apps/side_menu/lib/Settings/Admin.php(136): OCA\\SideMenu\\Service\\LangRepository->getUsedLangs()\\n#1 /var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php(129): OCA\\SideMenu\\Settings\\Admin->getForm()\\n#2 /var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php(179): OCA\\Settings\\Controller\\AdminSettingsController->formatSettings()\\n#3 /var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php(56): OCA\\Settings\\Controller\\AdminSettingsController->getIndexResponse()\\n#4 /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(205): OCA\\Settings\\Controller\\AdminSettingsController->index()\\n#5 /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(118): OC\\AppFramework\\Http\\Dispatcher->executeController()\\n#6 /var/www/nextcloud/lib/private/AppFramework/App.php(153): OC\\AppFramework\\Http\\Dispatcher->dispatch()\\n#7 /var/www/nextcloud/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main()\\n#8 /var/www/nextcloud/lib/base.php(1155): OC\\Route\\Router->match()\\n#9 /var/www/nextcloud/index.php(25): OC::handleRequest()\\n#10 {main}\"}}","CustomMessage":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute() in file '/var/www/nextcloud/apps/side_menu/lib/Service/LangRepository.php' line 33"},"id":"69a21eca747a6"}Expected Results
The setting panel should open.
More informations
No response
same here. could fix it by changing line 33 in nextcloud/apps/side_menu/lib/Service/LangRepository.php
from
$result = $query->execute();
to
$stmt = $qb->executeQuery();
but then getting a lot of red "Error saving ..." when changing settings and clicking on save. (But no errors in nextcloud log. Just a quick display on screen.)
EDIT:
as the red errors are rushing through very quickly I checked with Firefox browser console and could see a lot of corresponding POST requests to nextcloud API to set values that aregetting ttp error 400.
E. g. just one oth the calls with corresponding error message on screen:
"Error while saving side-with-categories"
API
POST
https://mynextcloudurlhere.de/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/side_menu/side-with-categories
Status
400
VersionHTTP/2
Übertragen1,85 kB (0 B Größe)
Referrer Policyno-referrer
Anfrage-PrioritätHighest
DNS-AuflösungSystem
Fixed in v5.2.1!