Page 1 of 2

blog shows only one atricle and nothing else,what's wrong?

Posted: Fri Jan 12, 2007 6:22 pm
by MyPersianBay
Hello,

Here is my blog:
http://www.mypersianbay.com/serendipity/

I can't figure it out.

Please help.
Thanks

Re: blog shows only one atricle and nothing else,what's wron

Posted: Fri Jan 12, 2007 8:30 pm
by yellowled
MyPersianBay wrote:I can't figure it out.
Hmhmhm. My first thought was that maybe something was wrong with the template, since the output code loses it's highlighting somewhere in the middle when I look at it with the FF webdeveloper extension. However, there is no HTML head at all and somewhere in the code I found a tag <noembed />, so I'm guessing it has something to do with a failed or aborted embedded installation of Serendipity. Unfortunately, I have zero experience with that, but I'm pretty sure someone who has will chime in on this soon :)

In the meantime: Did you want to do an embedded installation? How did this happen, did you do an update or a fresh installation?

YL

Posted: Fri Jan 12, 2007 8:46 pm
by Don Chambers
I saw the exact same thing regarding embedding... that code comes immediately after the final text on the page ("... goal.com") I also do not see a stylesheet in addition to also noticing the lack of a head section.

Could it be as simple as a faulty template?

Posted: Sun Jan 14, 2007 1:35 pm
by yellowled
Owen Stubbs wrote:Could it be as simple as a faulty template?
That was my first thought, but this would have to be a really broken template if it doesn't display a HTML header. However, if that is the case, switching the template in the admin panel should help. If you (i.e. the original poster) have never edited/changed/switched the style ...

YL

Posted: Mon Jan 15, 2007 6:00 pm
by MyPersianBay
Hello,

Thanks for the reply.
I have switched the templates several times now, but no luck!
I don't want to lose my past articles. otherwise I wold have reinstalled the whole thing.

What I'm thinking is that maybe I should install another serendipity and just import the whole thing in it. what do you think?

Thanks

Posted: Mon Jan 15, 2007 8:47 pm
by Don Chambers
It definitely looks like your intent is to embed s9y... and it appears to me that this is where it would normally appear: http://www.mypersianbay.com/articles/index.php Is this correct?

As I already mentioned, I know very little about embedding s9y, but you can find a bunch of information here: http://s9y.org/123.html.

The HTML output of your page definitely shows more than a single article, and I can also see that you are trying to output your s9y content into an iframe:

Code: Select all

<td><iframe name="cwindow" style="border:4px rgb(150, 85, 85)" width=410 height=310 src="http://www.mypersianbay.com/serendipity/"></iframe></td>
The output of s9y includes the following:

Code: Select all

"....... Monday at the Opera House in Zurich, Switzerland. <br /><br />Goal.com<br /><noembed /></div></div></div></div>
It is pretty obvious that no further content is displaying past the <noembed /> tag.

The only reference I found to any sort of "noembed" tag was that it is used in conjunction with the EMBED element to indicate content/HTML markup that will only appear if the browser does not support the EMBED syntax I think it is netscape specific. If it were used, it would be used like this:

Code: Select all

<embed SRC="http://www.foo.com/embedded.object" HEIGHT="50" WIDTH="75">
</embed>
<noembed>
     <b>Please>/b> try this <a HREF="http://www.foo.com/embedded.object">media clip</a>
</noembed>
Not sure if <noembed /> is valid, but there certainly is no closing tag if it is. Is this tag part of your entry/article (sure looks like it)?? If so, can you delete the tag, even if temporary to see if it helps? You could also set the article to "draft" to see what happens to your remaining articles.

This particular article also seems to have a number of <divs>... that would be my next source of investigation if this embed thing does not provide a solution.

Posted: Mon Jan 15, 2007 11:20 pm
by MyPersianBay
Thanks Owen,

My knowledge of coding is limited, so please kindly tell me where I should be looking for the noembed code.

PS. I installed another serendipity and I'm trying to import my rss into the new one, but it keep giving me this error:

