nextcloud / polls

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

Your Composer dependencies require a PHP version ">= 7.4.0" #2246

Closed ArnaudD-FR closed 2 years ago

ArnaudD-FR commented 2 years ago

When upgrading all extensions as usual with my NC 23.0.0.10, so polls has been upgrade I got the following message:

Your Composer dependencies require a PHP version ">= 7.4.0"

What is going wrong? What did you observe?

Your Composer dependencies require a PHP version ">= 7.4.0"

Steps to reproduce the behavior Upgrade the extension!

Add a screenshot of the misbehavior image

How should it work?

Extension upgrade should not break my instance!

Information about your polls installation

Polls: 3.5.0

How did you install this version?(Appstore or describe installation)

Information about your Instance of Nextcloud

Nextcloud version: 23.0.0.10

% sudo -u www-data php /var/www/nextcloud/occ app:list 
Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.31-1~deb10u1.

Enabled:
  - accessibility: 1.9.0
  - activity: 2.15.0
  - calendar: 3.0.5
  - circles: 23.0.0
  - cloud_federation_api: 1.6.0
  - collectives: 0.19.22
  - comments: 1.13.0
  - contacts: 4.0.7
  - contactsinteraction: 1.4.0
  - cospend: 1.4.3
  - dashboard: 7.3.0
  - dav: 1.21.0
  - external: 3.10.2
  - federatedfilesharing: 1.13.0
  - federation: 1.13.0
  - files: 1.18.0
  - files_markdown: 2.3.5
  - files_pdfviewer: 2.4.0
  - files_rightclick: 1.2.0
  - files_sharing: 1.15.0
  - files_trashbin: 1.13.0
  - files_versions: 1.16.0
  - files_videoplayer: 1.12.0
  - firstrunwizard: 2.12.0
  - logreader: 2.8.0
  - lookup_server_connector: 1.11.0
  - mail: 1.11.6
  - news: 915.4.5
  - nextcloud_announcements: 1.12.0
  - notifications: 2.11.1
  - oauth2: 1.11.0
  - password_policy: 1.13.0
  - photos: 1.5.0
  - polls: 3.5.0
  - privacy: 1.7.0
  - provisioning_api: 1.13.0
  - recommendations: 1.2.0
  - serverinfo: 1.13.0
  - settings: 1.5.0
  - sharebymail: 1.13.0
  - support: 1.6.0
  - survey_client: 1.11.0
  - systemtags: 1.13.0
  - text: 3.4.0
  - theming: 1.14.0
  - twofactor_backupcodes: 1.12.0
  - updatenotification: 1.13.0
  - user_status: 1.3.1
  - viewer: 1.7.0
  - weather_status: 1.3.0
  - workflowengine: 2.5.0
Disabled:
  - admin_audit
  - bbb
  - bruteforcesettings
  - encryption
  - files_external
  - previewgenerator
  - spreed
  - user_ldap
