-
☆ A M B ☆
- 24,524 Posts
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.
-
☆ A M B ☆
- 24,524 Posts
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.
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.
-
☆ A M B ☆
- 3,112 Posts
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.
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
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!