Site broken in a strange way

Permalink
Part of the theme loads behind the content, but it isn't right. Also can't log in to administer the site. Any thoughts?

1life1000words.org

Garrett

gewald
 
Steevb replied on at Permalink Reply
Steevb
You should have css files called from your header.php with either
<link rel="stylesheet" href="<?php echo $this->getThemePath()?>/main.css">
or
<link rel="stylesheet" href="<?php  echo $this->getStyleSheet('main.css')?>">

Your path is
/index.php/tools/css/themes/clearview/main.css


You really should update C5.
keeasti replied on at Permalink Reply
keeasti
The last two CSS locations appear to be wrong

<link rel="stylesheet" media="screen" type="text/css" href="/packages/theme_clearview/themes/clearview/fonts/fonts.css" />
<link rel="stylesheet" media="screen" type="text/css" href="/index.php/tools/css/themes/clearview/typography.css" />
<link rel="stylesheet" media="screen" type="text/css" href="/index.php/tools/css/themes/clearview/main.css" />
gewald replied on at Permalink Reply
gewald
Funny thing is I didn't change anything. It was just broken one day.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Never_the_less
Here are the errors
Failed to load resource: the server responded with a status of 404 (Not Found) http://1life1000words.org/index.php/tools/css/themes/clearview/typography.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://1life1000words.org/index.php/tools/css/themes/clearview/main.css
Failed to load resource: the server responded with a status of 403 (Forbidden) http://cdn.wibiya.com/Toolbars/dir_1319/Toolbar_1319896/Loader_1319896.js
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
In your header.php file you have this
<link rel="stylesheet" media="screen" type="text/css" href="/packages/theme_clearview/themes/clearview/fonts/fonts.css" />
<link rel="stylesheet" media="screen" type="text/css" href="/index.php/tools/css/themes/clearview/typography.css" />
<link rel="stylesheet" media="screen" type="text/css" href="/index.php/tools/css/themes/clearview/main.css" />

Change it to this
<link rel="stylesheet" media="screen" type="text/css" href="/packages/theme_clearview/themes/clearview/fonts/fonts.css" />
<link rel="stylesheet" media="screen" type="text/css" href="/packages/theme_clearview/themes/clearview/typography.css" />
<link rel="stylesheet" media="screen" type="text/css" href="/packages/theme_clearview/themes/clearview/main.css" />
keeasti replied on at Permalink Reply
keeasti
That should do the trick
mhawke replied on at Permalink Reply
mhawke
Assuming you haven't customized the elements/header.php file in other ways, I would just grab a fresh copy of the header.php file from the theme archive and replace the 'broken' one.

It's likely found in packages/theme_clearview/themes/clearview/elements/header.php

If you have modified it in other ways and just want to fix this issue in this file then I would take Steevb's advice and use

<link rel="stylesheet" href="<?php  echo $this->getStyleSheet('typography.css');?>">
<link rel="stylesheet" href="<?php  echo $this->getStyleSheet('main.css');?>">


If you just 'hard-code' the path to the css stylesheets, then the theme will no longer be customizable in the dashboard.
gewald replied on at Permalink Reply
gewald
Replaced the Header file but it didn't change the situation.
rainmaker replied on at Permalink Reply
rainmaker
Hey gewald!

Do you by chance have a view.php in the theme folder? If you don't, it tends to screw up the Typography & CSS files for some odd reason

Thanks!
gewald replied on at Permalink Reply
gewald
I do have the view file. I even replaced the entire theme but that didn't help. If I try to navigate to any of the pages or the login screen nothing loads, just an error message.
rainmaker replied on at Permalink Reply
rainmaker
Hmmm. Can you maybe upload the Header file for us to view?
colin3440 replied on at Permalink Reply
My site recently started having this exact same issue. It seems to have something to do with the server configuration as I was able to download all of the files and the database and get the site running correctly on a local VM. Has anyone figured out a solution for this issue? The only errors are tons of 404s for the theme files and I get a 404 whenever I try to visit any page besides the homepage.
mhawke replied on at Permalink Reply
mhawke
Have you tried toggling 'Pretty URLs' off and back on again?
colin3440 replied on at Permalink Best Answer Reply
Thanks for the response! I was actually just able to solve the issue by defining the "SERVER_PATH_VARIABLE" global variable in my config file.

Here is the bug report that helped me:
http://www.concrete5.org/developers/bugs/5-6-3-4/every-page-returns...
mhawke replied on at Permalink Reply
mhawke
Good to know!
colin3440 replied on at Permalink Reply
[accidentally double-posted. please delete]