Nextcloud Configuration ``` % sudo -u www-data php /var/www/nextcloud/occ config:list system Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.31-1~deb10u1. { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "hashingCost": 10, "trusted_domains": [ "cloud.desmier.fr" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "version": "23.0.0.10", "dbtype": "mysql", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbname": "***REMOVED SENSITIVE VALUE***", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "dbtableprefix": "oc_", "sqlite.journal_mode": "DELETE", "installed": true, "forcessl": true, "default_language": "en", "default_locale": "fr", "default_phone_region": "fr", "defaultapp": "files", "knowledgebaseenabled": true, "enable_avatars": true, "allow_user_to_change_display_name": true, "remember_login_cookie_lifetime": 1296000, "session_lifetime": 86400, "session_keepalive": true, "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpdebug": false, "mail_smtpmode": "sendmail", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "25", "mail_smtptimeout": 10, "mail_smtpauthtype": "LOGIN", "overwritehost": "", "overwriteprotocol": "", "overwritewebroot": "", "overwritecondaddr": "", "overwrite.cli.url": "https:\/\/cloud.desmier.fr", "proxy": "", "proxyuserpwd": "***REMOVED SENSITIVE VALUE***", "trashbin_retention_obligation": "30, auto, auto", "appcodechecker": true, "updatechecker": true, "has_internet_connection": true, "check_for_working_webdav": true, "check_for_working_htaccess": true, "config_is_read_only": false, "log_type": "file", "logfile": "\/var\/log\/nextcloud.log", "loglevel": 0, "log.condition": { "shared_secret": "***REMOVED SENSITIVE VALUE***", "users": [ "sample-user" ], "apps": [ "files" ] }, "logdateformat": "F d, Y H:i:s", "logtimezone": "Europe\/Paris", "log_query": false, "cron_log": true, "cron.lockfile.location": "", "log_rotate_size": 104857600, "3rdpartyroot": "", "3rdpartyurl": "", "appstoreenabled": true, "apps_paths": [ { "path": "\/var\/www\/nextcloud\/apps", "url": "\/apps", "writable": true } ], "enable_previews": true, "preview_max_x": 2048, "preview_max_y": 2048, "preview_max_scale_factor": 10, "preview_max_filesize_image": 50, "preview_libreoffice_path": "\/usr\/bin\/libreoffice", "preview_office_cl_parameters": " --headless --nologo --nofirststartwizard --invisible --norestore -convert-to pdf -outdir ", "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown" ], "ldapUserCleanupInterval": 51, "maintenance": false, "singleuser": false, "memcache.local": "\\OC\\Memcache\\APCu", "memcached_servers": [ [ "localhost", 11211 ] ], "cache_path": "", "supportedDatabases": [ "sqlite", "mysql", "pgsql", "oci" ], "blacklisted_files": [ ".htaccess" ], "share_folder": "\/Shared", "theme": "", "cipher": "AES-256-CFB", "minimum.supported.desktop.version": "1.7.0", "quota_include_external_storage": false, "filesystem_check_changes": 1, "asset-pipeline.enabled": false, "assetdirectory": "...", "mount_file": "data\/mount.json", "filesystem_cache_readonly": false, "secret": "***REMOVED SENSITIVE VALUE***", "max_filesize_animated_gifs_public_sharing": 10, "filelocking.enabled": true, "updater.release.channel": "stable", "mysql.utf8mb4": true, "mail_sendmailmode": "smtp", "app_install_overwrite": [ "calendar", "news", "polls" ] } } ```

Server configuration (decide, if you think it is helpful)

Database:

PHP version:

Are you using an external user-backend, if yes which one: No

dartcafe commented 2 years ago

Damn. info.xml wasn't updated. I fear you have to downgrade to 3.4. Need assistence?

Copied from https://github.com/nextcloud/polls/issues/2246#issuecomment-1036295729

Steps to downgrade to 3.4.2: cd into your Nextcloud root (i.e. cd htdocs/nc/server)

Make sure the right and the owner of the files are set correctly!

There are no breaking changes in the database

3.5.2 does not solve this issue. It shouldn't be possible to install it via the appstore, if you are using PHP < 7.4.

ArnaudD-FR commented 2 years ago

No thanks, for the moment I disabled this app, I will downgrade it manually later

micah commented 2 years ago

Same thing happened here, it was not easy to find that this was the thing that broke, had to disable the polls to get things working again.

joergmschulz commented 2 years ago

is the downgrade as easy as I've done it: php occ app:delete polls wget (the 3.4 release) untar (the old release) php occ app:install polls

or do I have to do something else with the databases? Polls seems to be working again.

dartcafe commented 2 years ago

Confirming: cd into your Nextcloud root (i.e. cd htdocs/nc/server)

Make sure the right and the owner of the files are set correctly!

There are no breaking changes in the database

3.5.2 does not solve this issue. It shouldn't be possible to install it via the appstore, if you are using PHP < 7.4.

dartcafe commented 2 years ago

@EmJotGeh This cannot be the same error, because this is related to PHP 7.3. If this error still exists, please open another issue and help us by filling out the issue form.

EmJotGeh commented 2 years ago

@EmJotGeh This cannot be the same error, because this is related to PHP 7.3. If this error still exists, please open another issue and help us by filling out the issue form.

Sorry, my fault this is more the topic -> https://github.com/nextcloud/polls/issues/2252

github-actions[bot] commented 3 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.