Error on line 135 of /home/content/---/Onyx/RSS.php: The specified file could not be opened. (#404)
Import successfully completed

I use import data--- generic RSS import
any ideas?

Thank you so much

Posted: Mon Jan 15, 2007 11:26 pm
by Don Chambers
I'm not much more than a noob myself when it comes to this stuff!

I could be wrong, but I think that your actual article titled "Cannavaro Nets FIFA World Player Award" contains the problem, especially since the problem does not go away when you switch templates.

I suggested 2 options.

First, edit that actual article in serendipity, and at the very end, remove the <noembed /> text, including the <> brackets.

A second option would be to change the status of that entry from "published" to "draft", which will stop it from displaying. If the rest of your articles then display without problems, you will know your problem originates in the body of your first article.

Posted: Mon Jan 15, 2007 11:45 pm
by MyPersianBay
WOw! done! it's working now!

Thank you so so much Owen.

the problem was that damn </noembed> code!

Now I gotta go figure out hw to embed it instead of iframe it!

Posted: Tue Jan 16, 2007 12:25 am
by Don Chambers
Happy to hear it worked out for you. That first article looks like you might have cut & pasted it from elsewhere, which might be how you picked up the stray noembed tag. I think you picked up some other stray code that does not really seem to be helping you - namely, 5 <div>'s. Unless you have a stylesheet with these ID's, and it does not look like you do, they are just excess junk. There is certainly no obvious result in your output for using them.

If you decide to delete them, you need to carefully get rid of all of them - especially the closing </div> tags, otherwise you will really screw up the balance of your articles. Just delete every instance of both <div class....>, <div id....> and </div>. I find 5 opening ( ie <div>) and 5 closing ( ie </div> ) tags in this first article.

Speaking of style sheet stuff, you also have <span class=....>. They also seem to be leftover junk, especially the class= portion of the tag. Quite frankly, your output would not look any different if you eliminated all the <span>'s and closing </span>'s leaving only things like <strong> and <p> (plus their closing tags).

As far as embedding - I tried that route once, and was never really satisfied with the final result. Your site makes that even more complicated with such a small content window. IN my case, I ultimately revised a template to look like the rest of my site. It was more complicated, but produced much better results.

My final observation is that you are running a fairly old version of s9y - 0.8.2 to be exact. You might think about upgrading to the latest.

Posted: Mon Feb 05, 2007 9:02 pm
by MyPersianBay
Hello Owen,

Thanks for your help. Since then I have been trying to figure out this embedding. I get these errors before the articles:

Warning: chdir(): No such file or directory (errno 2) in /home/content/---/serendipity/wrapper.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /home/content/---/serendipity/test.php:15) in /home/content/---/serendipity/index.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at /home/content/---/serendipity/test.php:15) in /home/content/---/serendipity/index.php on line 20

I can't figure out the problem thought.
Here is my wrapper:

<?php
ob_start();
chdir("http://www.---.com/serendipity");
require("index.php");
chdir("http://www.---.com/serendipity");
$serendipity_contents = ob_get_contents();
ob_end_clean();
?>

Also these errors after the articles:
Warning: Cannot modify header information - headers already sent by (output started at /home/content/---/serendipity/test.php:15) in /home/content/---/serendipity/index.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at /home/content/---/serendipity/test.php:15) in /home/content/---/serendipity/index.php on line 303

Warning: chdir(): No such file or directory (errno 2) in /home/content/---/serendipity/wrapper.php on line 5


What do you think thr problem is?

Thanks

Posted: Mon Feb 05, 2007 9:41 pm
by Don Chambers
I do not see the errors you are referring to. I do not know anything about embedding s9y, but posted a link earler in this thread about it. Regarding your wrapper text, did you just blank out the domain name on purpose, or does it actually read www.---.com? I would certainly think that should be your full domain name (ie, www.mypersianbay.com).

Again - never done much with embedding. Sorry.

Posted: Tue Feb 06, 2007 6:21 pm
by MyPersianBay
Correct, it's the full domain name www.mypersianbay.com.

Actually I have a test page here:
http://www.mypersianbay.com/serendipity/test.php

See if you can figure it out.
Thanks

Posted: Wed Feb 07, 2007 8:59 pm
by Don Chambers
Regardless of what is going on with s9y, I think you have some serious problems to deal with first. The link below may provide you with some direction as to what needs to be fixed.

http://validator.w3.org/check?verbose=1 ... bay.com%2F

Once you get most of those issues sorted out, the problems you are experiencing might get fixed in the process, or at least, it might be easier to track down the problem.

Posted: Thu Feb 08, 2007 7:15 pm
by judebert
Why are you trying to embed Serendipity? Do you have an existing main page you want to add articles to? Perhaps there's an easier way to do what you need.