You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-04-28 16:12:12

dumis
Member
Registered: 2009-04-28
Posts: 4

Problem with view pdf, image ang others attachment.

Hi,

I have probem with viewing pdf, images, etc. attachments in GLPI, only text files are opening in my browser. I tested IE7,8 & FireFox3 in all cases dosen't work. I also tested https & http access - dosen't work.

I have instaled XAMPP 1.5.5 with OCS Inventowt NG & GLPI v.0.71.2 on MS Windows 2003 Std.

I have no idea where is error? In GLPI or Apache or PHP or MySQL?

If somebody has similar problem, please write.

When I open exp. pdf file I have this file in text mode. When I save page as file *.pdf on my desktop I can open it via Adobe Reader.

Offline

#2 2009-04-29 09:30:44

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Problem with view pdf, image ang others attachment.

http://glpi-project.org/forum/viewtopic.php?id=10279

(we need informations of debug mode)


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2009-04-30 08:38:07

dumis
Member
Registered: 2009-04-28
Posts: 4

Re: Problem with view pdf, image ang others attachment.

In debug mode I have something like this:

PHP ERROR: Cannot modify header information - headers already sent by (output started at ...\plugins\state\locales\en_GB.php:1) in ...\inc\common.function.php at line 1057
PHP ERROR: Cannot modify header information - headers already sent by (output started at ...\plugins\state\locales\en_GB.php:1) in ...\inc\common.function.php at line 1058
PHP ERROR: Cannot modify header information - headers already sent by (output started at ...\plugins\state\locales\en_GB.php:1) in ...\inc\common.function.php at line 1060
PHP ERROR: Cannot modify header information - headers already sent by (output started at ...\plugins\state\locales\en_GB.php:1) in ...\inc\common.function.php at line 1061
PHP ERROR: Cannot modify header information - headers already sent by (output started at ...\plugins\state\locales\en_GB.php:1) in ...\inc\common.function.php at line 1062

Offline

#4 2009-04-30 09:28:23

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Problem with view pdf, image ang others attachment.

create folder 'old' in plugins folder and move state plugin into and reload browser and test.


Xavier Caillaud
Blog GLPI Infotel

Offline

#5 2009-04-30 11:01:30

dumis
Member
Registered: 2009-04-28
Posts: 4

Re: Problem with view pdf, image ang others attachment.

I tested it works - thanks.

But generally what do this plugin do? Can I move it to old folder without any lossing my functionality?

Offline

#6 2009-04-30 11:13:29

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Problem with view pdf, image ang others attachment.

this plugin is a financial report

For use this plugin :
duplicate fr_FR.php file
In the duplicate file, copy the data of the en_EN.php
rename en_EN.php to en_EN0.php
rename fr_FR.php to en_EN.php

And test big_smile


Xavier Caillaud
Blog GLPI Infotel

Offline

#7 2009-04-30 11:52:20

dumis
Member
Registered: 2009-04-28
Posts: 4

Re: Problem with view pdf, image ang others attachment.

I do as you write and it's ok.

But also I have this in some cases:

PHP ERROR: Undefined offset: 8 in E:\Program Files\OCS Inventory NG\xampp\htdocs\helpdesk\plugins\archires\setup.php at line 222
PHP ERROR: Cannot modify header information - headers already sent by (output started at ...\inc\common.function.php:160) in ...\inc\display.function.php at line 57
PHP ERROR: Cannot modify header information - headers already sent by (output started at ...\inc\common.function.php:160) in ...\inc\display.function.php at line 1944
PHP ERROR: Cannot modify header information - headers already sent by (output started at ...\inc\common.function.php:160) in ...\inc\display.function.php at line 1945

Offline

Board footer

Powered by FluxBB