Hi again.
My problem isn't resolved yet.
judebert was helping me out but he's busy with some stuff now and can't focus on this.
Here's a recap.
judebert:
[...]
I visited your site. The HTML looks correct; the CSS is majorly screwed up. In particular, it's full of HTML and WordPress references. It looks like the header for your comics page. Once I remove it, the admin page looks as expected again. (EditCSS lets you dynamically modify your local copy of the styles, and it's what I used to find the problem and correct it.)
It's possible that an .htaccess was modified, adding that HTML to all pages. Since Serendipity requests its CSS through the Serendipity engine (index.php?serendipity.css or some such), the .htaccess at some upper level could be misinterpreting it as an HTML page and adding the comic header.
Likewise, the blog page itself has inserted HTML. Two <head> tags, for instance. It's possible the sticky post is being output, but not displayed because the HTML is incorrect.
In any case, before we can debug the rest of the problem, we have to find and correct this HTML header problem.
me:
It always worked well. I never had any problems...
What if I re-upgrade Serendipity?
Would it work?
judebert:
Maybe. To me, it looks like changes were made to an .htaccess, or WordPress was reinstalled in the Serendipity directory (since the prepended HTML mentions it specifically). It's possible the admin made a change to add the headers for your convenience, but doesn't consider it important.
Considering he fixed a DNS problem, it's possible that some rule in your .htaccess no longer matches / suddenly now matches.
Check out your page and CSS source yourself. Verify that the extra HTML is there. Serendipity doesn't do that itself; especially not the bit where WordPress is mentioned. Ask why the HTML is being inserted.
Hmmm... the bit with the two <head> tags is making me wonder. Are you running Serendipity embedded in WordPress? If so, is the embedded mode switch on?
me:
No, I'm only using Serendipity with Comikaze. I have modified the kubrick theme to what you can see now.
I'll check it out then.
Thanks.
me:
Ok, the htaccess file was empty. I deleted it and nothing happened.
The wordpress reference is from the kubrick theme that comes with Serendipity, because it was actually intended for WordPress, as it css explains.
Code: Select all
Kubrick v1.2.5 for WordPress 1.2
http://binarybonsai.com/kubrick/
It's not embedded. What I have is a index.php that calls the css from the modified kubrick theme and includes the Serendipity index.php, which is renamed sere_index.php.
Here's the code if you want to check it out.
I don't know how to code in php but it always worked... So this can't be the problem...
Code: Select all
<?require '/home/devbuck/public_html/includes/init.php';?>
<?php
$comic = $ccm->getComic();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>NONSENSE COMICS - Updated Sunday and Wednesday Nights</title>
<meta name="description" content="NONSENSE COMICS" />
<meta name="keywords" content="nonsense, comic, blog, carlos leituga" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="templates/kubrick/style.css" title="standard layout" media="screen" />
<style type="text/css" media="screen">
/* BEGIN IMAGE CSS */
/* To accomodate differing install paths of WordPress, images are referred only here,
and not in the wp-layout.css file. If you prefer to use only CSS for colors and what
not, then go right ahead and delete the following lines, and the image files. */
#body_comic { background: url("templates/kubrick/img/bgcolor.jpg"); }
#page_comic { background: url("templates/kubrick/img/bg.jpg") repeat-y top; border: none; }
#header_comic { background: url("templates/kubrick/img/title.jpg") repeat-y bottom; }
#footer { background: url("templates/kubrick/img/footer.jpg") no-repeat bottom; border: none;}
/* Because the template is slightly different, size-wise, with images, this needs to be set here
If you don't want to use the template's images, you can also delete the following two lines. */
#header_comic {
height: 198px;
width: 760px;
margin: 0px;
padding: 0px;
}
#headerimg {
height: 192px;
width: 740px;
margin-right: 9px;
margin-bottom: 0;
margin-left: 9px;
}
/* END IMAGE CSS */
/* To ease the insertion of a personal header image, I have done it in such a way,
that you simply drop in an image called 'personalheader.jpg' into your /images/
directory. Dimensions should be at least 760px x 200px. Anything above that will
get cropped off of the image. */
#headerimg { background: url('templates/kubrick/img/personalheader.jpg') no-repeat top;}
.style1 {color: #404040}
.style5 {color: #404040}
</style>
</head>
<body background="templates/kubrick/img/bgcolor.jpg">
<div id="page_comic">
<div id="header_comic">
<div id="headerimg"></div>
</div>
<table width="100%" height="45" border="0" background="./templates/kubrick/img/header.jpg">
<tr>
<td align="center" valign="bottom"><?php include('./menu.txt'); ?></td>
</tr>
</table>
<div id="content" class="middlecolumn"><?=$comic->comic_title?><br />
<?=$comic->comicImage?><br />
<br />
<div id="comic-functions">
<?=$comic->firstButton?> <?=$comic->prevButton?> <?=$comic->archiveButton?> <?=$comic->nextButton?> <?=$comic->latestButton?><br />
</div>
<!-- End div for id content -->
</div>
<div id="page"><a name="blog" id="blog"></a><?php include('./sere_index.php'); ?></div>
<div id="footer">
<p align="center" style="margin-top: 0"><cite><font color="#333333">© 2006-2007 Carlos Leituga. All rights reserved.
Powered by <a href="http://www.s9y.org/">Serendipity</a> and <a href="http://www.comikaze.org/">
ComiKaze</a>.</font></cite><br />
<cite><font color="#333333">All other trademarks and characters © Respective Owners</font></cite></p>
</div>
<!-- Ending div for page-container -->
</div>
</body>
</html>
judebert:
Sounds like it's not the webhoster. I'll look into it more as soon as I can. You may want to post in the forums; [...] my time just became much more limited.
I'll still give it a look when I get the chance.
Judebert
me:
No problem, thanks anyway.
Could you just answer me this? If I delete my serendipity installation except the database, I wont lose anything right?
Thanks and good luck.
------------------
So, with the idea that the issue is file related, I asked my webhost to restore the files from a backup previous to the DNS issue.
Lets see what happens...
If you have any idea of what this problem might come from, pleeeaase help!