We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14050
    • 788 Posts
    Quote from: betoranaldi at Jan 09, 2008, 10:35 AM

    Hey Jesse,

    I just download the latest files from simplepie.org and that version of the system test executed properly.

    Could GoogleEvents be using a older version of simple pie, if so how can I upgrade it in GoogleEvents?

    Would it be as simple as overwriting the php/simplepie.inc file with the new one from simplepie.org?

    Thanks
    Brian

    Yep.
      Jesse R.
      Consider trying something new and extraordinary.
      Illinois Wine

      Have you considered donating to MODx lately?
      Donate now. Every contribution helps.
      • 14050
      • 788 Posts
      Google Events was just updated to version 1.4.2.

      Improvements:
      *Upgraded to Simplepie 1.1
      *Added placeholders to get timestamps for start and end times. (Useful for use with PHx and needed by Mazso).
      *Added parameter tplEmpty to display a more user friendly message if the feed is empty or unavailable (Requested by Andy Ayre).
      *Added parameter gInternational to use strftime() instead of date()

      Bugfixes:
      *Bugs inherited from Simplepie 1.0 (See http://simplepie.org/wiki/misc/release_notes/simplepie_1.1)
      *Output of XML addresses in default message when feed is empty or unavailable (Bug found by Andy Ayre).
        Jesse R.
        Consider trying something new and extraordinary.
        Illinois Wine

        Have you considered donating to MODx lately?
        Donate now. Every contribution helps.
        • 3232
        • 380 Posts
        Just wanted to let you know that after the update I still had the 500 errors.

        It turns out curl was messing up php. I recompiled php without curl and everything started working as intended.

        Thanks
        Brian
          • 14050
          • 788 Posts
          I don’t manage my own hosting as I am ignorant as to how to setup the servers, but my hosting provider utilizes suPHP with curl enabled. The demo I am running of Google Events 1.4.2 works perfectly fine on it here:

          http://cmssandbox.com/MODx095/index.php?id=82

          Regardless, glad you got it working.
            Jesse R.
            Consider trying something new and extraordinary.
            Illinois Wine

            Have you considered donating to MODx lately?
            Donate now. Every contribution helps.
            • 3232
            • 380 Posts
            Strange... oh well i got it working and don’t need curl at the moment so all is well.

            One thing I did notice while i was fooling around with all of this is that if you have a different snippet that utilizes SimplePie that appears before the google events call it will create a fatal error because it is trying to create a simplepie class when it already exists.

            I was able to solve the problem by doing a simple check... if the class is already created it wont include the simplepie include file.

            // Here is where your copy of Simplepie lives
            if(!class_exists('simplepie')) {
            require_once ($basePath.'assets/snippets/GoogleEvents/php/simplepie.inc');
            }


            Just wanted to let you know, just in case you wanted to inlclude it in a future release.

            Thanks
            Brian
              • 25979
              • 178 Posts
              Hi, i wanted to use GoogleEvents 1.3.4 but I have a couple of problems with feed.

              Firstly, I didn’t make my I calendar public, I prepared another one. That one in feed doesn’t have my email address. When i put it where my email should be I get parsing error.

              When I made my first calendar public and use my email i got following error:

              The feed is unavailable. This could be caused by the server being down, an incorrect feed address, or if you have no events in your feed. The feed address you tried to load was http://www.google.com/calendar/feeds/[email protected]/public/basic?start-min=2008-02-19&start-max=2008-03-20&singleevents=true.


              Don’t know what to do with that.
                //Why use windows since there is a door?//
                • 14050
                • 788 Posts
                Are you still having issues with it? Can you add the parameter &debug=`1` and let me see the output?
                  Jesse R.
                  Consider trying something new and extraordinary.
                  Illinois Wine

                  Have you considered donating to MODx lately?
                  Donate now. Every contribution helps.
                  • 25979
                  • 178 Posts
                  didn’t solve that one. Debug feed is: http://www.google.com/calendar/feeds/[email protected]/public/basic?start-min=2008-02-19&start-max=2008-03-20&singleevents=true
                    //Why use windows since there is a door?//
                    • 14050
                    • 788 Posts
                    If you add the debug parameter, you should get additional information on the site that uses the GoogleEvents snippet. Also, did you run the sp_compatibility test? What were the results?
                      Jesse R.
                      Consider trying something new and extraordinary.
                      Illinois Wine

                      Have you considered donating to MODx lately?
                      Donate now. Every contribution helps.
                      • 25979
                      • 178 Posts
                      i have run compatibility test and everything worked just fine. I didn’t get additional info: here is my call:

                      [!GoogleEvents?dayNameSize=`1`&outputType=`calendar`&calendarType=`small` &email=`[email protected]` &debug=`1`!]


                      
                      Debug mode is on.
                      
                      Getting XML feed: http://www.google.com/calendar/feeds/[email protected]/public/basic?start-min=2008-02-19&start-max=2008-03-20&singleevents=true
                      <br /><br />The feed is unavailable. This could be caused by the server being down, an incorrect feed address, or if you have no events in your feed. The feed address you tried to load was http://www.google.com/calendar/feeds/[email protected]/public/basic?start-min=2008-02-19&start-max=2008-03-20&singleevents=true. <br />

                      that is all i get sad
                        //Why use windows since there is a door?//