Open Juergen-Vollmer opened 2 months ago
Have you verified, you cleared your cache? I cannot reproduce that behavior.
Yes I cleared the browser caches. The same behaviour under
I opend the HTML-code of the polls page and opened firefox's web-developer tool and found ... see screenshot. I have no idea whether this helps :-)
Any relevant information inside the browser console?
Something seems to prevent loading the app properly.
I just tried another user account, for wich I never used polls before- and there it worked as expected.
I just a thrid account, which already had polls before, showing the "old" polls or creating a new one - in both caeses, it does not work.
In case of the error the browser console shows:
TypeError: (intermediate value)(...).user is null setup https://nextcloud.vollmer.computer/apps/polls/js/polls-main.mjs?v=7929802a-2859:169 E2 https://nextcloud.vollmer.computer/apps/polls/js/Spinner.vue_vue_type_style_index_0_scoped_4bfce222_lang-CgAHGH23.chunk.mjs:3 Ne https://nextcloud.vollmer.computer/apps/polls/js/Spinner.vue_vue_type_style_index_0_scoped_4bfce222_lang-CgAHGH23.chunk.mjs:3 ..... many more of these lines
Jürgen
I just tried: adding another user as administrator of the poll. That other user sees the options, i.e. everthing is ok. But still the original user does not see the options.
Any Idea?
Jürgen
Not until now. I am wondering where this comes from. But your observations are helpful, although I did not get behind the reason.
TypeError: (intermediate value)(...).user is null
Maybe the network tab can reveal an information, which user is null.
I think I have to build the alpha using dev mode, to get better information about the failing line. The linked code is not helpful, since it is minified.
I found another strange thing, the following message is written to nextcloud.log, but only in the error cases (user with "old polls")
More than 30 characters for an output column name are not allowed on Oracle.
it comes from the PHP file
src/lib/private/DB/QueryBuilder/QueryBuilder.php line:284 function prepareForExecute
If I add some debug info that source the columnname causing that error ist
current_user_count_orphaned_votes
May be that "orphaned" user is the user where the javascript interpreter complains
TypeError: (intermediate value)(...).user is null
(as shown in a previous messsage)
If I use another nextcloud user, who is now administrator of that poll, no error happens, and that user sees everything fine as it should be.
Any Idea about that? Jürgen
First of all thanks for the hint of
If I add some debug info that source the columnname causing that error is current_user_count_orphaned_votes
I shortened this names.
But i doubt, that this is the cause, since it would then also cause an error with the privileged users.
Seems that some information is cut of for non privileged users, but I could not reproduce it until now. Anyways, I changed some code also regarding the user properties. Additionally I changed the build to a dev build for alpha releases, so the console errors should lead to unminified code.
Did you install the alpha via appstore or manually?
I used the "standard" web-update mechanism.
If you tell me where i get the "alpha-code", fpr testeing, I can douwnload it and install it. Maybe you may add some debugging-output.
Jürgen
Just wanted to know. You should find a new alpha6 in the appstore.
I fixed some bugs and did some refactoring regarding users. Also the build is compiled as a dev build without minified code (I hope).
alpha7 is out, too.
BTW: If you do not find the release via the appstore, the latest builds are always found here.
Not until now. I am wondering where this comes from. But your observations are helpful, although I did not get behind the reason.
TypeError: (intermediate value)(...).user is null
Maybe the network tab can reveal an information, which user is null.
I think I have to build the alpha using dev mode, to get better information about the failing line. The linked code is not helpful, since it is minified.
gli
After the update, polls does not work anymore. It does not show up if clicking on the icon in the "menu line" in the nextcloud window. If I click on that iocn, I get the last action, e.g. visiting "mail" beofre and then "polls" the "mail" stuff ist shown again.
That happens for all users.
ok several deinstallation and installation of polls, polls shows up again, but the initial error ist still present. Jürgen
If I click on that icon, I get the last action, e.g. visiting "mail" before and then "polls" the "mail" stuff is shown again.
Ah, yeah. Damned. Since I changed the routes from the routes.php to attributes, there is no more named route for the main index. Have to fiddle that out.
But you are still able to enter the app via the url.
here it would help to know on what position the error is raised (see browser console). Since the build is build as dev build (nice sentence), the code position should be identifiable. And if you are able to, post the according API call from the network tab (mind sensitive information there).
If I click on that icon, I get the last action, e.g. visiting "mail" before and then "polls" the "mail" stuff is shown again.
Fixed in alpha8
Ok with alpha8,the click on poll works again for all users. Still the original problem still exists.
But I detected another problem one. Clicking on "Einstellungen" (configuration?) shows for the user with the wrong display of options the following (see screenshot)
For the nextcloud-user with correct shown options (the same poll) the second picture shows the expected configurations.
Ok, when I remember right, that problem exists since the begnning of this bug report.
Jürgen
I also can't reproduce that.
But I still need information from the browser log, to be able to analyze that or access to the instance. Everything else is guessing.
Thanks, but this are the server logs, which do not mention any relevant error (Besides some wrong named routes, which I fixed in #3749)
What I think I need is information from the browser's console, like you quoted in https://github.com/nextcloud/polls/issues/3702#issuecomment-2354747628
Here the borwser console logs
File 1: clicking on a poll, which showed the error
console-export-2024-10-13_20-26-17.txt
File 2: error when clicking the "Einstellungen" button
Since I need polls urgently, I deleted the app an installed manually (unpacking the tgz.gz file) polls-v7.2.4. Everything works fine again.
Jürgen
Good to hear. But from your words, I suspect you are running a productive installation with the beta channel. I strongly suggest, you switch back to the stable channel, since betas - and especially alphas - are expected to be not production ready and contain bugs.
Anyways, thanks for your effort and input. This is very valuable.
⚠️ This issue respects the following points: ⚠️
What went wrong, what did you observe?
After update to polls 8.0.0. alpha the middle part of the polls view with all the details is not shown anymore:
If I view an exported link of the poll, everything is ok:
What did you expect, how polls should behave instead?
The details of the second screenshot should be displayed ion the "owenwers" view, as described in hiere:
What steps does it need to replay this bug?
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
8.0.0.0 alpha 4
Which browser did you use, when experiencing the bug?
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
No response
PHP engine version
PHP 8.2
Other PHP version
Nextcloud Hub 9 (30.0.0 RC4)
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
List of activated Apps
No response
Nextcloud Signing status
Additional Information
No response