The MU forums have moved to WordPress.org

Sitewide Feed (213 posts)

  1. suleiman
    Member
    Posted 18 years ago #

    Ovidiu there are numerous ways to break feed.

    The specific plugin that you're talking about is the old version of the Anarchy Media Player Plugin.

    If you have an older version of that it can break it, but the latest updates resovle the issue.

    Another way to break the RSS feed is to have plugins where there is whitespace after the ?> closing segment of your php. So if you've altered any core files I would check that out too.

  2. Ovidiu
    Member
    Posted 18 years ago #

    no I did not alter anything, it is the popularity contest plugin breaking my feeds. check out this link for details: http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fzice.ro%2Fwpmu-feed%2F

    it says:

    'line 27, column 158: XML parsing error: <unknown>:28:0: unclosed CDATA section'
    line 27 is: '<b>Fatal error</b>: Call to a member function on a non-object in <b>/var/www/web5/web/wp-content/plugins/popularity-contest.php</b> on line <b>1519</b>
    '

  3. qrof
    Member
    Posted 18 years ago #

    Hi guys, I've found that caching is not working very well with current SQL statements, I've made the following changes but I'm not sure if this is ok. I do think that at least caching is working now (mysql and wp_object)


    @@ -190,24 +190,28 @@
    if ($type == 'posts') {
    $results = $wpdb->get_results("SELECT
    ID,post_date_gmt
    FROM ".$wpmuBaseTablePrefix.$blogid."_posts

    - WHERE post_status = 'publish' AND (post_type = 'post' OR post_type = '') AND post_date_gmt < '".gmdate("Y-m-d H:i:s")."'

    + WHERE post_status = 'publish' AND (post_type = 'post' OR post_type = '')

    The thing is, posts don't get publish status until they get published (either cause of the publish date in the future or cause the author has not published it yet), so we don't really need checking post_date_gmt -- that is causing different SQL statement every time the feed is called.

    Please correct me if I'm wrong!

    (tested with adding a timer at the end of feed and then reloading the feed page)

    Regards,
    Marko

  4. lunabyte
    Member
    Posted 18 years ago #

    Hmmm, I hadn't noticed it, but I'll test it out with ya.

  5. lunabyte
    Member
    Posted 18 years ago #

    Well Marko, this didn't work for me.

    Whether it was because the feed was already cached so it created a conflict, or whatever, it ends up producing a "white screen of death" on my site.

    So for now, I'll have to wait out the cache time and try again.

    I'm going to assume it's a cache issue at the moment, because if I restore the plugin back to it's original format, it does the same thing.

  6. lunabyte
    Member
    Posted 18 years ago #

    It must have been conflicting cache. All is well now, and I've tried it on 3 different installs. Two of which are local so I know there hasn't been a hit to them within the defined cache time, and they worked out of the box. Must have been something weird with the other site, but it's cool now.

  7. anabelle
    Member
    Posted 17 years ago #

    How can i limit the amount of posts per blog in the sitewide feed, some guy is adding 10 posts a day and he is disappearing my other blogs....

  8. drmike
    Member
    Posted 17 years ago #

    Hmm, I hate looking at other people's coding.

    Open up teh file and take a look at the function create_map. A couple lines in you'll see the following:

    ORDER BY comment_date_gmt DESC LIMIT " . $this->feedcount*$multiplier);

    I would try changing the limit to an actual number:

    ORDER BY comment_date_gmt DESC LIMIT 3);

    I've not tried it myself but it should work. I'm using 3 simply because it's going to load in all of the posts and then list them by date.

  9. anabelle
    Member
    Posted 17 years ago #

    mmmm it doesn't seem to work, im currently using:

    ORDER BY comment_date_gmt DESC LIMIT 3" . $this->feedcount*$multiplier);

    But it still displays every post from each blog

  10. drmike
    Member
    Posted 17 years ago #

    Please check my post.

    ORDER BY comment_date_gmt DESC LIMIT 3);

    not

    ORDER BY comment_date_gmt DESC LIMIT 3" . $this->feedcount*$multiplier);

  11. anabelle
    Member
    Posted 17 years ago #

    :sorry: ok i corrected it and now it's working but i had to use:
    ORDER BY comment_date_gmt DESC LIMIT 3");
    so that it didn't return a PHP error, and it had logic.

  12. anabelle
    Member
    Posted 17 years ago #

    How can I get rid of Mr. Wordpress comments in the comments feed?

  13. Ovidiu
    Member
    Posted 17 years ago #

    today my sitewide feed stopped working, the rss widget I use to grab the feed just says:

    Sorry can not grab the Feed!

    I just noticed I can use another RSS feed widget to disply the feed just fine, so the problem must be with the mediaprojekte rss widget :-( have to look this up again...

  14. Ovidiu
    Member
    Posted 17 years ago #

    I found out what happened - a french blogger had written a post with a title that contained some special french character which showed up in the title as a symbol with a ?

    I corrected his post title and now the feed displays again, here is the link to the post have a look at the post content, he has plenty of strange characters there - is he doing something wrong or me? And if its him, how can I prevent this happening again?

    http://whitfieldhollis.zice.ro/2007/02/22/quebec-ministre-finances/

  15. lunabyte
    Member
    Posted 17 years ago #

    That's strange. Very strange.

    Isn't the title supposed to be converted into special characters and such?

    I noticed this the other day with titles, where a simple quotation mark ( " ) wasn't converted in the title to the &whatever; equivalent. That was on a 2.1 install, but it was kicking the crap out of validation when it showed up on the listing of popular posts. I went in and changed the quotes in the title to the html equivalent, and it was fine after that.

  16. drmike
    Member
    Posted 17 years ago #

    It's suppose to be converted to specifical characters but that's probably the same issue we had with the fetch_rss function on the dashboard pages we discussed a few weeks ago.

  17. lunabyte
    Member
    Posted 17 years ago #

    Probably so. Haven't tried 2.1.1 yet, but it's on my list to look at.

  18. Ovidiu
    Member
    Posted 17 years ago #

    but if you look at the post I linked, its not even unconverted characters, its this strange symbol, even if I go edit his post it looks the same ? I thought that at least I would see what characters he had pasted into his post and exchange them into html entities but all I see are lots of these strange symbols...

  19. lunabyte
    Member
    Posted 17 years ago #

    Beats me.

    Other than the usual

    &trade;
    for ™ or
    &copy;
    for © I don't play too much with special language characters.

    It is strange though, unless maybe there is a content type problem. Like inputting iso-1258 (or whatever it is) vice utf-8 or something.

  20. Ovidiu
    Member
    Posted 17 years ago #

    is anyone aware of a plugin that does filter copied text from clipboard and strips it of its formatting?

    I remember reading somewhere about such a thing, but I think it was a tinymce plugin? not sure about this, just checking, as that might also be able to strip certain characters, maybe change them? I'll go google anyway...

  21. hery
    Member
    Posted 17 years ago #

    If you are still interested on this
    http://hery.blaogy.org/2007/02/23/wpmu-rss-feed/

  22. Ovidiu
    Member
    Posted 17 years ago #

    what happens if your plugin gets a shitty post like the one I quoted above? how does it treat those special characters in post titels? does it strip them out or convert somehow?

  23. lunabyte
    Member
    Posted 17 years ago #

    <title><?php echo htmlspecialchars($all_post->post_title) ?></title>
  24. Ovidiu
    Member
    Posted 17 years ago #

    looks like this one blogger did it again: http://whitfieldhollis.zice.ro/

    this stops the feed from displaying: http://zice.ro look at the right sidebar, it says cannot grab the feed... if I clean up his post title everything will be fine...

    What shall I do? This guy obviously wants to post special characters, so first I am going to ask him how he posts these titles and texts and where he gets them from so I have an idea what exactly he is posting there...

    any more ideas after looking at this second example?

    ###edit###
    ooops, I just noticed something. Actually I had not read that guys post but I got curious and as I remember some of the french I learned at school I noticed 2 links in the middle of his seemingly sane text that has nothing to do with the written text. Have a closer loook: in the middle of his text ther are 2 links containing the words ganja and weed so this looks like a very clever spammer to me, what do you think???

  25. zeug
    Member
    Posted 17 years ago #

    yeh I've had a few of those through, one fun one pretended to be a japanese girl blog but did a google translation and the text is ripped from reuters and has the weed and other spam links in. I mark the user as a spammer and suspend the site and when they don't call back I delete them.

  26. lunabyte
    Member
    Posted 17 years ago #

    That's what I do if it's questionable. If it's plain as day, out they go.

  27. Ovidiu
    Member
    Posted 17 years ago #

    do you think this fix could apply for my problem too?

    http://www.webbleyou.com/2007-02-04-accented-characters-in-wp21-and-mysql-41

    That post is talking about wp 2.1 but it sounds exactly like my problem...

  28. kobak
    Member
    Posted 17 years ago #

    I have the same problem as many here, with not showing wpmufeed in the admin menu. Is there a global solution for that? Can somebody help me? Thanks.

  29. lunabyte
    Member
    Posted 17 years ago #

    Shows up just fine for me on 1.1.1, just where it ought to be.

    Site Admin -> Site Feed

  30. Ovidiu
    Member
    Posted 17 years ago #

    what about the link above? Its a fix for mysql regarding accented characters...

    could this be a solution? I don't want to mess with mysql just for testing...

About this Topic

  • Started 18 years ago by itdamager
  • Latest reply from jeremybyrne