Forums | Mahara Community

Support /
Profile Icons do not appear


anonymous profile picture
Account deleted
Posts: 7

28 April 2009, 9:02

Hi, any help appreciated  with a problem that I have on two separate installations of Mahara. 

Any images I upload do not appear - I just get a  missing image indicator. 

I've been through the installation guide several time, checked the logs (both apache and mysql) for this site Apache error logs do not show any problems. 

 

I've uploaded a file to my home directory displaying the problem

http://mahara.org/artefact/file/download.php?file=9398 

 

SERVERS SETUP

SUSE Enterprise 10.2 

Apache 2.2.3-16.18 

PHP 5.2.5 - all required extensions and imagick installed 

MySQL 5.1.34 

 

Thanks, 

Michael

Heinz Krettek's profile picture
Posts: 480

28 April 2009, 9:59

Hi Michael,

did you check the permission settings of your maharadata folder? It should be writeable (0777)

greetings from Black Forest (Germany)

Heinz

PS: If you want to show us your pic you should put it in a view and give access to the Mahara community group ;-)

anonymous profile picture
Account deleted
Posts: 7

29 April 2009, 4:08

Hi Heinz,

thanks for that, but altering permisons from 0770 -> 0777 had no effect.

 As you suggested I've created a view with images of the problem - see below

http://mahara.org/view/view.php?id=2212

Thanks,

Michael

anonymous profile picture
Account deleted
Posts: 1643

28 April 2009, 17:33

Hi - that suggests a problem with the thumb.php script. I would expect to see an error somewhere in the logs about this, but failing that, try opening a profile icon image directly in the browser and see if there is any helpful output.
anonymous profile picture
Account deleted
Posts: 7

29 April 2009, 4:18

I'll increase the logging and see if I get anything more interesting
anonymous profile picture
Account deleted
Posts: 7

29 April 2009, 5:15

Hi Nigel,

I increased the logging to debug on Apache for the error log (as I wasn't getting anything at 'warn' level) and tried to access an image in a seperate tab
/thumb.php?type=profileiconbyid&id=29&size=20x20

A View of this is avaialble at
http://mahara.org/view/view.php?id=2212

mahara112.access.log

131.111.86.233 - - [29/Apr/2009:12:04:53 +0100] "GET /thumb.php?type=profileiconbyid&id=29&size=20x20 HTTP/1.1" 200 1143 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
131.111.86.233 - - [29/Apr/2009:12:04:54 +0100] "GET /thumb.php?type=profileiconbyid&id=29&size=20x20 HTTP/1.1" 200 1143 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"

mahara112.error.log (at debug level)

[Wed Apr 29 12:04:54 2009] [debug] mod_headers.c(612): headers: ap_headers_output_filter()
[Wed Apr 29 12:04:54 2009] [debug] mod_headers.c(612): headers: ap_headers_output_filter()

Thanks,

Michael

anonymous profile picture
Account deleted
Posts: 1643

29 April 2009, 18:01

Hi - are you able to look at the image directly in firefox as well, just to double check there are no errors going to the screen? Sometimes a PHP error will be spit out by thumb.php, which firefox will display, but maybe IE continues to display it as a broken image.

Neither log looks to helpful I'm afraid - I was expecting to see some kind of Mahara-generated error message. Those lines you have in your error log look related to apache, not Mahara.

anonymous profile picture
Account deleted
Posts: 7

30 April 2009, 5:22

Hi Nigel,

I can confirm that in Firefox no PHP errors are being output to the screen :(

Yes the logs don't look like they have anything to do with Mahara.

Thanks,

Michael

 

anonymous profile picture
Account deleted
Posts: 1643

30 April 2009, 18:15

Hi - is your site available publicly somewhere? If it is then I could have a look around it. Even better if you're able to grant some kind of code-level access.
anonymous profile picture
Account deleted
Posts: 7

28 May 2009, 10:28

Hi,

thought I should post the solution to this problem that Nigel found when he  logged on to our server.

It was due to two extra lines at the bottom of our config.php

This in combination with  output_buffering = 4096 in our php.ini resulted in  the newlines  being output to the buffer.

The header line was being output, then after 4096 bytes or the end of the content (which ever came first), the content was being output - including those newlines.

 Thanks for sorting that Nigel.

Michael

10 results