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

MantisBT 2.1.0 icons #18

Closed
achoscz opened this issue Mar 2, 2017 · 38 comments
Closed

MantisBT 2.1.0 icons #18

achoscz opened this issue Mar 2, 2017 · 38 comments

Comments

@achoscz
Copy link

achoscz commented Mar 2, 2017

Hi,
i dont see icons :/
i test uninstall all plugins and dont works :/
windows 10 FF, IE, Chrome same problem
Some ideas?
Thankssnag-0000

@Kirill
Copy link
Member

Kirill commented Mar 13, 2017

Check files on server and access to it
/plugin_file.php?file=BBCodePlus/markitup/sets/mantis/images/bold.png

@achoscz
Copy link
Author

achoscz commented Mar 13, 2017

I see this. Is it OK? snag-0000

@Kirill
Copy link
Member

Kirill commented Mar 13, 2017

not. you must see this
2017-03-13 11_03_24

@achoscz
Copy link
Author

achoscz commented Mar 13, 2017

All folders and files have the attributes 777. Some bad?

@Kirill
Copy link
Member

Kirill commented Mar 13, 2017

What apache or nginx log told?

@achoscz
Copy link
Author

achoscz commented Mar 13, 2017

This is the right address? https://******.cz/plugin_file.php?file=BBCodePlus/markitup/sets/mantis/images/bold.png If I change bold.png on FTP another picture, so I still loading the original one

@achoscz
Copy link
Author

achoscz commented Mar 13, 2017

others image with tranparent backround on site is ok

@Kirill
Copy link
Member

Kirill commented Mar 13, 2017

other not plugin?
what's in apache log?

@achoscz
Copy link
Author

achoscz commented Mar 13, 2017

plugins/BBCodePlus/files/markitup/sets/default/images/bold.png is ok, but plugin_file.php?file=... is problem.
for log moment

@Kirill
Copy link
Member

Kirill commented Mar 13, 2017

@achoscz , it's mean that your site can't render image by plugin. For example, you have nginx <-> apache <-> php. For image you have settings in nginx, but nginx don't know about php and can't put image from plugin. Check it and if nginx has this settings, try comment it and see result.

@achoscz
Copy link
Author

achoscz commented Mar 13, 2017

Apache Log

Error.txt
[Mon Mar 13 06:25:02.633717 2017] [ssl:warn] [pid 731] AH01909: prg-srv-web:443:0 server certificate does NOT include an ID which matches the server name [Mon Mar 13 06:25:02.634442 2017] [mpm_prefork:notice] [pid 731] AH00163: Apache/2.4.10 (Debian) mpm-itk/2.4.7-02 OpenSSL/1.0.1k configured -- resuming normal operations [Mon Mar 13 06:25:02.634457 2017] [core:notice] [pid 731] AH00094: Command line: '/usr/sbin/apache2'
or
access.log
[13/Mar/2017:11:29:16 +0100] "GET /plugins/BBCodePlus/files/markitup/sets/default/images/bold.png HTTP/1.1" 200 784 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"

@Kirill
Copy link
Member

Kirill commented Mar 13, 2017

This what I mean... Apache don't write log for access plugin_file.php?file=..., because all request ended to image file worked by nginx.

@achoscz
Copy link
Author

achoscz commented Mar 13, 2017

How settings Nginx? We do not use Nginx

@Kirill
Copy link
Member

Kirill commented Mar 13, 2017

Can you send me domain name of your installation?

@bkraul
Copy link
Member

bkraul commented Mar 13, 2017

@achoscz What does the Chrome Web Developer Tools console say?

You can access it by going to the menu, and select More Tools -> Developer Tools, or by pressing Ctrl + Shift + I. It looks like this.

image

Usually if there are any items blocked you will see them in red. This could be an issue of CSP restrictions.

Please refer to this issue.

@achoscz
Copy link
Author

achoscz commented Mar 14, 2017

https://bt.mediclinic.cz

@achoscz
Copy link
Author

achoscz commented Mar 14, 2017

@bkraul FF, IE and Edge same problem :/
snag-0000

@Kirill
Copy link
Member

Kirill commented Mar 14, 2017

@achoscz , sorry. I can't access to this site. Try open Console and Refresh page

@achoscz
Copy link
Author

achoscz commented Mar 14, 2017

@Kirill refresh and same window

@achoscz
Copy link
Author

achoscz commented Mar 14, 2017

@Kirill i can run teamviewer

@Kirill
Copy link
Member

Kirill commented Mar 14, 2017

@achoscz can you contact with me on skype krasnov.kirill ?

