Page 1 of 1
browser viewing problem
Posted: Fri Apr 06, 2007 8:38 pm
by gogo123
I have set up my website and I can view it fine with navigation bar background and banner in windows explorer but for some reason the style sheets doesn't display when I use firefox - Is there some setting that I need to change. In firefox I get minimal template without having chosen it
Any suggestions?
Re: browser viewing problem
Posted: Fri Apr 06, 2007 8:46 pm
by Nullig
Can you give us a link?
Nullig
Re: browser viewing problem
Posted: Fri Apr 06, 2007 9:34 pm
by gogo123
Re: browser viewing problem
Posted: Fri Apr 06, 2007 9:52 pm
by Nullig
When trying to view the stylesheet in FF, I get the following message:
Cannot modify header information - headers already sent by (output started at /home/aqoon/public_html/config.php:120) in /home/aqoon/public_html/stylesheet.php on line 122
I think it may be related to your tag.
Nullig
Re: browser viewing problem
Posted: Fri Apr 06, 2007 9:57 pm
by Nullig
Can you also post your template code, so we can see what's supposed to happen?
Nullig
Re: browser viewing problem
Posted: Fri Apr 06, 2007 10:37 pm
by gogo123
Hi
below is the stylesheet most of it similar to left simple navigation but modified for the front page to get rid of the navigation bar and include the slideshow. For the inner pages I use the left simple navigationbar + 1 column largely unmodified. Thanks
Re: browser viewing problem
Posted: Sat Apr 07, 2007 1:24 am
by Nullig
I would try separating the 3 javascripts, instead of combining them as one long script. There may be a problem with FF's interpretation.
If that doesn't work, try eliminating one script at a time to see which one causes the problem.
Also, try removing the onload from the body tag, to see if it's causing a problem (there are workarounds for this).
Nullig
Re: browser viewing problem
Posted: Sat Apr 07, 2007 10:51 am
by gogo123
Thanks for the feedback - I've split the three scripts -also tried to remove scripts, I tried to remove onload but that didn't make a difference - obviously I need to call onload for the slideshow
any other suggestions?
Re: browser viewing problem
Posted: Sat Apr 07, 2007 5:01 pm
by chrisl
In theory the reason that you are getting this error message is because
1 There is whitespace before the opening php tag <?php
2 That a file is outputting something to the browser before the use session_start, header, setcookie etc.
Therefore from the information you have given, it maybe that there is something in your config file at or above line 120.
At least it's worth looking there.
Re: browser viewing problem
Posted: Sun Apr 08, 2007 3:54 pm
by gogo123
The Firefox browser error console gives:the stylesheet
http://www.aqoon.org/stylesheet.php?tem ... ype=screen was not loaded because its MIME type is "text/css" not "text/css"
the snippet of code around line 120 in the config file is below - I can't spot anything wrong - any suggestions?
#--------------
#Image Settings
#--------------
#Which program should be used for handling thumbnails in the image manager.
#See
http://wiki.cmsmadesimple.org/index.php ... ge_Manager for more
#info on what this all means
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/home/aqoon/public_html/uploads/images';
$config['image_uploads_url'] = '
http://www.aqoon.org/uploads/images';
#------------------------
#Locale/Encoding Settings
#------------------------
#Locale to use for various default date handling functions, etc. Leaving
#this blank will use the server's default. This might not be good if the
#site is hosted in a different country than it's intended audience.
$config['locale'] = ' ';
#In almost all cases, default_encoding should be empty (which defaults to utf-8)
#and admin_encoding should be utf-8. If you'd like this to be different, change
#both. Keep in mind, however, that the admin interface translations are all in
#utf-8, and will be converted on the fly to match the admin_encoding. This
#could seriously slow down the admin interfaces for users.
$config['default_encoding'] = '';
$config['admin_encoding'] = 'utf-8';
Re: browser viewing problem
Posted: Sun Apr 08, 2007 5:24 pm
by Nullig
The only thing I can see is in the line:
$config['locale'] = ' ';
Instead of it being '' (blank) it appears to be a ' ' (space), but this wouldn't cause the error.
Can you post the top 20-30 lines of your template and stylesheets?
Nullig
Re: browser viewing problem
Posted: Sun Apr 08, 2007 6:50 pm
by chrisl
Your site displays fine when FF's Web Developer Toolbar - Edit CSS - is used so just try adding
above
about line 25 in stylesheet.php
Good luck
Re: browser viewing problem
Posted: Mon Apr 09, 2007 11:51 am
by gogo123
Thanks alot nullig and asare - adding header("Content-type: text/css"); seems to have fixed the problems for now!