[Bug] No menus at all and empty admin config page #445

Closed
opened 2025-09-28 22:36:39 +02:00 by pipip · 28 comments

Environment

  • Custom menu version: 5.1.2
  • Nextcloud version: 31.0.9
  • Web browser and version (Firefox 80, Google Chrome 74, etc): Edge Version 140.0.3485.94

Configuration

cannot access the admin page

Steps to reproduce

Update custom menu and refresh the page
--> all menus are gone
--> custom menu admin page is empty

Observed Results

--> all menus (side and top) are gone
--> custom menu admin page is empty

Expected Results

No response

More informations

No response

### Environment * Custom menu version: 5.1.2 * Nextcloud version: 31.0.9 * Web browser and version (Firefox 80, Google Chrome 74, etc): Edge Version 140.0.3485.94 ### Configuration cannot access the admin page ### Steps to reproduce Update custom menu and refresh the page --> all menus are gone --> custom menu admin page is empty ### Observed Results --> all menus (side and top) are gone --> custom menu admin page is empty ### Expected Results _No response_ ### More informations _No response_

Same behaviour here with Nextcloud 32.
Admin area empty
No menu

Same behaviour here with Nextcloud 32. Admin area empty No menu
Owner

Do you have errors in nextcloud logs?

Do you have errors in nextcloud logs?
Owner
 Uncaught ReferenceError: process is not defined
    6708 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    8399 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    1147 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    6011 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    7108 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    1565 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    <anonymous> https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    <anonymous> https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
    <anonymous> https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2
``` Uncaught ReferenceError: process is not defined 6708 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 8399 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 1147 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 6011 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 7108 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 1565 https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 __webpack_require__ https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 <anonymous> https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 <anonymous> https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 <anonymous> https://xxx/apps/side_menu/js/side_menu-menu.js?v=7d3ce0aa-79:2 ```
Owner

A local build works. The build from the CI fails.

A local build works. The build from the CI fails.
Owner

You have to downgrade.

You have to downgrade.
Owner

The issue came from node dependencies.

The issue came from node dependencies.
Owner

The version 5.1.3 fixes this issue.

The version 5.1.3 fixes this issue.

Unfortunately, version 5.1.3 doesn't make a differnce to me. Still no menu and empty admin config

Unfortunately, version 5.1.3 doesn't make a differnce to me. Still no menu and empty admin config
Owner

Can you clean your cache and refresh?

Can you clean your cache and refresh?
deblan reopened this issue 2025-09-29 09:29:58 +02:00

That's what I did. Still the same result in Chrome as well as in MS Edge. The symbol for the side menu in the upper left corner is completely missing

That's what I did. Still the same result in Chrome as well as in MS Edge. The symbol for the side menu in the upper left corner is completely missing
Author

The fix with 5.1.3 works for me.
Thank you soo much for the quick release :)

The fix with 5.1.3 works for me. Thank you soo much for the quick release :)

I'm having the same problem as @pulporiendo-max. I cleared my cache, refreshed the page, logged out and logged back into my account, but nothing has changed. I don't have the menu and I get a blank/empty page for the Custom Menu configuration.

I'm having the same problem as @pulporiendo-max. I cleared my cache, refreshed the page, logged out and logged back into my account, but nothing has changed. I don't have the menu and I get a blank/empty page for the Custom Menu configuration.
Owner

@pipip good to know!

@nexion63 @pulporiendo-max can you open your browser dev tools and check what errors are show in the console please?

@pipip good to know! @nexion63 @pulporiendo-max can you open your browser dev tools and check what errors are show in the console please?

@deblan This is what the console tells me when I query it.

@deblan This is what the console tells me when I query it.
Owner

Ok! These errors are different from the ones generated by the dependency issue I fixed. Can you open the tab "Network" (Réseau) and check what url are impacted please?

Ok! These errors are different from the ones generated by the dependency issue I fixed. Can you open the tab "Network" (Réseau) and check what url are impacted please?

Miracle! The menu is back! I don't know how or why it got fixed.

Miracle! The menu is back! I don't know how or why it got fixed.

Error for the config page

Error for the config page
Owner

@pulporiendo-max what errors do you have in nextcloud.log?

@pulporiendo-max what errors do you have in nextcloud.log?
Owner

@nexion63 wrote in #445 (comment):

Miracle! The menu is back! I don't know how or why it got fixed.

That could be an problem with PHP opcache resolved with cache invalidation.

@nexion63 wrote in https://gitnet.fr/deblan/side_menu/issues/445#issuecomment-5229: > Miracle! The menu is back! I don't know how or why it got fixed. That could be an problem with PHP opcache resolved with cache invalidation.

