-
Notifications
You must be signed in to change notification settings - Fork 43
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
Custom Pico theme selection does not list themes after upgrade to NC26 (and hacky workaround) #237
Comments
I found one (the?) culprit: the file admin.js calls |
Thank you @jochenwierum - after removing those lines , the themes are listed (cms_pico-1.0 branch). From what I can understand by the commit message from @PhrozenByte, these lines were added to enable a future theming API 4 years ago (see c82fd8d). As this refers to a function that is no longer available and doesn't seem to affect functionality, will it be safe to issue a PR for the removal of those lines? Do you feel there is risk or other impact to consider? |
Issue still persisting after upgrate to NC 27.0.0 |
I had the same issue with NC26 running in a docker container. I inadvertently managed to fix it when I set up cron.php to run to fetch NC News feeds. |
so what exactly did you setup in the cron.php? |
I simply used my local server's cron to run Docker's cron.php using: |
Hm..
This I have already but still it does not work in my case.
Am 20. Juni 2023, 21:52, um 21:52, Stephen Harlow ***@***.***> schrieb:
…I simply used my local server's cron to run Docker's cron.php using:
`*/15 * * * * docker exec -u www-data [container_name] php cron.php`
Then change Ajax to Cron in Settings > Basic settings.
(All [credit to Seismologo on
Redit)](https://www.reddit.com/r/NextCloud/comments/hat70n/comment/fv5lkr3/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button)
--
Reply to this email directly or view it on GitHub:
#237 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
Not sure how the cron comment relates to this issue. It is not resolved in later versions, my solution is to deploy a NC25 and create some shares between them for now. |
Same issue here. Cannot install themes.
Using Nextcloud 27.0.1 (under Docker) |
Any news on future compatibility updates. |
Same here! Still no progress?? I tried with NC26.0.7 to no avail! |
Is there any chance for an update to NC 26/27? Thanks a lot! |
This did not help me. The tooltips in the settings (personal as well as admin) sections do not display correctly, though (grey background, but only a hint of letters is visible). Copying the themes and plugins from the ../data/appdata_/cms_pico/ folder to the ../apps/cms_pico/appdata and ../apps/cms_pico/appdata_public/ folders also did not help (similar to @rcjcarr). There is, however some busy indicator running before the theme selection is shown, but I did not see any errors logged in the NC logs - would some logging help to identify the problem? NC 27.1.1 |
Fix is on the way, I've made a pull request. |
For those who might need to make it work immediatly, you can edit js/admin.js file and replace the line (205) containing |
I did that, and restarted the docker images, but saw no difference. However, at file admin.js when I commented out the lines 204-207 as described above, copy theme and list of themes worked, however, the dropdown still does not work. Using NC 26 |
I checked the open PRs and did not find anything related. I can create one if there is no one yet, or show us the PR link please |
I have no experience with docker, however I did experience some lag (maybe cache) when I made the changes. |
Hi, it looks like I am very close to applying the workaround to repair themes management but I need some help. Info : What I have done so far :
What I think could be the issues :
|
Nice to see progress on it ! |
Context
Background
Pico is listed as an untested app in NC26.
I did share this issue on IRC with @PhrozenByte who was kind enough to chat through, and plans testing of Pico & NC26 at some future point.
This issue may also relate to/duplicate #236 although I don't have enough specifics to confirm this.
The efforts with bringing Pico and themes to Nextcloud is very much appreciated!
Problem
After upgrading to NC26, the custom theme interface doesn't list installed themes, therefore these cannot be made available to users.
Specifically, the 'Reload theme' button on the right has no effect, and the dropdown of themes does not list any custom themes.
Looking at the code (I am not a coder), the function will read the folder listed above the box and offer these themes to be added to the installed themes. Behind the scenes, this runs basic validation of the themes, and copies them to an internal folder, for users to select.
Hacky workaround
To get past my today problem, I identified the internal themes folder, manually copied the appropriate theme folders, then added the list to the config array.
As soon as this is applied, the themes are available in the personal settings dropdown
Internal themes folder
SQL config
Hypothesis
I speculate that the issue relates to the theme copy function, theme validation or simply source file location.
However having no PHP / nextcloud app dev experience, don't have the debug tools to be able to narrow this down further without lots of guesswork. If someone can tell me how to print to the log file, I may be able to add more info.
The text was updated successfully, but these errors were encountered: