nextcloud / polls

🗳️ Polls app for Nextcloud
https://apps.nextcloud.com/apps/polls
GNU Affero General Public License v3.0
257 stars 73 forks source link

Apps Polls not working anymore: Administration page and Polls page are blank. #3659

Closed llinty closed 3 months ago

llinty commented 3 months ago

⚠️ This issue respects the following points: ⚠️

What went wrong, what did you observe?

After updating to NC 27.1.11 Apps Polls is not working anymore. When a user click on Polls Shortcut or Polls administration tab the screen is empty without any error message. Same problem is occuring on Polls page.

What did you expect, how polls should behave instead?

I should be able to create or modify a Poll or simply anwser to a created Poll.

What steps does it need to replay this bug?

  1. Connect to NC as admin or as as user
  2. Go to Polls user setting (settings/user/polls)

Installation method

Installed/updated from the appstore (Apps section of your site)

Installation type

Updated from a minor version within same major version (i.e. 4.0.0 to 4.1.1)

Affected polls version

7.2.0

Which browser did you use, when experiencing the bug?

Other browser

No response

Add your browser log here

Content-Security-Policy: The page’s settings blocked an inline script (script-src-elem) from being executed because it violates the following directive: “script-src 'nonce-am4zNkx5a0JmS3BteG5jTXlqOUY1bzdTdWhiYktRa2xMb2JraGNHVU45bz06L0FxZ1gyMW5DZTRWbFFkYXYzMEwxYjM5L24zd1lEcEJUK3pRMWFUNlJZaz0=' blob: 'unsafe-eval'” inpage.js:1:334455
Loading failed for the module with source “https://xx.com/apps/polls/js/polls-main.mjs?v=3e4b7225-1”. polls:37:207
[DEBUG] core: this browser is officially supported ! 🚀 
Object { app: "core", uid: "admin", level: 0 }
ConsoleLogger.js:65:18
Proxying an event bus of version 3.3.1 with 1.3.0 2 index.es.js:2337:14
session heartbeat polling started session-heartbeat.js:103:9
Registering notifications container as a menu NotificationsApp.vue:237
Notifications permissions granted NotificationsApp.vue:480
Polling interval updated to 30000 NotificationsApp.vue:443
Started background fetcher as session_keepalive is enabled NotificationsApp.vue:293
[DEBUG] unified-search: Unified Search initialized with the following providers 
Object { 0: {…}, 1: {…}, 2: {…}, 3: {…}, 4: {…}, 5: {…}, 6: {…}, 7: {…}, 8: {…}, 9: {…}, … }
ConsoleLogger.js:65:18
Got notification data, restoring default polling interval. NotificationsApp.vue:399
browser is offline, stopping heartbeat session-heartbeat.js:180:10
Network is offline, slowing down pollingInterval to 300000 NotificationsApp.vue:281
Polling interval updated to 300000 NotificationsApp.vue:443
Started background fetcher as session_keepalive is enabled NotificationsApp.vue:293
session heartbeat polling stopped session-heartbeat.js:186:10
browser is online again, resuming heartbeat session-heartbeat.js:160:10
session heartbeat polling started session-heartbeat.js:103:9
OC.requestToken changed DPgAWL2q1kK5+wReg0V9TSLUiqS6Z6S/MIe+Vy/VSIM=:fo9aKPnMowbKqHQI9gczfhH7zs+RLpfbUe2KB0q7OtA= index.js:318:9
session token successfully updated after resuming network session-heartbeat.js:164:11
Network is online, reseting pollingInterval to 30000 NotificationsApp.vue:287
Polling interval updated to 30000 NotificationsApp.vue:443
Started background fetcher as session_keepalive is enabled NotificationsApp.vue:293

Additional client environment information

Using NGINX and PHP-FPM 8.1

nextcloud.conf file contains this block