{"reqId":"aNjh8qfRZ3P_S7sGmbl4oAAAAAQ","level":3,"time":"2025-09-28T07:21:22+00:00","remoteAddr":"94.31.73.187","user":"admin","app":"index","method":"GET","url":"/index.php/apps/side_menu/js/config","message":"Call to undefined method OC\Server::getAvatarManager() in file '/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php' line 102","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36","version":"32.0.0.13","exception":{"Exception":"Exception","Message":"Call to undefined method OC\Server::getAvatarManager() in file '/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php' line 102","Code":0,"Trace":[{"file":"/home/www/thurn.net/nextcloud/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\SideMenu\Controller\JsController"},"config"]},{"file":"/home/www/thurn.net/nextcloud/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\SideMenu\Controller\JsController","config",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"side_menu.js.config"}]},{"file":"/home/www/thurn.net/nextcloud/lib/base.php","line":1061,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/side_menu/js/config"]},{"file":"/home/www/thurn.net/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/www/thurn.net/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":150,"Previous":{"Exception":"Error","Message":"Call to undefined method OC\Server::getAvatarManager()","Code":0,"Trace":[{"file":"/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php","line":63,"function":"getConfig","class":"OCA\SideMenu\Controller\JsController","type":"->","args":[]},{"file":"/home/www/thurn.net/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":204,"function":"config","class":"OCA\SideMenu\Controller\JsController","type":"->","args":[]},{"file":"/home/www/thurn.net/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\SideMenu\Controller\JsController"},"config"]},{"file":"/home/www/thurn.net/nextcloud/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\SideMenu\Controller\JsController"},"config"]},{"file":"/home/www/thurn.net/nextcloud/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\SideMenu\Controller\JsController","config",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"side_menu.js.config"}]},{"file":"/home/www/thurn.net/nextcloud/lib/base.php","line":1061,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/side_menu/js/config"]},{"file":"/home/www/thurn.net/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php","Line":102},"message":"Call to undefined method OC\Server::getAvatarManager() in file '/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php' line 102","exception":[],"CustomMessage":"Call to undefined method OC\Server::getAvatarManager() in file '/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php' line 102"},"id":"68daa259854b3"}

{"reqId":"aNjh8qfRZ3P_S7sGmbl4oAAAAAQ","level":3,"time":"2025-09-28T07:21:22+00:00","remoteAddr":"94.31.73.187","user":"admin","app":"index","method":"GET","url":"/index.php/apps/side_menu/js/config","message":"Call to undefined method OC\\Server::getAvatarManager() in file '/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php' line 102","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36","version":"32.0.0.13","exception":{"Exception":"Exception","Message":"Call to undefined method OC\\Server::getAvatarManager() in file '/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php' line 102","Code":0,"Trace":[{"file":"/home/www/thurn.net/nextcloud/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\SideMenu\\Controller\\JsController"},"config"]},{"file":"/home/www/thurn.net/nextcloud/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\SideMenu\\Controller\\JsController","config",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"side_menu.js.config"}]},{"file":"/home/www/thurn.net/nextcloud/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/side_menu/js/config"]},{"file":"/home/www/thurn.net/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/www/thurn.net/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":150,"Previous":{"Exception":"Error","Message":"Call to undefined method OC\\Server::getAvatarManager()","Code":0,"Trace":[{"file":"/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php","line":63,"function":"getConfig","class":"OCA\\SideMenu\\Controller\\JsController","type":"->","args":[]},{"file":"/home/www/thurn.net/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":204,"function":"config","class":"OCA\\SideMenu\\Controller\\JsController","type":"->","args":[]},{"file":"/home/www/thurn.net/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\SideMenu\\Controller\\JsController"},"config"]},{"file":"/home/www/thurn.net/nextcloud/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\SideMenu\\Controller\\JsController"},"config"]},{"file":"/home/www/thurn.net/nextcloud/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\SideMenu\\Controller\\JsController","config",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"side_menu.js.config"}]},{"file":"/home/www/thurn.net/nextcloud/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/side_menu/js/config"]},{"file":"/home/www/thurn.net/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php","Line":102},"message":"Call to undefined method OC\\Server::getAvatarManager() in file '/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php' line 102","exception":[],"CustomMessage":"Call to undefined method OC\\Server::getAvatarManager() in file '/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php' line 102"},"id":"68daa259854b3"}

Screenshot (maybe easier to read)

Screenshot (maybe easier to read)

Seems to be only one error (line 102). Again and again

Seems to be only one error (line 102). Again and again
Owner

@pulporiendo-max

On line 102 of /home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php, do you have:

$isAvatarSet = \OC::$server->getAvatarManager()->getAvatar($this->user->getUid())->exists();

or

$isAvatarSet = $this->avatarManager->getAvatar($this->user->getUID())->exists();
@pulporiendo-max On line 102 of `/home/www/thurn.net/nextcloud/apps/side_menu/lib/Controller/JsController.php`, do you have: ``` $isAvatarSet = \OC::$server->getAvatarManager()->getAvatar($this->user->getUid())->exists(); ``` or ``` $isAvatarSet = $this->avatarManager->getAvatar($this->user->getUID())->exists(); ```

It is the second one:

$isAvatarSet = $this->avatarManager->getAvatar($this->user->getUID())->exists();

It is the second one: `$isAvatarSet = $this->avatarManager->getAvatar($this->user->getUID())->exists();`
Owner

The code is up to date but the server execute the old one. Can you restart php-fpm or your web server and try again?

The code is up to date but the server execute the old one. Can you restart php-fpm or your web server and try again?

Tested it for one week. Now it also works for me. Thank you. Seemed to be a cache issue.

Tested it for one week. Now it also works for me. Thank you. Seemed to be a cache issue.

I can confirm that it works perfectly! Problem solved. Thank you very much.

I can confirm that it works perfectly! Problem solved. Thank you very much.
Sign in to join this conversation.
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deblan/side_menu#445
No description provided.