Skip to content

App not working #20

@Spitfireap

Description

@Spitfireap

Hey !
This app seems really great, unfortunately I can't find a way to make it works on NC21. I've installed gnupg and
php -i | grep -i gnupg do returns :
/usr/local/etc/php/ext-20-gnupg.ini, gnupg gnupg support => enabled
Unfortunately upon clicking on "Download server Key" I get redirected to mycloud.com/index.php/apps/gpgmailer/key/download/server but I get a file not found warning
Screenshot_20210516_140148.
And on the server there is no key folder under apps/gpgmailer/
GpgMailer do send a warning in the log
[gpgmailer] Error: Creating server GPG key pair failed. Emails are not going to be signed, expect keys are server keys imported manually POST /index.php/settings/apps/enable from XX.XX.XX.XX by adrien at 2021-05-16T12:11:55+00:00
I also get two log entries : `[PHP] Error: Error: sizeof(): Parameter must be an array or an object that implements Countable at /usr/local/www/nextcloud/apps/gpgmailer/lib/Service/Gpg.php#231 at <>

  1. <>
    OC\Log\ErrorHandler::onError(2, "sizeof(): Param ... e", "/usr/local/www/ ... p", 231, {email: "/////})
  2. /usr/local/www/nextcloud/apps/gpgmailer/lib/Service/Gpg.php line 231
    sizeof(false)
  3. /usr/local/www/nextcloud/apps/gpgmailer/lib/Settings/Personal.php line 84
    OCA\GpgMailer\Service\Gpg->getPublicKeyFromEmail("/////")
  4. /usr/local/www/nextcloud/apps-pkg/settings/lib/Controller/CommonSettingsTrait.php line 138
    OCA\GpgMailer\Settings\Personal->getForm()
  5. /usr/local/www/nextcloud/apps-pkg/settings/lib/Controller/PersonalSettingsController.php line 77
    OCA\Settings\Controller\PersonalSettingsController->formatSettings({10: [OCA\Settin ... ]})
  6. /usr/local/www/nextcloud/apps-pkg/settings/lib/Controller/CommonSettingsTrait.php line 149
    OCA\Settings\Controller\PersonalSettingsController->getSettings("security")
  7. /usr/local/www/nextcloud/apps-pkg/settings/lib/Controller/PersonalSettingsController.php line 68
    OCA\Settings\Controller\PersonalSettingsController->getIndexResponse("personal", "security")
  8. /usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 218
    OCA\Settings\Controller\PersonalSettingsController->index("security")
  9. /usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 127
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings\Con ... {}, "index")
  10. /usr/local/www/nextcloud/lib/private/AppFramework/App.php line 157
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con ... {}, "index")
  11. /usr/local/www/nextcloud/lib/private/Route/Router.php line 302
    OC\AppFramework\App::main("OCA\Settings\ ... r", "index", OC\AppFramework\ ... {}, {section: "secur ... "})
  12. /usr/local/www/nextcloud/lib/base.php line 993
    OC\Route\Router->match("/settings/user/security")
  13. /usr/local/www/nextcloud/index.php line 37
    OC::handleRequest()

GET /index.php/settings/user/security
from XX.XX.XX.XX by adrien at 2021-05-16T09:45:25+00:00`

as well as `[PHP] Error: Error: Invalid argument supplied for foreach() at /usr/local/www/nextcloud/apps/gpgmailer/lib/Service/Gpg.php#232 at <>

  1. /usr/local/www/nextcloud/apps/gpgmailer/lib/Service/Gpg.php line 232
    OC\Log\ErrorHandler::onError(2, "Invalid argument supplied for foreach()", "/usr/local/www/ ... p", 232, {email: "/////})
  2. /usr/local/www/nextcloud/apps/gpgmailer/lib/Settings/Personal.php line 84
    OCA\GpgMailer\Service\Gpg->getPublicKeyFromEmail("/////")
  3. /usr/local/www/nextcloud/apps-pkg/settings/lib/Controller/CommonSettingsTrait.php line 138
    OCA\GpgMailer\Settings\Personal->getForm()
  4. /usr/local/www/nextcloud/apps-pkg/settings/lib/Controller/PersonalSettingsController.php line 77
    OCA\Settings\Controller\PersonalSettingsController->formatSettings({10: [OCA\Settin ... ]})
  5. /usr/local/www/nextcloud/apps-pkg/settings/lib/Controller/CommonSettingsTrait.php line 149
    OCA\Settings\Controller\PersonalSettingsController->getSettings("security")
  6. /usr/local/www/nextcloud/apps-pkg/settings/lib/Controller/PersonalSettingsController.php line 68
    OCA\Settings\Controller\PersonalSettingsController->getIndexResponse("personal", "security")
  7. /usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 218
    OCA\Settings\Controller\PersonalSettingsController->index("security")
  8. /usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 127
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings\Con ... {}, "index")
  9. /usr/local/www/nextcloud/lib/private/AppFramework/App.php line 157
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con ... {}, "index")
  10. /usr/local/www/nextcloud/lib/private/Route/Router.php line 302
    OC\AppFramework\App::main("OCA\Settings\ ... r", "index", OC\AppFramework\ ... {}, {section: "secur ... "})
  11. /usr/local/www/nextcloud/lib/base.php line 993
    OC\Route\Router->match("/settings/user/security")
  12. /usr/local/www/nextcloud/index.php line 37
    OC::handleRequest()

GET /index.php/settings/user/security
from XX.XX.XX.XX by adrien at 2021-05-16T09:45:25+00:00`

Also regarding importing my own public key, I try to copy it from thunderbird and pasting, but I get an "Error importing public key"...

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions