We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Something in the text it’s trying to insert into the database is cutting off. The remote database probably has different security settings that disallows some character or another; or perhaps the text being inserted is too long for the field. Whatever the cause, the last field, "user", isn’t getting any data.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 14723
      • 7 Posts
      Thank you for your answer Sottwell.
      That’s indeed what is happening: the user field isn’t getting any input, or it’s getting stripped leaving an empty field.
      But the only user-account i’m using is the Admin account. It’s also the only account available at the moment. And i don’t think this account has any weird characters or so?

      One thing i didn’t mention in my previous post: i’m migrating from an Apache server to an IIS environment.
      Could that be of any cause?

      Thanks again for your attention.

      http://www.jongdansfestival.nl/modx/index.php?id=27
      • It’s not the user field; your query is never getting as far as the user field. Something in the text in the previous field, description, is cutting off the query.
        ’Non-static method SimplePie_GCalendar::create_feed_url() should not be called statically, assuming $this from incompatible context
        the query is cut off at this point.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 14723
          • 7 Posts
          We will be moving the domain to our own servers. If the problem persists i’ll be back in this forum.
          Thanks again for thinking along.
          • Quote from: sottwell at Aug 04, 2009, 12:43 PM

            It’s not the user field; your query is never getting as far as the user field. Something in the text in the previous field, description, is cutting off the query.
            ’Non-static method SimplePie_GCalendar::create_feed_url() should not be called statically, assuming $this from incompatible context
            the query is cut off at this point.
            Actually it is not. There must be other several codes beneath it. It also happens to the [Snippet] Calendar - based on Google Cal, SimplePie

            « MODx Parse Error »
            MODx encountered the following error while attempting to parse the requested resource:
            « Execution of a query to the database failed - Incorrect integer value: ’’ for column ’user’ at row 1 »
            SQL: INSERT INTO `modx`.`modx_event_log` (eventid,type,createdon,source,description,user) VALUES(1,3,1254377751,’Calendar - Snippet’,’Non-static method SimplePie_GCalendar::create_feed_url() should not be called statically, assuming $this from incompatible context

            \n
            \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n
            \n <<\n \n October\n \n >>\n
            Sun Mon Tue Wed Thu Fri Sat
            1 2 3
            4 5 6 7 8 9 10
            11 12 13 14 15 16 17
            18 19 20 21 22 23 24
            25 26 27 28 29 30 31
            \n
            ’,’’)
            Anyway, actually there are 2 issues here:
            1. How ModX handles the logEvent => it must be connected with the empty ’$user’ integer value (see the last 2 red-ticks).
            2. How SimplePie works (I believe it requires PHP4 ?) http://tech.groups.yahoo.com/group/simplepie-support/message/3290
              Rico
              Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
              MODx is great, but knowing how to use it well makes it perfect!

              www.virtudraft.com

              Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

              Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

              Maintainter/contributor of Babel

              Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
              • 20240
              • 14 Posts
              On this (above) error: ’Non-static method SimplePie_GCalendar::create_feed_url() should not be called statically, assuming $this from incompatible context’

              This worked for me: http://modxcms.com/forums/index.php/topic,38889.msg234520.html (solution from OpenGeek)
              Thanks OpenGeek! grin
                • 23284
                • 2 Posts
                ok, after a lot of googleing, reading instructions etc. etc. I’ve managed to get a calendar working on my site, the question I have however is - where is the styling? after more googleing, following threads etc. etc. I’m completely stumped as to how to get an basic but attractive looking calendar similar to the google calendar perhaps? I’m new to modX but have been using Joomla for some time and getting a calendar in Joomla was pretty simple, so pleeeeeaaaase help, there’s a lot about modX that I really like but I can’t even find a site with a GoogleEvents calendar working.

                site at sandbox7.aaatrading.co.uk/diary

                thanks
                  • 3316
                  • 28 Posts
                  I am having an issue with Google Events. Everything is working well, but when I click an event on the full calendar view, the Google calendar details page always shows GMT time. I’ve updated the proper time zone setting on my calendar with Google, but it always defaults to GMT time. I’ve tested this with several different Google calendar accounts.

                  Is there an easy way to append the details URL with the proper time zone? (example: http://www.google.com/calendar/event?eid=dWx2Z0&ctz=America/Denver)

                  I was able to append the url for the list view using a chunk, but there is no such option with the full view.

                  Great snippet, by the way!
                    • 23430
                    • 10 Posts
                    Quote from: kevince52 at Nov 26, 2007, 03:46 PM

                    Hi,

                    I’ve installed this snippet as per the instructions. Made sure there was only one set of <?php ?>. Changed the gmail address in the snippet and in the snippet call. this is my call:

                    [!GoogleEvents?dayNameSize=`full`&outputType=`calendar`&calendarType=`wide`&email=`[email protected]`!]

                    My page returns nothing. No calendar, no errors and not even any code (page source) referring to the snippet call. Any ideas what I’m doing wrong?

                    I’m using Modx 9.6.1 and Google Events 1.4.1


                    This is exactly what’s happening to me. The calendar is public, there are future events. I’m using Modx 1.0.2 and Google Events 1.4.2 but nothing is showing. This is my call:

                    [!GoogleEvents?dayNameSize=`3`&outputType=`list`&maxEvents=`50`&lastEvent=`365`&email=`[ourcalendar]@gmail.com`&dateFormat=`D,Mj`!]

                    I tried swapping this for a debug call following the response to the above post, but I’m still getting no output whatsoever from that.

                    I notice that the readme instructions give the parameters and sample snippets followed by a list of placeholders, separated by the sentence:


                    The placeholders that you can use in the chunks passed to the snippet for a template are:

                    Does this mean the snippet won’t work without using chunks that I’d have to code myself? Is this the "something obvious" I’m missing?
                      • 9423
                      • 3 Posts
                      I’ve read the entire thread, so hopefully this wasn’t answered earlier and just missed by me...

                      I’m using GE 1.4.2. I have custom templates set up for the first event, odd events, and even events in a list view, so that I get an alternating striped effect -- odd events have a background shade and even events don’t.

                      Here’s the problem: Whether the final event in the list is odd or even, it does not "take" the style assigned to odd or even events. It will only take the template assigned to the last item. Which means that I have to, essentially, "hard-code" the last event’s style as either shaded or not. But if the last event is an even number, it should NOT be shaded, and if it’s an odd number it should be. Right now, I have to make my last event template either shaded or not, which means that -- depending on the number of events in total -- there’s a chance that my list will end with two shaded items or two non-shaded items, as opposed to a nice, neat alternating pattern.

                      Any suggestions for how to make that last event obey the alternating rule?

                      Thanks!