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

Cannot change Dashboard logo in v4.5.5 #15318

Closed
WebShapedBiz opened this issue Jan 2, 2023 · 10 comments
Closed

Cannot change Dashboard logo in v4.5.5 #15318

WebShapedBiz opened this issue Jan 2, 2023 · 10 comments
Assignees
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:admin Source is core/admin package status: confirmed Confirmed by a Strapi Team member or multiple community members

Comments

@WebShapedBiz
Copy link

Bug report

Required System information

  • Node.js version: 16.13.1
  • NPM version: 8.19.2
  • Strapi version: 4.5.5
  • Database: Postgres
  • Operating system: elementaryOS 6.1 (Ubuntu 20.04 based distro)

Describe the bug

Hi,
Using Strapi v4.5.5 when I try to change the logo (png file that I've used before) I receive Warning: An error occurred message in the Dashboard and in the terminal I get error: Cannot read properties of undefined (reading 'menuLogo')

Steps to reproduce the behavior

  1. Go to 'Settings'
  2. In the Customization section, Logo, click on the + sign to change the logo
  3. Select and upload the new logo file
  4. The new logo is immediately shown in the Customization section as a preview, so that's working
  5. Clicking Save displays Warning: An error occurred

Expected behavior

To be able to change the logo

Screenshots

A screencast of the issue

Cheers.

@simonwidjaja
Copy link

Same here. Double checked and I can reproduce the error with a fresh install of Strapi (4.5.5).
I get the same warning in the UI but no error in the terminal.
The new logo is briefly shown in the upload preview section. After the warning nothing happens and the blue strapi logo still remains.

@simonwidjaja
Copy link

FYI: I successfully changed the logo (and admin title and subtitle) using the config file (src/admin/app.tsx).

image

@WebShapedBiz
Copy link
Author

Thank you @simonwidjaja for this

@anuragsharanjuspay
Copy link

Facing the same issue, the menuLogo being sent in the request is {}

Screenshot 2023-01-06 at 1 04 20 PM

@n3b0r
Copy link

n3b0r commented Jan 8, 2023

Same issue here.

@eucciferri
Copy link

Same issue here!

@ronronscelestes ronronscelestes added status: confirmed Confirmed by a Strapi Team member or multiple community members issue: bug Issue reporting a bug source: core:admin Source is core/admin package labels Jan 10, 2023
@derrickmehaffy derrickmehaffy added the severity: medium If it breaks the basic use of the product but can be worked around label Jan 17, 2023
@derrickmehaffy
Copy link
Member

Reproducible on v4.5.6, Admin API responds with:

{
  "data": null,
  "error": {
    "status": 400,
    "name": "ValidationError",
    "message": "menuLogo must be a `string` type, but the final value was: `{}`.",
    "details": {
      "errors": [
        {
          "path": ["menuLogo"],
          "message": "menuLogo must be a `string` type, but the final value was: `{}`.",
          "name": "ValidationError"
        }
      ]
    }
  }
}

From the URL: http://localhost:1337/admin/project-settings

@joshistoast
Copy link

Still dealing with this issue in 4.5.6

@ronronscelestes ronronscelestes self-assigned this Jan 24, 2023
@ronronscelestes
Copy link
Contributor

hi, thank you everyone for reporting this issue 🙂
this should be fixed by this PR and released today!

@derrickmehaffy
Copy link
Member

Closing as should be fixed in v4.6.0 that was released yesterday

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:admin Source is core/admin package status: confirmed Confirmed by a Strapi Team member or multiple community members
Projects
Status: Fixed/Shipped
Archived in project
Development

No branches or pull requests

8 participants