Comments (16)
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.
from officeonline.
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.
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.
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.
Another guy asked the same question: https://help.nextcloud.com/t/office-online-integration-and-nextcloud-28-0-1/179431
from officeonline.
we have same issue...
from officeonline.
Same here
from officeonline.
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.
Hello,
still present with Nextcloud 27.1.3.3
from officeonline.
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.
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.
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 addeduse OCP\EventDispatcher\IEventDispatcher;
- comment line 267 in [...]/apps/officeonline/lib/Controller/DocumentController.php
from officeonline.
- use OCP\EventDispatcher\IEventDispatcher;
Thanks but not working for me.
from officeonline.
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.
Hello,
Thanks a lot ! Great Job ! It solved my issue :-)
from officeonline.
Related Issues (20)
- Viewer for visio files HOT 1
- Plugin makes Nextcloud slower HOT 3
- Dont open Insert Image dialog in Excel and PowerPoint HOT 1
- getFileid() failing in WOPIMiddleware.php on line 77 HOT 7
- Co-authoring is not working in word documents with macros HOT 1
- Pasting image from Clipboard does not work
- Track Changes option is missing HOT 1
- Impossible to copy/spread formula to adjacent cells by dragging HOT 1
- Excel not working because CORS Policy HOT 3
- Update a opened document if a version is restored in the back
- Keep user session on nextcloud server side alive HOT 1
- Make use of Edit_Notification post message to update the file list mtime
- Office Online does not work with mobile browser/app
- Ready for NextCloud 28? HOT 5
- npm ci error HOT 1
- Office 365 integration for large institutions HOT 1
- timeout when the Office-Online-Server is unreachable
- Update 2.1.0 on 27.1.6 makes all office files unusable... HOT 43
- 2.1.0 on nextcloud 28.0.2 creation menu not in local language HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from officeonline.