Some strange problem...

Found a bug? Tell us!!
murteira_nabo
Regular
Posts: 14
Joined: Sat May 26, 2007 1:26 am

Some strange problem...

Post by murteira_nabo »

My website was down for a little bit, after the downtime, the sticky post where non-sticky.

The admin page text is in times new roman for some reason and the advanced options are non-existent.

I don't know what more is wrong since I can't remember the rest of the system.

I'm using version 1.1.2.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Sounds like the admin messed up your site while the server was down.

The style change could be something slightly more serious. Can we see your URL?

Consider asking the admin what changed. Serendipity doesn't make any changes to itself like that.
Judebert
---
Website | Wishlist | PayPal
murteira_nabo
Regular
Posts: 14
Joined: Sat May 26, 2007 1:26 am

Post by murteira_nabo »

I've sent you a pm, have you received it?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Got it. I've been spending the Memorial Day weekend with my kids, but I'm back now.
Judebert
---
Website | Wishlist | PayPal
murteira_nabo
Regular
Posts: 14
Joined: Sat May 26, 2007 1:26 am

Post by murteira_nabo »

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!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You did some ugly stuff to serendipity :)

Renaming it's core "index.php" is really not supported nor encouraged. You should never do that -- the templating system is meant to do the changes you did to the files. So it might be that the ugly hack is preventing serendipity from properly working.

Do I understand you right that the only problem is the CSS of your admin backend doesn't work? I would need to know your URL to proceed any further.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
murteira_nabo
Regular
Posts: 14
Joined: Sat May 26, 2007 1:26 am

Post by murteira_nabo »

Yeah... I suck at php.
It was the only way I found to include comikaze on the first page and then the rest of the site.

No, it's actually the whole site that has problems.

http://www.nonsensecomics.com/

It doesn't do paragraphs correctly, nor sticky's, the right side should have the menu with search form and some html nuggets.
The admin page as its font type changed, a lot of features like the extra options for the posts are missing.

The ridiculous in this situation is that it all worked perfectly, even after I updated serendipity twice.
Everything went nuts after the DNS problem that my server had.

I'm currently waiting for my host to restore a backup copy from April of the files with exception of the databases... I hope it doesn't give me more problems...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The missing paragraphs happen because of this:

http://board.s9y.org/viewtopic.php?t=10128&highlight=

You are simply missing the nl2br plugin.

Stickys might not work because you might be missing the plugin "Extended properties for entries"?

The right side might be missing the quicksearch plugin and others? Do you even have any sidebar plugin installed? Seems to me your whole plugins got screwed through the DNS update/outage?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
murteira_nabo
Regular
Posts: 14
Joined: Sat May 26, 2007 1:26 am

Post by murteira_nabo »

Indeed, all the plug-ins are gone.
I'm trying to install them but until now I've been unsuccessful...

Help...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

What are you trying? What is unsuccessful? I'd like to help. :-)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
murteira_nabo
Regular
Posts: 14
Joined: Sat May 26, 2007 1:26 am

Post by murteira_nabo »

I'm trying to reinstall the plug-ins.
I've done a fresh installation of 1.1.2, except for the databases.
The plug-ins are all in their folder but when I go to the admin page and try to install them, nothing happens.
I can configure them but then when I save my changes, no plug-in appears on the main list.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

So you go to the menu "Configure plugins" then click on "Click here to install a sidebar plugin" and then click on the graphical button of a plugin you want to install (like the 'Recent comments') plugin. And after that, what happens? Do you get to the page "Configure plugins" back again?

And if you change a plugins configuration by clicking on "Configure Plugins" and then on the title of a plugin listed there, you see the configuration page. Then you change data, click on "Save changes" and after that you see what? A blank page?

If you can describe properly what happens (maybe make screenshots?) I might be able to help.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
murteira_nabo
Regular
Posts: 14
Joined: Sat May 26, 2007 1:26 am

Post by murteira_nabo »

garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The "empty" page is the page where the Drag+Drop Javascript API should be shown.

Could it be you have disabled JavaScript? The top of the page reads that javascript is required, and that you can change this in your personal preferences. Try that.

If you are sure you have JS enabled, please chedk if your templates/default directory contains those files:

* dragdrop.js
* treeview/ subdirectory and files
* YahooUI/ subdirectory and files

If you updated from an earlier s9y version you might have forgotten to copy/upload those files.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
murteira_nabo
Regular
Posts: 14
Joined: Sat May 26, 2007 1:26 am

Post by murteira_nabo »

The js was enabled but the folder was an old one.
Still, after fully updating the default folder, the problem still occurs...
Post Reply