location ~ .(?:css|mjs|js|svg|gif|png|jpg|ico|wasm|tflite|map)$ { try_files $uri /index.php$request_uri; expires 6M; # Cache-Control policy borrowed from .htaccess access_log off; # Optional: Don't log access to assets

    location ~ \.wasm$ {
        default_type application/wasm;
    }
}

NC version

Nextcloud 27

Other Nextcloud version

No response

PHP engine version

PHP 8.1

Other PHP version

No response

Database engine

MariaDB

Database Engine version or other Database

No response

Which user-backends are you using?

Add your nextcloud server log here

No response

Additional environment informations

No response

Configuration report

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.xx.com",
            "cloud.xx.local"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "27.1.11.3",
        "overwrite.cli.url": "https:\/\/cloud.xx.com",
        "overwriteprotocol": "https",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpsecure": "ssl",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "auth.bruteforce.protection.enabled": false,
        "htaccess.RewriteBase": "\/",
        "loglevel": 0,
        "logtimezone": "Europe\/Paris",
        "default_language": "fr",
        "default_locale": "fr_FR",
        "default_phone_region": "FR",
        "logfile": "\/var\/ncdata\/nextcloud.log",
        "log_rotate_size": 104857600,
        "cron_log": true,
        "filesystem_check_changes": 1,
        "quota_include_external_storage": false,
        "knowledgebaseenabled": false,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "filelocking.enabled": "true",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "maintenance": false,
        "theme": "",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown"
        ],
        "preview_max_x": 512,
        "preview_max_y": 512,
        "preview_max_scale_factor": 1,
        "updater.server.url": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp"
    }
}

List of activated Apps

Enabled:
  - activity: 2.19.0
  - cadviewer: 10.1.11
  - calendar: 4.7.15
  - calendar_resource_management: 0.7.0
  - circles: 27.0.1
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contacts: 5.5.3
  - contactsinteraction: 1.8.0
  - dashboard: 7.7.0
  - dav: 1.27.1
  - external: 5.2.1
  - externalportal: 1.3.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_mindmap: 0.0.30
  - files_pdfviewer: 2.8.0
  - files_reminders: 1.0.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - firstrunwizard: 2.16.0
  - guests: 2.5.2
  - impersonate: 1.14.0
  - integration_openai: 1.1.5
  - keeweb: 0.6.13
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - mail: 3.7.7
  - maps: 1.2.0
  - nextcloud_announcements: 1.16.0
  - notes: 4.10.1
  - notifications: 2.15.0
  - oauth2: 1.15.2
  - onlyoffice: 9.3.0
  - password_policy: 1.17.0
  - photos: 2.3.0
  - polls: 7.2.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - spreed: 17.1.10
  - support: 1.10.1
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - text: 3.8.1
  - theming: 2.2.0
  - twofactor_backupcodes: 1.16.0
  - updatenotification: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0
Disabled:
  - admin_audit: 1.17.0
  - audioplayer: 3.4.1 (installed 3.4.1)
  - bruteforcesettings: 2.7.0
  - encryption: 2.15.0
  - extract: 1.3.6 (installed 1.3.6)
  - files_external: 1.19.0
  - files_zip: 1.4.1 (installed 1.4.1)
  - holiday_calendars: 0.3.0 (installed 0.3.0)
  - suspicious_login: 5.0.0
  - twofactor_totp: 9.0.0
  - user_ldap: 1.17.0

Nextcloud Signing status

No errors have been found.

Additional Information

No response

llinty commented 3 months ago

It works now because I have to add this line

application/javascript mjs;

in mime.types file and reload Nginx server.

dartcafe commented 3 months ago

Yes https://github.com/nextcloud/polls/issues/3656#issuecomment-2298088390

CuriousHummingbird commented 3 months ago

Exactly the same problem here, but with Apache2. Adding application/javascript mjs to /etc/mime.types did not solve the problem. Any other ideas?

llinty commented 3 months ago

Did you added the ';' at the end of the line? Did you restart Apache2 server? If yes browse to Poll page and activate debug mode on your web browser. Check for any error on accessing URL ending with mjs.

github-actions[bot] commented 2 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.