@achoscz
Copy link
Author

achoscz commented Mar 14, 2017

@Kirill added (premek.parma)

@bkraul
Copy link
Member

bkraul commented Mar 17, 2017

@achoscz Your screenshot shows the 'Sources' tab of the developer tools. I am interested on the 'Console' tab. I want to see what errors you are getting that are preventing the images to load:

image

@achoscz
Copy link
Author

achoscz commented Mar 17, 2017

@bkraul
snag-0001

@bkraul
Copy link
Member

bkraul commented Mar 17, 2017

Those JS timeouts don't look good. I tried to access your site but apparently it is not available to the outside world?

@achoscz
Copy link
Author

achoscz commented Mar 17, 2017

@bkraul only allowed in my country :/

@bkraul
Copy link
Member

bkraul commented Mar 17, 2017

Czech Republic? let me see if I can access it through a proxy. I'll let you know what I find. While we are at it, is there any way you can create me a reporter user account to test? Shoot me the access data at bkraul@yahoo.com .

@bkraul
Copy link
Member

bkraul commented Mar 17, 2017

I can see your site. Now I just need the account to access.

@achoscz
Copy link
Author

achoscz commented Mar 17, 2017

@bkraul test pass: test123

@bkraul
Copy link
Member

bkraul commented Mar 17, 2017

@achoscz I logged in and cannot see the images just like you, so I tried accessing a single image by using the direct URL of one of the images, such as this:

https://bt.mediclinic.cz/plugin_file.php?file=BBCodePlus/markitup/sets/mantis/images/bold.png

The error I get was this:

The image "https://bt.mediclinic.cz/plugin_file.php?file=BBCodePlus/markitup/sets/mantis/images/bold.png" cannot be displayed because it contains errors.

So, I downloaded the file in order to check if it is outputting as a valid PNG, and what I found out is that it is not. Take a look at the first bytes of a valid PNG file:

89 50 4E 47 0D which translates to ASCII as ‰PNG

But your installation is outputting the image as:

EF BB BF 89 50 4E 47 0D which translates to ASCII as ‰PNG.

This means, that somewhere in your installation, there is output being done BEFORE the image headers are written by plugin_file.php. It could be as simple as an incorrectly encoded php file, or maybe if you have updated /config/config.inc.php and added an incorrect space or character. There is really no way to tell. I suppose you could send me your whole web directory zipped (I don't need the database as I can create a new one), so that I can pin point where the offending data chunk is.

Have you tried disabling any other non-core plugins and see if that helps?

@bkraul
Copy link
Member

bkraul commented Mar 17, 2017

More info. I can confirm that you have a script encoding issue. The offending bytes, EF BB BF are what is called a Byte Order Mark, or BOM for short. Your php files should be encoded as UTF-8 without BOM. This is what your problem is. You might want to try re-downloading plugin_file.php from the original install and replacing your existing one. However, if that works, there is a chance you have more files like that, and you probably need to refresh your whole installation.

@bkraul
Copy link
Member

bkraul commented Mar 17, 2017

@achoscz Please do not forget to report back once your issue is resolved, so as to close this issue.

@achoscz
Copy link
Author

achoscz commented Mar 20, 2017

@bkraul ok
i test:

  • UTF-8 without BOM
  • Replace plugin_file.php
    still same problem :(
    here is zipped directory
    https://drive.google.com/open?id=0B1sUrhFsgUQcUWNVOTM4eVgwWTg

@bkraul
Copy link
Member

bkraul commented Mar 20, 2017

This is odd. I set up your files on a host to test, and this is the result I get using your same files. I know it is an encoding problem, I just wish I could troubleshoot your actual set up, as I seem unable to replicate your issue.
image

@atrol
Copy link
Member

atrol commented Mar 20, 2017

@bkraul I assume you will able to reproduce the issue if you change language to Czech.
The file lang/strings_czech.txt has been changed (of course you should never change the file) and is stored with BOM.

@bkraul
Copy link
Member

bkraul commented Mar 20, 2017

Thanks @atrol I am not sure. I tried it with czech and it still showed images. My guess is that the database encoding also has something to do with it (I do not have his database). In any case, files such as the one you mention should be without BOM. I use utf8_general_ci as my mysql db encoding. @achoscz, what is the encoding of your db?

@achoscz
Copy link
Author

achoscz commented Mar 21, 2017

@bkraul utf8 general ci

@bkraul
Copy link
Member

bkraul commented Apr 20, 2017

Closed as an environment issue unrelated to BBCodePlus.

@bkraul bkraul closed this as completed Apr 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants