snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Label logo not showing up

Open thetiagomatos opened this issue 5 years ago • 10 comments

Please confirm you have done the following before posting your bug report:

Describe the bug A clear and concise description of what the bug is.

Label logo not showing up on the labels.

To Reproduce Steps to reproduce the behavior:

  1. Go to settings
  2. Click on branding
  3. Scroll down to label logo
  4. upload logo image
  5. generate labels
  6. see label not showing up

Expected behavior A clear and concise description of what you expected to happen.

Logo showing up on the top right of the labels

Screenshots If applicable, add screenshots to help explain your problem.

Not needed

Server (please complete the following information):

  • Snipe-IT Version 5.1.0
  • OS: [e.g. Ubuntu, CentOS] Ubuntu Server
  • Web Server: [e.g. Apache, IIS] nginx
  • PHP Version 7.2.24

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 10
  • Browser [e.g. chrome, safari] chrome
  • Version [e.g. 22] 88.0.4324.150

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Error Messages

  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo.
  • Include any additional information you can find in storage/logs and your webserver's logs.
  • Include the output from php -m (this should display what modules you have enabled.)

No errors whatsoever

Additional context

  • Is this a fresh install or an upgrade? Upgrade
  • What OS and web server you're running Snipe-IT on: Ubuntu Server
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc): Manual
  • Include what you've done so far in the installation, and if you got any error messages along the way. Customized footer and label templates.
  • Indicate whether or not you've manually edited any data directly in the database: No.

Add any other context about the problem here.

After a while, i noticed on the labels template code (labels.blade.php), there is no code regarding the logo, there is no way the template is pulling a logo without the respective code. At least i think there is not.

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

thetiagomatos avatar Feb 17 '21 10:02 thetiagomatos

I too am having this issue on 5.1.2. I'm using the GD Library v2.3.0 to generate labels.

lravelo avatar Mar 01 '21 16:03 lravelo

Same Problem under 5.1.5, Ubuntu Server 18.04, Upgraded Snipe-IT, installed via Git, Upgraded via upgrade.php Language: German, Browser: Chrome

In Addition i realised, that theres the QR Code missing in de Detailed View of an asset: image

Maybe theres a context

groste-ams avatar Apr 28 '21 12:04 groste-ams

I'm with the same problem

marianampc avatar May 28 '21 17:05 marianampc

I think this is already fixed on master

snipe avatar May 28 '21 17:05 snipe

I'm running version 5.1.5 and the logo isn't displaying. QR code does show.

ghq55 avatar Jun 25 '21 13:06 ghq55

Same Problem under 5.1.5, Ubuntu Server 18.04, Upgraded Snipe-IT, installed via Git, Upgraded via upgrade.php Language: German, Browser: Chrome

In Addition i realised, that theres the QR Code missing in de Detailed View of an asset: image

When I right click the place holder for the QR-code I see this code:

QR code for Cookiejar (S1) - Server - Container

When I change http://localhost/ to https://example.com/ the QR-code shows up. It might be the same for the labels?

Not sure where this code lives in the source tree, but replacing localhost with the HOSTNAME variable should resolve this.

Blue3agle avatar Aug 09 '21 10:08 Blue3agle

upgrading to 5.1.8 fixed this for me but now I have another issue entirely. Now that the label shows up, instead of detecting the space prior to the word that would've run into the area where the logo is, it just cuts whatever word is there and breaks to a new line from there. I will open another issue related to this.

lravelo avatar Aug 10 '21 17:08 lravelo

before This is my current web logo, as you might be able to see, the src is a bit weird ->. src="asetpendang.cf/uploads/setting-logo-aTYJbym25h.png"

it was supposed to be -->> src="uploads/setting-logo-aTYJbym25h.png"

After i edit it on my browser using inspect, its confirmed my suspicion

after

fyruz85 avatar Oct 30 '22 08:10 fyruz85

APP_ENV=production APP_DEBUG=false APP_KEY=... APP_URL=https://snipe.yourdomain.com APP_TIMEZONE='UTC' APP_LOCALE=en

Make sure you have HTTPS:// in your .env file

This domain may be for sale!

tjsims1 avatar Nov 16 '22 05:11 tjsims1

thank you for your help...it works

On Wed, Nov 16, 2022 at 1:17 PM tjsims1 @.***> wrote:

APP_ENV=production APP_DEBUG=false APP_KEY=... APP_URL=https://snipe.yourdomain.com APP_TIMEZONE='UTC' APP_LOCALE=en

Make sure you have HTTPS:// in your .env file

yourdomain.com https://snipe.yourdomain.com/ This domain may be for sale!

— Reply to this email directly, view it on GitHub https://github.com/snipe/snipe-it/issues/9152#issuecomment-1316364718, or unsubscribe https://github.com/notifications/unsubscribe-auth/A34VAB523KBCZBBOJ7FYXVLWIRU6NANCNFSM4XYBZKOA . You are receiving this because you commented.Message ID: @.***>

--

"Penjana Generasi ICT Terbilang"

Mohd Fairuz Afif Bin Mohd Isa Sekolah Kebangsaan Pokok Tai

fyruz85 avatar Nov 16 '22 05:11 fyruz85