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

Themes broken in 5.2.0 container? #367

Closed
YouveGotMeowxy opened this issue May 27, 2022 · 4 comments
Closed

Themes broken in 5.2.0 container? #367

YouveGotMeowxy opened this issue May 27, 2022 · 4 comments
Assignees
Labels

Comments

@YouveGotMeowxy
Copy link

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

Don't know. All I did was update the container to the latest and now themes wont load. I may be wrong, but it seems like the path is wrong? (see screenshot).

Expected behavior

Themes load.

Screenshots

image

Server configuration

  • Operating system: Ubuntu latest in docker desktop wsl2
@williamdes
Copy link
Member

Hi @YouveGotMeowxy
This is quite strange, can you share your docker-compose file ?

@williamdes williamdes transferred this issue from phpmyadmin/phpmyadmin May 27, 2022
@YouveGotMeowxy
Copy link
Author

YouveGotMeowxy commented May 27, 2022

Hi @YouveGotMeowxy This is quite strange, can you share your docker-compose file ?

Happy to. :)

  phpmyadmin:
    hostname: 'phpmyadmin'
    image: 'phpmyadmin/phpmyadmin:latest'
    environment:
      TZ: 'America/Chicago'
      PMA_HOST: 'mysql'
      MYSQL_ROOT_PASSWORD_FILE: '/run/secrets/MySQL-PW'
      PMA_ABSOLUTE_URI: 'https://phpmyadmin.redacted.com/'
    volumes:
      - '/opt/docker/configs/phpmyadmin/saved:/saved:rw'
      - '/opt/docker/configs/phpmyadmin/upload:/upload:rw'
      - '/opt/docker/configs/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php:ro'
      - '/opt/docker/configs/phpmyadmin/themes:/var/www/html/themes:ro'
    secrets:
      - 'MySQL-PW'
    networks:
      - 'mysql'
    deploy:
      mode: 'replicated'
      replicas: 1
      placement:
        constraints:
          - 'node.labels.Main == true'
      restart_policy:
        condition: 'any'

@williamdes
Copy link
Member

So one of the first things I would advise is using the Docker official image (more to learn in #363)

- image: 'phpmyadmin/phpmyadmin:latest'
+ image: 'phpmyadmin:latest'

Then, you should check the permissions in /opt/docker/configs/phpmyadmin/themes for the container to be able to read them
That said I would advise mounting only the theme you need if you only want to add one.
It would allow the default themes to remain in the Docker image and will solve the issue you are having.

- - '/opt/docker/configs/phpmyadmin/themes:/var/www/html/themes:ro'
+ - '/opt/docker/configs/phpmyadmin/themes/favoritetheme:/var/www/html/themes/favoritetheme:ro'

@YouveGotMeowxy
Copy link
Author

YouveGotMeowxy commented May 30, 2022

@williamdes THANK YOU!

I followed all 3 suggestions and it works now. I'm not sure which one did it, though, lol

I'm guessing the permissions. My entire phpmyadmin config mount is set as the docker user (1000), but somehow the themes folder got set to root (not being a linux user I didnt even think to look at perms, since it worked previously). I set it recursively to 1000 again so it matches the rest, and now everything loads again. wewt! :)

I appreciate it so much! Viva La Fronce! :-P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants