browser viewing problem
browser viewing problem
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?
Any suggestions?
Re: browser viewing problem
Can you give us a link?
Nullig
Nullig
Re: browser viewing problem
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
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
Last edited by Nullig on Fri Apr 06, 2007 9:57 pm, edited 1 time in total.
Re: browser viewing problem
Can you also post your template code, so we can see what's supposed to happen?
Nullig
Nullig
Re: browser viewing problem
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
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
Last edited by gogo123 on Sat Apr 07, 2007 2:10 pm, edited 1 time in total.
Re: browser viewing problem
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
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
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?
any other suggestions?
Re: browser viewing problem
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.
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
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';
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
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
$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
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
Code: Select all
header("Content-type: text/css");
Code: Select all
$templateid = '';
Good luck
Re: browser viewing problem
Thanks alot nullig and asare - adding header("Content-type: text/css"); seems to have fixed the problems for now!