-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation / Activation not possible on NC 25.0.1 #47
Comments
same thing here but not in docker. the application remains disabled even when activated. |
Did you notice that folks have been asking for support since NC23? |
Hey guys got the app working but without the settings page by removing Line 22 in 9b196c2
In case you want something that kind of works... |
Issue seems to be that the app wants to use an old function for registering the user settings page but since that function is deprecated it can't load the app at all, but this fixes it by removing the registration of the settings page completely. |
There's probably a lot more that has to be done to get the settings page working for newer versions of Nextcloud but this is as good as it gets for now I guess. |
Any chance someone will publish a fixed version of this app? Possibly contact NextCloud to ask to take over the current (outdated) app. |
This app is completely broken on 26. Even if you use the workaround to enable the app, you still get an internal server error when clicking an epub file. |
yeh i got the same issue, completely broken as of right now. there is the following error: {"reqId":"X8Kuc4PlzQfno5pAKTtV","level":3,"time":"April 11, 2023 11:04:01","remoteAddr":"54.44.11.21","user":"Paul Chauvat","app":"index","method":"GET","url":"/apps/epubreader/?file=%2Fremote.php%2Fwebdav%2FPartage%2520G%25C3%25A9n%25C3%25A9ral%2FLivres%2520%2526%2520BD%2FBD%2FManzini%252C%2520Antonio%2520-%2520Piste%2520noire.epub&type=application%2Fepub%2Bzip","message":"Class \"OCP\\AppFramework\\Db\\Mapper\" not found","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0","version":"26.0.0.11","exception":{"Exception":"Error","Message":"Class \"OCP\\AppFramework\\Db\\Mapper\" not found","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/composer/composer/ClassLoader.php","line":578,"function":"include"},{"file":"/var/www/nextcloud/lib/composer/composer/ClassLoader.php","line":432,"function":"Composer\\Autoload\\{closure}","class":"Composer\\Autoload\\ClassLoader","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/epubreader/lib/Db/BookmarkMapper.php","line":18,"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->"},{"file":"/var/www/nextcloud/lib/composer/composer/ClassLoader.php","line":578,"args":["/var/www/nextcloud/apps/epubreader/lib/Db/BookmarkMapper.php"],"function":"include"},{"file":"/var/www/nextcloud/lib/composer/composer/ClassLoader.php","line":432,"function":"Composer\\Autoload\\{closure}","class":"Composer\\Autoload\\ClassLoader","type":"::","args":["*** sensitive parameters replaced ***"]},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"__construct","class":"ReflectionClass","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":162,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/epubreader/lib/Db/ReaderMapper.php","Line":19,"CustomMessage":"--"}} |
Since nextcloud 26.0 removes Mapper and uses QbMapper instead. I used chatgpt to debug successfully. The version I am using merges 3 pull requests. |
Can you send us the plugin here (via external download or your own repo) so we can also use it ? Thanks ;) |
Can confirm it works on nextcloud 26.x
@fcki1984 would you provide a PR with your changes to this repository? Maybe @e-alfred is still active and would like to merge the patchset |
|
thanks a lot, it work well for N26, however in N27 it now block the loading of files in their app. (any idea of what could cause that?) |
@HyCore Can you give us the backend logs? Additionally, are there any errors in the Chrome DevTools console? |
|
Here is a reformatted version of your output: {
"reqId": "6i3RQ40LJgASxrU70sft",
"level": 3,
"time": "2023-06-15T05:20:33+00:00",
"remoteAddr": "172.18.0.1",
"user": "--",
"app": "no app in context",
"method": "GET",
"url": "/login",
"message": "Autoload path not allowed: /var/www/html/custom_apps/epubreader/lib/config.php",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36",
"version": "27.0.0.8",
"exception": {
"Exception": "OCP\\AutoloadNotAllowedException",
"Message": "Autoload path not allowed: /var/www/html/custom_apps/epubreader/lib/config.php",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/lib/autoloader.php",
"line": 166,
"function": "isValidPath",
"class": "OC\\Autoloader",
"type": "->",
"args": [
"/var/www/html/custom_apps/epubreader/lib/config.php"
]
},
{
"file": "/var/www/html/custom_apps/epubreader/lib/Hooks.php",
"line": 42,
"function": "load",
"class": "OC\\Autoloader",
"type": "->",
"args": [
"OCA\\Epubreader\\Config"
]
},
{
"file": "/var/www/html/lib/private/legacy/OC_Hook.php",
"line": 105,
"function": "announce_settings",
"class": "OCA\\Epubreader\\Hooks",
"type": "::",
"args": [
[
[
"false",
"false",
"true",
"false",
"\"\"",
"{\"activity\":\"/apps/activity\",\"bruteforcesettings\":\"/apps/bruteforcesettings\",\"calendar\":\"/custom_apps/calendar\",\"circles\":\"/apps/circles\",\"cloud_federation_api\":\"/apps/cloud_federation_api\",\"comments\":\"/apps/comments\",\"contacts\":\"/custom_apps/contacts\",\"contactsinteraction\":\"/apps/contactsinteraction\",\"dav\":\"/apps/dav\",\"epubreader\":\"/custom_apps/epubreader\",\"federatedfilesharing\":\"/apps/federatedfilesharing\",\"federation\":\"/apps/federation\",\"files\":\"/apps/files\",\"files_fulltextsearch\":\"/custom_apps/files_fulltextsearch\",\"files_pdfviewer\":\"/apps/files_pdfviewer\",\"files_rightclick\":\"/apps/files_rightclick\",\"files_sharing\":\"/apps/files_sharing\",\"files_trashbin\":\"/apps/files_trashbin\",\"files_versions\":\"/apps/files_versions\",\"firstrunwizard\":\"/apps/firstrunwizard\",\"fulltextsearch\":\"/custom_apps/fulltextsearch\",\"fulltextsearch_elasticsearch\":\"/custom_apps/fulltextsearch_elasticsearch\",\"logreader\":\"/apps/logreader\",\"lookup_server_connector\":\"/apps/lookup_server_connector\",\"nextcloud_announcements\":\"/apps/nextcloud_announcements\",\"notifications\":\"/apps/notifications\",\"oauth2\":\"/apps/oauth2\",\"onlyoffice\":\"/custom_apps/onlyoffice\",\"photos\":\"/apps/photos\",\"privacy\":\"/apps/privacy\",\"provisioning_api\":\"/apps/provisioning_api\",\"recommendations\":\"/apps/recommendations\",\"related_resources\":\"/apps/related_resources\",\"serverinfo\":\"/apps/serverinfo\",\"settings\":\"/apps/settings\",\"sharebymail\":\"/apps/sharebymail\",\"spreed\":\"/custom_apps/spreed\",\"support\":\"/apps/support\",\"survey_client\":\"/apps/survey_client\",\"systemtags\":\"/apps/systemtags\",\"text\":\"/apps/text\",\"theming\":\"/apps/theming\",\"twofactor_backupcodes\":\"/apps/twofactor_backupcodes\",\"updatenotification\":\"/apps/updatenotification\",\"user_status\":\"/apps/user_status\",\"viewer\":\"/apps/viewer\",\"weather_status\":\"/apps/weather_status\",\"welcome\":\"/custom_apps/welcome\",\"workflowengine\":\"/apps/workflowengine\"}",
"\"y-MM-dd\"",
0,
1686806433,
"[\"S\\u00f6ndag\",\"M\\u00e5ndag\",\"Tisdag\",\"Onsdag\",\"Torsdag\",\"Fredag\",\"L\\u00f6rdag\"]",
"[\"S\\u00f6n.\",\"M\\u00e5n.\",\"Tis.\",\"Ons.\",\"Tors.\",\"Fre.\",\"L\\u00f6r.\"]",
"[\"S\\u00f6\",\"M\\u00e5\",\"Ti\",\"On\",\"To\",\"Fr\",\"L\\u00f6\"]",
"[\"Januari\",\"Februari\",\"Mars\",\"April\",\"Maj\",\"Juni\",\"Juli\",\"Augusti\",\"September\",\"Oktober\",\"November\",\"December\"]",
"[\"Jan.\",\"Feb.\",\"Mar.\",\"Apr.\",\"Maj.\",\"Jun.\",\"Jul.\",\"Aug.\",\"Sep.\",\"Okt.\",\"Nov.\",\"Dec.\"]",
"1",
"{\"auto_logout\":false,\"blacklist_files_regex\":\"\\\\.(part|filepart)$\",\"loglevel\":0,\"lost_password_link\":null,\"modRewriteWorking\":true,\"no_unsupported_browser_warning\":false,\"session_keepalive\":true,\"session_lifetime\":1440,\"sharing.maxAutocompleteResults\":25,\"sharing.minSearchStringLength\":0,\"version\":\"27.0.0.8\",\"versionstring\":\"27.0.0\"}",
"{\"core\":{\"defaultExpireDateEnabled\":false,\"defaultExpireDate\":null,\"defaultExpireDateEnforced\":null,\"enforcePasswordForPublicLink\":false,\"enableLinkPasswordByDefault\":false,\"sharingDisabledForUser\":false,\"resharingAllowed\":true,\"remoteShareAllowed\":true,\"federatedCloudShareDoc\":\"https:\\/\\/docs.nextcloud.com\\/server\\/27\\/go.php?to=user-sharing-federated\",\"allowGroupSharing\":true,\"defaultInternalExpireDateEnabled\":false,\"defaultInternalExpireDate\":null,\"defaultInternalExpireDateEnforced\":null,\"defaultRemoteExpireDateEnabled\":false,\"defaultRemoteExpireDate\":null,\"defaultRemoteExpireDateEnforced\":null},\"files\":{\"max_chunk_size\":10485760}}",
"{\"entity\":\"\",\"name\":\"\",\"productName\":\"Nextcloud\",\"title\":\"\",\"baseUrl\":\"https:\\/\\/nc.bjx.be\",\"syncClientUrl\":\"https:\\/\\/nextcloud.com\\/install\\/#install-clients\",\"docBaseUrl\":\"https:\\/\\/docs.nextcloud.com\",\"docPlaceholderUrl\":\"https:\\/\\/docs.nextcloud.com\\/server\\/27\\/go.php?to=PLACEHOLDER\",\"slogan\":\"\",\"logoClaim\":\"\",\"folder\":\"\"}"
]
]
]
},
{
"file": "/var/www/html/lib/private/Template/JSConfigHelper.php",
"line": 302,
"function": "emit",
"class": "OC_Hook",
"type": "::",
"args": [
"\\OCP\\Config",
"js",
[
[
"false",
"false",
"true",
"false",
"\"\"",
"{\"activity\":\"/apps/activity\",\"bruteforcesettings\":\"/apps/bruteforcesettings\",\"calendar\":\"/custom_apps/calendar\",\"circles\":\"/apps/circles\",\"cloud_federation_api\":\"/apps/cloud_federation_api\",\"comments\":\"/apps/comments\",\"contacts\":\"/custom_apps/contacts\",\"contactsinteraction\":\"/apps/contactsinteraction\",\"dav\":\"/apps/dav\",\"epubreader\":\"/custom_apps/epubreader\",\"federatedfilesharing\":\"/apps/federatedfilesharing\",\"federation\":\"/apps/federation\",\"files\":\"/apps/files\",\"files_fulltextsearch\":\"/custom_apps/files_fulltextsearch\",\"files_pdfviewer\":\"/apps/files_pdfviewer\",\"files_rightclick\":\"/apps/files_rightclick\",\"files_sharing\":\"/apps/files_sharing\",\"files_trashbin\":\"/apps/files_trashbin\",\"files_versions\":\"/apps/files_versions\",\"firstrunwizard\":\"/apps/firstrunwizard\",\"fulltextsearch\":\"/custom_apps/fulltextsearch\",\"fulltextsearch_elasticsearch\":\"/custom_apps/fulltextsearch_elasticsearch\",\"logreader\":\"/apps/logreader\",\"lookup_server_connector\":\"/apps/lookup_server_connector\",\"nextcloud_announcements\":\"/apps/nextcloud_announcements\",\"notifications\":\"/apps/notifications\",\"oauth2\":\"/apps/oauth2\",\"onlyoffice\":\"/custom_apps/onlyoffice\",\"photos\":\"/apps/photos\",\"privacy\":\"/apps/privacy\",\"provisioning_api\":\"/apps/provisioning_api\",\"recommendations\":\"/apps/recommendations\",\"related_resources\":\"/apps/related_resources\",\"serverinfo\":\"/apps/serverinfo\",\"settings\":\"/apps/settings\",\"sharebymail\":\"/apps/sharebymail\",\"spreed\":\"/custom_apps/spreed\",\"support\":\"/apps/support\",\"survey_client\":\"/apps/survey_client\",\"systemtags\":\"/apps/systemtags\",\"text\":\"/apps/text\",\"theming\":\"/apps/theming\",\"twofactor_backupcodes\":\"/apps/twofactor_backupcodes\",\"updatenotification\":\"/apps/updatenotification\",\"user_status\":\"/apps/user_status\",\"viewer\":\"/apps/viewer\",\"weather_status\":\"/apps/weather_status\",\"welcome\":\"/custom_apps/welcome\",\"workflowengine\":\"/apps/workflowengine\"}",
"\"y-MM-dd\"",
0,
1686806433,
"[\"S\\u00f6ndag\",\"M\\u00e5ndag\",\"Tisdag\",\"Onsdag\",\"Torsdag\",\"Fredag\",\"L\\u00f6rdag\"]",
"[\"S\\u00f6n.\",\"M\\u00e5n.\",\"Tis.\",\"Ons.\",\"Tors.\",\"Fre.\",\"L\\u00f6r.\"]",
"[\"S\\u00f6\",\"M\\u00e5\",\"Ti\",\"On\",\"To\",\"Fr\",\"L\\u00f6\"]",
"[\"Januari\",\"Februari\",\"Mars\",\"April\",\"Maj\",\"Juni\",\"Juli\",\"Augusti\",\"September\",\"Oktober\",\"November\",\"December\"]",
"[\"Jan.\",\"Feb.\",\"Mar.\",\"Apr.\",\"Maj.\",\"Jun.\",\"Jul.\",\"Aug.\",\"Sep.\",\"Okt.\",\"Nov.\",\"Dec.\"]",
"1",
"{\"auto_logout\":false,\"blacklist_files_regex\":\"\\\\.(part|filepart)$\",\"loglevel\":0,\"lost_password_link\":null,\"modRewriteWorking\":true,\"no_unsupported_browser_warning\":false,\"session_keepalive\":true,\"session_lifetime\":1440,\"sharing.maxAutocompleteResults\":25,\"sharing.minSearchStringLength\":0,\"version\":\"27.0.0.8\",\"versionstring\":\"27.0.0\"}",
"{\"core\":{\"defaultExpireDateEnabled\":false,\"defaultExpireDate\":null,\"defaultExpireDateEnforced\":null,\"enforcePasswordForPublicLink\":false,\"enableLinkPasswordByDefault\":false,\"sharingDisabledForUser\":false,\"resharingAllowed\":true,\"remoteShareAllowed\":true,\"federatedCloudShareDoc\":\"https:\\/\\/docs.nextcloud.com\\/server\\/27\\/go.php?to=user-sharing-federated\",\"allowGroupSharing\":true,\"defaultInternalExpireDateEnabled\":false,\"defaultInternalExpireDate\":null,\"defaultInternalExpireDateEnforced\":null,\"defaultRemoteExpireDateEnabled\":false,\"defaultRemoteExpireDate\":null,\"defaultRemoteExpireDateEnforced\":null},\"files\":{\"max_chunk_size\":10485760}}",
"{\"entity\":\"\",\"name\":\"\",\"productName\":\"Nextcloud\",\"title\":\"\",\"baseUrl\":\"https:\\/\\/nc.bjx.be\",\"syncClientUrl\":\"https:\\/\\/nextcloud.com\\/install\\/#install-clients\",\"docBaseUrl\":\"https:\\/\\/docs.nextcloud.com\",\"docPlaceholderUrl\":\"https:\\/\\/docs.nextcloud.com\\/server\\/27\\/go.php?to=PLACEHOLDER\",\"slogan\":\"\",\"logoClaim\":\"\",\"folder\":\"\"}"
]
]
]
},
{
"file": "/var/www/html/lib/private/TemplateLayout.php",
"line": 240,
"function": "getConfig",
"class": "OC\\Template\\JSConfigHelper",
"type": "->",
"args": []
},
{
"file": "/var/www/html/lib/private/legacy/OC_Template.php",
"line": 182,
"function": "__construct",
"class": "OC\\TemplateLayout",
"type": "->",
"args": [
"guest",
"core"
]
},
{
"file": "/var/www/html/lib/public/AppFramework/Http/TemplateResponse.php",
"line": 213,
"function": "fetchPage",
"class": "OC_Template",
"type": "->",
"args": [
[
[],
"Logga in"
]
]
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 182,
"function": "render",
"class": "OCP\\AppFramework\\Http\\TemplateResponse",
"type": "->",
"args": []
},
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 183,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
[
"OC\\Core\\Controller\\LoginController"
],
"showLoginForm"
]
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 315,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OC\\Core\\Controller\\LoginController",
"showLoginForm",
[
"OC\\AppFramework\\DependencyInjection\\DIContainer"
],
[
"core.login.showLoginForm"
]
]
},
{
"file": "/var/www/html/lib/base.php",
"line": 1064,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/login"
]
},
{
"file": "/var/www/html/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/var/www/html/lib/autoloader.php",
"Line": 141,
"CustomMessage": "--"
},
"id": "648a9fa1e8d6a"
} |
OK it looks like And here is how they actually fixed it: ONLYOFFICE/onlyoffice-nextcloud@b181b54 |
@HyCore @benjaminfrombe #41 fixes the issue for me. |
When I try to install this app, I get the following error:
An error occurred during the request. Unable to proceed. Column "oc_reader_bookmarks"."content" is type String, but exceeding the 4.000 length limit.
I'm using Nextcloud 25.0.1 in a Docker environment.
The text was updated successfully, but these errors were encountered: