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

No "New Poll" button visible / json_decode error in the log #3283

Closed
5 of 12 tasks
pReya opened this issue Jan 30, 2024 · 4 comments
Closed
5 of 12 tasks

No "New Poll" button visible / json_decode error in the log #3283

pReya opened this issue Jan 30, 2024 · 4 comments
Labels

Comments

@pReya
Copy link

pReya commented Jan 30, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • I agree to follow Nextcloud's Code of Conduct.

What went wrong, what did you observe?

After upgrading to v28, somehow my Polls app stopped working. Whenever I enter the Polls app, the "New poll" button in the left sidebar is missing. Users can't see any polls.

The admin can see the polls through the "Administration" menu item.

At the same time, every time a user enters the App, there is the following error in the log:

[index] Error: json_decode(): Argument #1 ($json) must be of type string, null given in file '/var/www/html/apps/polls/lib/Db/Preferences.php' line 71
	GET /apps/polls/polls?time=1706647856873
	from xx.xxx.xx.xx by moritz at 30.01.2024, 21:50:56

What did you expect, how polls should behave instead?

  • Polls should be visible
  • "New Poll" button should be visible

What steps does it need to replay this bug?

Not sure how to recreate this. Must have happened during the upgrade from 27 to 28.

Installation method

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

Installation type

Updated from previous major version (i.e. 3.x.x to 4.x.x)

Affected polls version

6.0.1

Which browser did you use, when experiencing the bug?

  • Firefox
  • Chrome
  • Chromium/Chromium based (i.e. Edge)
  • Safari
  • Other/Don't know

Other browser

No response

Add your browser log here

No response

Additional client environment information

No response

NC version

Other/Don't know

Other Nextcloud version

28.0.1

PHP engine version

PHP 8.0

Other PHP version

No response

Database engine

MySQL

Database Engine version or other Database

No response

Which user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other/Don't know

Add your nextcloud server log here

No response

Additional environment informations

No response

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Additional Information

No response

@pReya pReya added the bug label Jan 30, 2024
@pReya pReya changed the title No "New Poll" button visible / No "New Poll" button visible / json_decode error in the log Jan 30, 2024
@dartcafe
Copy link
Collaborator

dartcafe commented Jan 30, 2024

See #3216, fixed in #3219 and targeted for version 6.1.0.

As a quick fix the user has to open his Polls preferences (lover left corner) once and change a setting.

@pReya
Copy link
Author

pReya commented Jan 30, 2024

See #3216, fixed in #3219 and targeted for version 6.1.0.

As a quick fix the user has to open his Polls preferences (lover left corner) once and change a setting.

Thanks! Sorry for not searching thoroughly.

@pReya pReya closed this as completed Jan 30, 2024
@dartcafe
Copy link
Collaborator

Thanks! Sorry for not searching thoroughly.

relax

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants