Git Product home page Git Product logo

Comments (16)

Dennis1993 avatar Dennis1993 commented on August 26, 2024 2

Here is a fix but it isn't published yet @juliushaertl :(

I hope the release is coming soon because no update to 28 is possible at the moment.

#490 (comment)

from officeonline.

nicovd737 avatar nicovd737 commented on August 26, 2024 1

Hello,
Any news about this issue ? We have upgraded to NC 28 and office only is unasable for all our users.
Thanks
Nico

from officeonline.

justkrevedko avatar justkrevedko commented on August 26, 2024 1

Here is a fix but it isn't published yet @juliushaertl :(

I hope the release is coming soon because no update to 28 is possible at the moment.

#490 (comment)

Hello.

This fix solves the application startup issue, but there is an issue with ms edge that appears to be CSP related.
When opening the document in the browser console there is the error "Refused to execute inline script because it violates the following Content Security Policy directive" and then 404 showing "Page not found on server".
In web-server nginx logs there is a line "/apps/officeonline/undefinedWOPISrc=nextcloud/index.php%2Fapps%2Fofficeonline%2Fwopi%2Ffiles%2Fundefined&title=undefined&lang=en&closebutton=1&revisionhistory=1"
The problem is only reproduced in MS Edge, in Chrome and Firefox the editor just works.

from officeonline.

Dennis1993 avatar Dennis1993 commented on August 26, 2024 1

Another guy asked the same question: https://help.nextcloud.com/t/office-online-integration-and-nextcloud-28-0-1/179431

from officeonline.

sergeyadamenko avatar sergeyadamenko commented on August 26, 2024

we have same issue...

from officeonline.

Novarchibald avatar Novarchibald commented on August 26, 2024

Same here

from officeonline.

juliushaertl avatar juliushaertl commented on August 26, 2024

Can you paste the full raw json error message from the logs? That should contain more details on where this originates from exactly

from officeonline.

dertorsten avatar dertorsten commented on August 26, 2024

Hello,
still present with Nextcloud 27.1.3.3

appdisabled.json

from officeonline.

Orchal avatar Orchal commented on August 26, 2024

Hi,

we have this issue since the update to NC 28.0.1.
Here the json log:

{"reqId":"IHRYd64MKJsyP34CJX5N","level":3,"time":"2024-01-12T11:56:28+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"xxxxxxxx","app":"no app in context","method":"GET","url":"/index.php/apps/files","message":"App officeonline threw an error during app.php load and will be disabled: Call to undefined method O C\Server::getEventDispatcher()","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.1.1","exception":{"Exception":"Error","Message":"Call to undefined method OC\Server::getEventDispatcher()","Code":0,"Trace":[{"file":"/var /www/nextcloud/lib/private/App/AppManager.php","line":522,"function":"require_once"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":413,"function":"requireAppFile","class":"OC\App\AppManager","type":"::"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":213,"funct ion":"loadApp","class":"OC\App\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":125,"function":"loadApps","class":"OC\App\AppManager","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/AppInfo/Application.php","line":218,"function":"loadApps","class":"OC_ App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\DAV\AppInfo\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":434,"function":"bootApp","class":"OC\AppFramework\Boot strap\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":213,"function":"loadApp","class":"OC\App\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":125,"function":"loadApps","class":"OC\App\AppManager","type":"->"},{ "file":"/var/www/nextcloud/lib/private/legacy/OC_User.php","line":237,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/apps/user_saml/appinfo/app.php","line":88,"function":"handleApacheAuth","class":"OC_User","type":"::"},{"file":"/var/www/nextcloud/lib/private/App/AppMana ger.php","line":522,"args":["/var/www/nextcloud/apps/user_saml/appinfo/app.php"],"function":"require_once"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":413,"function":"requireAppFile","class":"OC\App\AppManager","type":"::"},{"file":"/var/www/nextcloud/lib/private/App/AppManager .php","line":213,"function":"loadApp","class":"OC\App\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":125,"function":"loadApps","class":"OC\App\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1041,"function":"loadApps","class":"OC_ App","type":"::"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/officeonline/appinfo/app.php","Line":36,"message":"App officeonline threw an error during app.php load and will be disabled: Call to undefined method O C\Server::getEventDispatcher()","exception":{},"CustomMessage":"App officeonline threw an error during app.php load and will be disabled: Call to undefined method OC\Server::getEventDispatcher()"}}

I think it's related to things described here: https://help.nextcloud.com/t/symfony-event-dispatcher-update-in-nextcloud-server-28-breaking-changes/167550

Thank you

from officeonline.

Orchal avatar Orchal commented on August 26, 2024

It's documented in the upgrade notes, here the pull request: nextcloud/server#38546
Upgrade notes: https://docs.nextcloud.com/server/28/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_28.html

from officeonline.

Orchal avatar Orchal commented on August 26, 2024

I made two changes, and it seems to work, but I have no idea what I'm doing... So it might be pretty stupid or what... I just hope it will help:

  • [...]/apps/officeonline/appinfo/app.php : changed $eventDispatcher = \OC::$server->getEventDispatcher(); => $eventDispatcher = \OC::$server->get(IEventDispatcher::class); and added use OCP\EventDispatcher\IEventDispatcher;
  • comment line 267 in [...]/apps/officeonline/lib/Controller/DocumentController.php

from officeonline.

nicovd737 avatar nicovd737 commented on August 26, 2024
  • use OCP\EventDispatcher\IEventDispatcher;

Thanks but not working for me.

from officeonline.

nicovd737 avatar nicovd737 commented on August 26, 2024

Here is a fix but it isn't published yet @juliushaertl :(

I hope the release is coming soon because no update to 28 is possible at the moment.

#490 (comment)

Hello,

Thanks a lot ! Great Job ! It solved my issue :-)

from officeonline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.