Grav-plugin-admin: Incomplete styling appearance after upgrade

Created on 4 Feb 2021  路  12Comments  路  Source: getgrav/grav-plugin-admin

Hi,

I have a issue with grav 1.7 and grav-admin v1.10.3.

grav screenshot

Some styles are missing, I guess. And it seems that the viewport is fixed to 100vh, so everything is beyond is hidden (no scroll), which makes the interface unusable.

It is similar to this issue #2035 (except I don't have any installed plugin like imagecreate).

If it can help, here the full list on my plugins :

  • Admin Panel - v1.10.3
  • DevTools - v1.4.2
  • Email - v3.1.1
  • Error - v1.7.1
  • Flex Objects v1.0.2
  • Form v4.3.1
  • Login v3.4.0
  • Problems v2.0.3

I updated these plugins one by one from the interface. Everything was OK until I updated the plugin-admin (in last).

Tested on Firefox and Chrome (with refreshing the cache). With no result.

Any idea ?
Thanks !

Most helpful comment

It鈥檚 been fixed now in develop. We should have a release out soon.

All 12 comments

Do you have an assets/ folder at the root of your Grav and is it writable? This could be the cause as Admin 1.10 dynamically generates an assets/admin-preset.css based on the configuration in the Admin plugin.

@rhukster My bad.

The problem was elsewhere.

By playing with admin-preset.css, with no repercussion, I realized that something was wrong.

I had tried hard refreshes and deletion of browsing data. But it was necessary to purge Grav's cache FROM its interface.

Everything is back to normal now.
Thank you very much for your help (and for your work, obviously) !

@rhukster I've seen the same issue sometimes after upgrading from Admin 1.9 to 1.10. It is quite random though, sometimes it fails. To reproduce this I just downloaded some older version (grav+admin) and updated it from the admin plugin.

I have done that many times and not been able to reproduce it. :(

The issue still exists on v1.7.12. It seems the assets/admin-preset.css is generated with no content.

It鈥檚 been fixed now in develop. We should have a release out soon.

After upgrading Grav (v1.7.13) and its plugins (Admin v1.10.13) to the latest version with GPM, purging all cache with the UI of the admin plugin or the CLI with bin/grav cache-clear or rm -Rf cache/*, logging out and clearing all cookies and browser data, I have a style-less admin:

image

bin/grav security and bin/grav yamllinter show no error.

@xaa, I see you showed some love to the previous comment; are you impacted after upgrading?

The problem does not appear when developing locally on my vagrant box though (which known latency issues when doing codeception tests, if I remember well). :shrug:

hi @arkhi,
You've right I had similar issue before updating to Grav v1.7.13 - Admin v1.10.13. It seems fixed after updates.

Are you sure the /assets folder is writable in your project ?

Here, the assets/admin-presets.css is deleted if clearcache from the backend or cli.

Thanks for your feedback, @xaa.

Are you sure the /assets folder is writable in your project ?

I am sure. :/

I applied the permissions as stated in the documentation
https://learn.getgrav.org/17/troubleshooting/permissions and Grav does
not complain about wrong permissions. _assets/admin-presets.css_ is
generated, it鈥檚 just empty like before.

$ ls -la assets/
total 96
drwxrwxr-x 2 me www-data 4096 Apr 26 10:57 .
drwxrwxr-x 16 me www-data 4096 Apr 26 10:48 ..
-rw-rw-r-- 1 me www-data 84 Apr 20 19:05 .gitkeep
-rw-r--r-- 1 www-data www-data 40436 Apr 26 10:57 18b322aa4ad552f6331d358be2831e81.css
-rw-r--r-- 1 www-data www-data 41308 Apr 26 10:57 252121091e6983fca22c8bcae32f8277.js
-rw-r--r-- 1 www-data www-data 0 Apr 26 10:53 admin-preset.css

@arkhi
I would say that there's SCSS compilation error. Maybe some of your plugin settings don't compile properly?

Thank you @mahagr; you鈥檙e a real time saver.

I initially added scss files from plugins in _.gitignore_ and they were missing when deploying; the idea was that scss files should be compiled before being deployed. Deployments were working until now but I guess the introduction of the new admin plugin in the v1.7 changed the way things are working.

Thanks again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fourroses666 picture fourroses666  路  4Comments

ritchiedalto picture ritchiedalto  路  6Comments

CoDanny picture CoDanny  路  3Comments

Sommerregen picture Sommerregen  路  3Comments

wildafrica picture wildafrica  路  4Comments