Skip to content
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

Open
MarslMarcello opened this issue Dec 1, 2022 · 18 comments
Open

Installation / Activation not possible on NC 25.0.1 #47

MarslMarcello opened this issue Dec 1, 2022 · 18 comments

Comments

@MarslMarcello
Copy link

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.

@thenamelessthing
Copy link

same thing here but not in docker. the application remains disabled even when activated.

@SPQRbx
Copy link

SPQRbx commented Dec 19, 2022

Did you notice that folks have been asking for support since NC23?

@NeoTheOne
Copy link

NeoTheOne commented Dec 19, 2022

Hey guys got the app working but without the settings page by removing

\OCP\App::registerPersonal('epubreader', 'personal');
and also doing the 4000 character limit fix from here: #44 (comment) .
In case you want something that kind of works...

@NeoTheOne
Copy link

NeoTheOne commented Dec 19, 2022

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.
Note that this also means you can't turn off the PDF reader.

@NeoTheOne
Copy link

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.

@devnoname120
Copy link

Any chance someone will publish a fixed version of this app? Possibly contact NextCloud to ask to take over the current (outdated) app.

@Luticus
Copy link

Luticus commented Apr 7, 2023

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.

@ghost
Copy link

ghost commented Apr 11, 2023

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":"--"}}

@fcki1984
Copy link

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.

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.

@ghost
Copy link

ghost commented May 12, 2023

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.

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 ;)

@maurerle
Copy link

maurerle commented May 12, 2023

Can confirm it works on nextcloud 26.x
You can use it from his fork: https://github.com/fcki1984/epubreader

wget https://github.com/fcki1984/epubreader/archive/refs/heads/master.zip
unzip master.zip
mv epubreader-master $custom_apps_folder/epubreader
# maybe chown the folder to the same user as the other custom_apps there
chown -R 82:82 $custom_apps_folder/epubreader

@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

@fcki1984
Copy link

Can confirm it works on nextcloud 26.x You can use it from his fork: https://github.com/fcki1984/epubreader

wget https://github.com/fcki1984/epubreader/archive/refs/heads/master.zip
unzip master.zip
mv epubreader-master $custom_apps_folder/epubreader
# maybe chown the folder to the same user as the other custom_apps there
chown -R 82:82 $custom_apps_folder/epubreader

@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

#48

@ghost
Copy link

ghost commented May 31, 2023

Can confirm it works on nextcloud 26.x You can use it from his fork: https://github.com/fcki1984/epubreader

wget https://github.com/fcki1984/epubreader/archive/refs/heads/master.zip
unzip master.zip
mv epubreader-master $custom_apps_folder/epubreader
# maybe chown the folder to the same user as the other custom_apps there
chown -R 82:82 $custom_apps_folder/epubreader

@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

#48

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?)

@devnoname120
Copy link

@HyCore Can you give us the backend logs? Additionally, are there any errors in the Chrome DevTools console?

@benjaminfrombe
Copy link

benjaminfrombe commented Jun 15, 2023

@HyCore Can you give us the backend logs? Additionally, are there any errors in the Chrome DevTools console?

{"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"}

@devnoname120
Copy link

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"
}

@devnoname120
Copy link

devnoname120 commented Jul 2, 2023

OK it looks like onlyoffice had the same issue: ONLYOFFICE/onlyoffice-nextcloud@v7.8.0...v8.0.0#diff-a1fbc5e00835fe64ab29d1a0fd9adc9e51e0401f157f3ee4ded802b03d9803e2

And here is how they actually fixed it: ONLYOFFICE/onlyoffice-nextcloud@b181b54

@devnoname120
Copy link

@HyCore @benjaminfrombe #41 fixes the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants