Fork me on GitHub

Error when using both Weather and RSS display module  Bottom

Go to page 1 - 2 [+1]:

  • Hello.

    I am having a problem. I have a postnuke site and I was running the weather module for some time with no problem. I am hoping I can get some help so I can get this site open to the community to use!

    Recently I installed the RSSdisplay module to show an RSS feed that I wanted to open in a new window. Upon installing the module succesfully, the weather module vanished, and in its place on the main page is this error:

    Code

    Warning: gzinflate(): data error in /home/httpd/vhosts/coya.coptic.ca/httpdocs/modules/rssdisplay/pnincludes/extlib/Snoopy.class.inc on line 548


    The code around line 548 is

    Code

    // gunzip
            if ( $is_gzipped ) {
                // per www.php.net/manual/en/function.gzencode.php
                $results = substr($results, 10);
    // this next line is line 548
                $results = gzinflate($results);
            }


    This is on the main page now, shifting everything to the left to make room for the long error message.

    The message is also not consistent. I went into the blocks admin, deactivated & reactivated the module, and the error went away for a little. However, I went back into the module to change a setting, and it reappeared.

    If anyone could provide me with some advice, it would be greatly appreciated.

    Details:
    Postnuke 0.75
    Weather module version 1.33
    RSSDisplay module version 6

    Thank you very much
  • News to me. Quickest way to get help on RSSdisplay is to email me at crsATmtradDOTcom. And if there's a compatibility issue, we can get Jean-Michel, the Weather module author, involved as well.

    Meanwhile, let me think about this a bit...

    [added]: I suspect that there's some incompatibility between the Weather module and the RSSdisplay module. We both use the Snoopy class and each ships our own version of it.

    By the way, the problem might come and go depending on how long it takes the cache to expire for your RSSdisplay block. You can test this by seeing if it goes away and then immediately clearing out the contents of the modules/rssdisplay/cache directory. If it comes back right away, then that's probably the root cause of inconsistent appearance...

    You're using the latest version of RSSdisplay. Are you using the latest version of Weather? (We fixed a compatibility issue in the latest version of each.)

    If you were to compare the two Snoopy class files, are they the same or different?
  • It looks like a bug in Magpie (which is what uses Snoopy). Check out this page http://laughingmeme.…ves/2003_06_25.html

    I've got more investigation to do...
  • Hello,

    Thank you for looking into this problem. I am using the lastest version of Weather as well as RSS display. I believe it does come and go with the cache. In terms of the bug in Magpie, I'm a little over my head with that - does this mean I have to change something in Magpie? Where is that located? Or is there something else to be done?

    Thank you.
  • Hello,
    I will compare Snoopy versions included in weather 1.33, rssdisplay last version, and PostNuke .760.
    Some time ago I made to MarkWest the proposal to include a standard Snoopy version in includes/classes of course this will only be a solution for PostNuke versions past .760.
    If I remember well the version I included in weather .1.33 was the one from the Snoopy CVS.
    May I add that I am preparing other modules using Snoopy (phpcomic will be the next)

    --
    Visit my live reef aquarium.

    My Amazon wish list.
  • I posted an idea in Module Development regarding how shared libraries might be handled in the future. I, too, use Snoopy in some of my modules and it would be really nice not to have to bundle the same classes over and over with every module I write.

    Ed
  • Hello,
    here is the result of my comparison of Snoopy versions
    - PostNuke .760 and rssdisplay use the same version of Snoopy : the one included in Magpie, this version is Snoopy 1.0 modified to support gzip by Magpie's author
    - weather use Snoopy 1.2 (but identified itself as Snoopy 1.01 because I grabbed it from CVS before the version number was changed, but apart that it is v 1.2 with all the features of v 1.2 and functionnal equivalent to the 1.2 version downloadable from Snoopy souceforge website)
    So we clearly have a problem because weather rely on some new features of 1.2 but 1.2 doesn't support gzip wich is why the problem arise.
    I think it wouldn't be too difficult to produce a 1.2 modified to support gzip looking a the differences between the 2 files.

    --
    Visit my live reef aquarium.

    My Amazon wish list.
  • This is wierd,
    I cannot reproduce the problem
    on a PN .750 test site weather is working with no problem with either RSS or rssdisplay !! (of course RSS and rssdisplay don't work together but this is quite normal as they both try to include Magpie files)
    Of course I made only minimal testing but no errors are displayed and weather forecast and rss feeds are displayed quite as expected !!

    --
    Visit my live reef aquarium.

    My Amazon wish list.
  • You can try the following fix :
    in the modules/rssdisplay/pnincludes/extlib/Snoopy.class.inc file, change :

    Code

    // send Accept-encoding: gzip?
        var $use_gzip       = true;

    to

    Code

    // send Accept-encoding: gzip?
        var $use_gzip       = false;

    This will change the default to not using gzip. For rssdisplay it will not change anything because magpie overwrite the default value but weather will not use gzip and should not show again the error message.
    Of course as I can't reproduce your problem, this is only a guess and wasn't really tested. Try and tell me if it fix the problem.

    --
    Visit my live reef aquarium.

    My Amazon wish list.
  • I'm still looking at this... The problem that the Magpie author was trying to deal with supporting feeds that are gzip'ed. So if you just turn off support for gzip, you won't be able to handle feeds that are. At least that's what I think the case is.

    TheProf: Can you give me the URL for the feed that's causing a problem?

    Still investigating... (Ah, world wide development! While one developer sleeps, another is coding. :) )
  • kudos to you Cold Rolled Steel, very nice of you to try and help someone out this much
  • No, no,
    My change will not turn gzip off for Magpie because Magpie re-enable gzip when it call Snoopy so setting the default value to false will only turn gzip off for weather (or other modules using snoopy that doesn't explicitely set use_gzip to true).
    look at modules/rssdisplay/pnincludes/rss_fetch.inc

    Code

    $client->use_gzip = MAGPIE_USE_GZIP;

    and :

    Code

    if ( !defined('MAGPIE_USE_GZIP') ) {
            define('MAGPIE_USE_GZIP', true);   
        }

    So I think my change has no drawback for rssdisplay but unfortunately I can't test it because I didn't succeed in reproducing the problem.
    Don't you agree ?

    --
    Visit my live reef aquarium.

    My Amazon wish list.
  • ColdRolledSteel


    TheProf: Can you give me the URL for the feed that's causing a problem?



    Hello - thank you again for helping out.

    The URL I am using in the feed is:
    http://read.thepositiveword.com/dailykjvrss.php

    the homepage for the feed is:
    http://read.thepositiveword.com/support/rss.php

    Question - how can I test any changes? Because whenever I make a change in the block, the error goes away for a bit.

    Thanks
  • I have patched the Snoopy 1.2 version used by the weather module to support gzip and be usable by Magpie also.
    I made some testing and it seems to work rather well (for instance the mtrad.com feed is requested and send gzipped)
    Of course I can't be sure that it will solve your problem. You need to replace ALL your Snoopy versions by this one (be sure to have a backup of the old files in case something goes wrong)
    I included a short README file explaining installation.
    it is available here : http://www.vedrine.n…download-sid-2.html under the name "Snoopy v 1.2 compatibility package". Tell me how it is working (or not working). Be sure to follow instructions for installation.

    --
    Visit my live reef aquarium.

    My Amazon wish list.
  • Hello

    jmvedrine: I have downloaded and followed the instructions you have for the new snoopy version. As soon as I made the changes, the error vanished and the weather module reappeared! This is excellent - thank you very much!

    Hopefully this improvement is permanent - it has happened before that improvements occurred, but only for short periods of time. I will keep you posted here of what happens within the next day or two. Usually by then some sort of error would appear.

    thank you one again.
    The Prof

Go to page 1 - 2 [+1]:

  • 0 users

This list is based on users active over the last 60 minutes.