Draw,io not work no NextCloud 14

Drag.io Not work no Nextclod 14

I’m made modification , simply change “app” with “app-content” in editor.php… but not work

Blockquote {“reqId”:“hktEvvmBe98T55w5DQpP”,“level”:3,“time”:“2018-09-19T09:44:32+00:00”,“remoteAddr”:“192.168.168.6”,“user”:“cayetano”,“app”:“index”,“method”:“GET”,“url”:“/cloud/index.php/apps/drawio/298809”,“message”:{“Exception”:“Error”,“Message”:“Call to a member function getTitle() on string”,“Code”:0,“Trace”:[{“file”:“/var/www/html/cloud/lib/private/Template/Base.php”,“line”:179,“function”:“include”},{“file”:“/var/www/html/cloud/lib/private/Template/Base.php”,“line”:151,“function”:“load”,“class”:“OC\Template\Base”,“type”:“->”,“args”:[“/var/www/html/cloud/core/templates/layout.user.php”,{“drawioUrl”:“https://cloud.gomezgil.es/draw/war/index.html”,“drawioUrlArgs”:“”,“theme”:“kennedy”,“lang”:“es”,“overrideXml”:“yes”,“offlineMode”:“yes”,“filePath”:“/sunair.xml”}]},{“file”:“/var/www/html/cloud/lib/private/legacy/template.php”,“line”:207,“function”:“fetchPage”,“class”:“OC\Template\Base”,“type”:“->”,“args”:[{“drawioUrl”:“https://cloud.gomezgil.es/draw/war/index.html”,“drawioUrlArgs”:“”,“theme”:“kennedy”,“lang”:“es”,“overrideXml”:“yes”,“offlineMode”:“yes”,“filePath”:“/sunair.xml”}]},{“file”:“/var/www/html/cloud/lib/private/legacy/template.php”,“line”:238,“function”:“fetchPage”,“class”:“OC_Template”,“type”:“->”,“args”:[{“drawioUrl”:“https://cloud.gomezgil.es/draw/war/index.html”,“drawioUrlArgs”:“”,“theme”:“kennedy”,“lang”:“es”,“overrideXml”:“yes”,“offlineMode”:“yes”,“filePath”:“/sunair.xml”}]},{“file”:“/var/www/html/cloud/lib/public/AppFramework/Http/TemplateResponse.php”,“line”:157,“function”:“fetchPage”,“class”:“OC_Template”,“type”:“->”,“args”:[{“drawioUrl”:“https://cloud.gomezgil.es/draw/war/index.html”,“drawioUrlArgs”:“”,“theme”:“kennedy”,“lang”:“es”,“overrideXml”:“yes”,“offlineMode”:“yes”,“filePath”:“/sunair.xml”}]},{“file”:“/var/www/html/cloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:119,“function”:“render”,“class”:“OCP\AppFramework\Http\TemplateResponse”,“type”:“->”,“args”:},{“file”:“/var/www/html/cloud/lib/private/AppFramework/App.php”,“line”:118,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Drawio\Controller\EditorController”},“index”]},{“file”:“/var/www/html/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php”,“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”,“args”:[“EditorController”,“index”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“fileId”:“298809”,“_route”:“drawio.editor.index”}]},{“function”:“__invoke”,“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:“->”,“args”:[{“fileId”:“298809”,“_route”:“drawio.editor.index”}]},{“file”:“/var/www/html/cloud/lib/private/Route/Router.php”,“line”:297,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“fileId”:“298809”,“_route”:“drawio.editor.index”}]},{“file”:“/var/www/html/cloud/lib/base.php”,“line”:989,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”,“args”:[“/apps/drawio/298809”]},{“file”:“/var/www/html/cloud/index.php”,“line”:42,“function”:“handleRequest”,“class”:“OC”,“type”:“::”,“args”:}],“File”:“/var/www/html/cloud/core/templates/layout.user.php”,“Line”:8,“CustomMessage”:“–”},“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 OPR/55.0.2994.44”,“version”:“14.0.0.19”}
{“reqId”:“9PAF4lmTsJxNGxxn2o7x”,“level”:3,“time”:“2018-09-19T09:45:09+00:00”,“remoteAddr”:“192.168.168.6”,“user”:“cayetano”,“app”:“index”,“method”:“GET”,“url”:“/cloud/index.php/apps/drawio/301984”,“message”:{“Exception”:“Error”,“Message”:“Call to a member function getTitle() on string”,“Code”:0,“Trace”:[{“file”:“/var/www/html/cloud/lib/private/Template/Base.php”,“line”:179,“function”:“include”},{“file”:“/var/www/html/cloud/lib/private/Template/Base.php”,“line”:151,“function”:“load”,“class”:“OC\Template\Base”,“type”:“->”,“args”:[“/var/www/html/cloud/core/templates/layout.user.php”,{“drawioUrl”:“https://cloud.gomezgil.es/draw/war/index.html”,“drawioUrlArgs”:“”,“theme”:“kennedy”,“lang”:“es”,“overrideXml”:“yes”,“offlineMode”:“yes”,“filePath”:“/recoletas.xml”}]},{“file”:“/var/www/html/cloud/lib/private/legacy/template.php”,“line”:207,“function”:“fetchPage”,“class”:“OC\Template\Base”,“type”:“->”,“args”:[{“drawioUrl”:“https://cloud.gomezgil.es/draw/war/index.html”,“drawioUrlArgs”:“”,“theme”:“kennedy”,“lang”:“es”,“overrideXml”:“yes”,“offlineMode”:“yes”,“filePath”:“/recoletas.xml”}]},{“file”:“/var/www/html/cloud/lib/private/legacy/template.php”,“line”:238,“function”:“fetchPage”,“class”:“OC_Template”,“type”:“->”,“args”:[{“drawioUrl”:“https://cloud.gomezgil.es/draw/war/index.html”,“drawioUrlArgs”:“”,“theme”:“kennedy”,“lang”:“es”,“overrideXml”:“yes”,“offlineMode”:“yes”,“filePath”:“/recoletas.xml”}]},{“file”:“/var/www/html/cloud/lib/public/AppFramework/Http/TemplateResponse.php”,“line”:157,“function”:“fetchPage”,“class”:“OC_Template”,“type”:“->”,“args”:[{“drawioUrl”:“https://cloud.gomezgil.es/draw/war/index.html”,“drawioUrlArgs”:“”,“theme”:“kennedy”,“lang”:“es”,“overrideXml”:“yes”,“offlineMode”:“yes”,“filePath”:“/recoletas.xml”}]},{“file”:“/var/www/html/cloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:119,“function”:“render”,“class”:“OCP\AppFramework\Http\TemplateResponse”,“type”:“->”,“args”:},{“file”:“/var/www/html/cloud/lib/private/AppFramework/App.php”,“line”:118,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Drawio\Controller\EditorController”},“index”]},{“file”:“/var/www/html/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php”,“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”,“args”:[“EditorController”,“index”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“fileId”:“301984”,“_route”:“drawio.editor.index”}]},{“function”:“__invoke”,“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:“->”,“args”:[{“fileId”:“301984”,“_route”:“drawio.editor.index”}]},{“file”:“/var/www/html/cloud/lib/private/Route/Router.php”,“line”:297,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“fileId”:“301984”,“_route”:“drawio.editor.index”}]},{“file”:“/var/www/html/cloud/lib/base.php”,“line”:989,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”,“args”:[“/apps/drawio/301984”]},{“file”:“/var/www/html/cloud/index.php”,“line”:42,“function”:“handleRequest”,“class”:“OC”,“type”:“::”,“args”:}],“File”:“/var/www/html/cloud/core/templates/layout.user.php”,“Line”:8,“CustomMessage”:“–”},“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 OPR/55.0.2994.44”,“version”:“14.0.0.19”}

This is fixed in the mentioned PR. The commit in question is:

If you want a “quick” solution, you can checkout the branch the PR is generated from:

git clone https://github.com/janLo/nextcloud-drawio --branch nc14-support

And then copy the “drawio” dir in your apps dir.

3 Likes

OK… WORKS !!!

Hello. I’m my own instance of OwnCloud (not NextCloud) with 10.4 version
It is possible to install your app on my owncloud server ? Thanks.