Adphi / occweb

GNU Affero General Public License v3.0
18 stars 6 forks source link

Bugfix for Nextcloud 30.0.2 #17

Open Blue-Gamer48 opened 1 week ago

Blue-Gamer48 commented 1 week ago

Hello Please Update The Plugin to 30.0.2 the occweb give me a white page ando no errors

KnudsenO commented 1 week ago

I've the same problem. Unfortunately, I have not yet been able to find out what the problem is, as only a white page is displayed.

C8620 commented 1 week ago

See #14 for a temp and probably working solution.

Blue-Gamer48 commented 1 week ago

See #14 for a temp and probably working solution.

this is old

for 30.0.0

i have the bug in 30.0.2

{"reqId":"ZzZFmQpTNm-jdO366-W5swAAABo","level":4,"time":"2024-11-14T18:46:49+00:00","remoteAddr":"2.202.173.140","user":"Blue_Gamer48","app":"no app in context","method":"GET","url":"/index.php/apps/encryption/ajax/getStatus","message":"Could not boot files_trackdownloads: Call to undefined method OC\Server::getEventDispatcher()","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.2.2","exception":{"Exception":"Error","Message":"Call to undefined method OC\Server::getEventDispatcher()","Code":0,"Trace":[{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/AppFramework/Bootstrap/Coordinator.php","line":157,"function":"boot","class":"OCA\FilesTrackDownloads\AppInfo\Application","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/App/AppManager.php","line":434,"function":"bootApp","class":"OC\AppFramework\Bootstrap\Coordinator","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/App/AppManager.php","line":211,"function":"loadApp","class":"OC\App\AppManager","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/legacy/OC_App.php","line":85,"function":"loadApps","class":"OC\App\AppManager","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/Files/SetupManager.php","line":106,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/Files/SetupManager.php","line":327,"function":"setupBuiltinWrappers","class":"OC\Files\SetupManager","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/Files/SetupManager.php","line":371,"function":"setupRoot","class":"OC\Files\SetupManager","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/Files/Mount/Manager.php","line":75,"function":"setupForPath","class":"OC\Files\SetupManager","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/Files/Filesystem.php","line":277,"function":"find","class":"OC\Files\Mount\Manager","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/Files/View.php","line":1120,"function":"resolvePath","class":"OC\Files\Filesystem","type":"::"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/Files/View.php","line":492,"function":"basicOperation","class":"OC\Files\View","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/Encryption/Keys/Storage.php","line":247,"function":"file_exists","class":"OC\Files\View","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/Encryption/Keys/Storage.php","line":207,"function":"getKey","class":"OC\Encryption\Keys\Storage","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/Encryption/Keys/Storage.php","line":99,"function":"getKeyWithUid","class":"OC\Encryption\Keys\Storage","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/apps/encryption/lib/KeyManager.php","line":528,"function":"getSystemUserKey","class":"OC\Encryption\Keys\Storage","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/apps/encryption/lib/KeyManager.php","line":72,"function":"getPublicShareKey","class":"OCA\Encryption\KeyManager","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/apps/encryption/lib/Users/Setup.php","line":42,"function":"validateShareKey","class":"OCA\Encryption\KeyManager","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/apps/encryption/lib/AppInfo/Application.php","line":61,"function":"setupSystem","class":"OCA\Encryption\Users\Setup","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":28,"function":"setUp","class":"OCA\Encryption\AppInfo\Application","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/AppFramework/Bootstrap/BootContext.php","line":32,"function":"injectFn","class":"OC\AppFramework\Bootstrap\FunctionInjector","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/apps/encryption/lib/AppInfo/Application.php","line":53,"function":"injectFn","class":"OC\AppFramework\Bootstrap\BootContext","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":28,"function":"OCA\Encryption\AppInfo\{closure}","class":"OCA\Encryption\AppInfo\Application","type":"->","args":[" sensitive parameters replaced "]},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/AppFramework/Bootstrap/BootContext.php","line":32,"function":"injectFn","class":"OC\AppFramework\Bootstrap\FunctionInjector","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/apps/encryption/lib/AppInfo/Application.php","line":42,"function":"injectFn","class":"OC\AppFramework\Bootstrap\BootContext","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/AppFramework/Bootstrap/Coordinator.php","line":157,"function":"boot","class":"OCA\Encryption\AppInfo\Application","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/App/AppManager.php","line":434,"function":"bootApp","class":"OC\AppFramework\Bootstrap\Coordinator","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/App/AppManager.php","line":211,"function":"loadApp","class":"OC\App\AppManager","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/private/legacy/OC_App.php","line":85,"function":"loadApps","class":"OC\App\AppManager","type":"->"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/lib/base.php","line":981,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/vhosts/blue-gamer48.de/cloud.cosmo-bot.de/apps/files_trackdownloads/lib/AppInfo/Application.php","Line":49,"message":"Could not boot files_trackdownloads: Call to undefined method OC\Server::getEventDispatcher()","exception":[],"CustomMessage":"Could not boot files_trackdownloads: Call to undefined method OC\Server::getEventDispatcher()"},"id":"673645a26bee1"}

hctsdev commented 3 hours ago

See https://github.com/Adphi/occweb/issues/14#issuecomment-2379507137 for a temp and probably working solution:

This appears to be working for me on line 22 in apps/occweb/lib/Controller/OccOutput.php

  public function getErrorOutput(): OutputInterface
  {
  return $this;    
  }

if someone could verify it works aswell

It works for me.