SunQuest
           ltwCalendar
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsProjectsltwCalendar

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old May 5th, 2002, 05:21 AM
Beat Down Beat Down is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Red Oak, TX, USA
Posts: 6 Beat Down User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Beat Down
ltwCalendar Issue

Matt,

I get the following error when trying to add an event to the calendar:

Error: A problem was encountered while executing this query.

Any ideas? It worked one day but not the next.

I am not aware of any changes done to our site that would have affected the calendar (ie. no mySQL database structure mods, or movements and no calendar code mods).

Reply With Quote
  #2  
Old May 5th, 2002, 05:22 AM
Beat Down Beat Down is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Red Oak, TX, USA
Posts: 6 Beat Down User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Beat Down
RE: ltwCalendar Issue

BTW: It'll show current events just fine.

Reply With Quote
  #3  
Old May 5th, 2002, 08:37 PM
shakesfear78 shakesfear78 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Frederick, Md
Posts: 1 shakesfear78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: ltwCalendar Issue

I too am having the same problem. I was able to add about 4 events and then it started giving me this error every time I tried to add an event.

Reply With Quote
  #4  
Old May 5th, 2002, 08:38 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: ltwCalendar Issue

In the ltw_classes.php file around line 468 which should read
$query = "INSERT $this->calendar_table VALUES('', '" . strip_tags($name) . "', '" . $date . "', '" . $start_time . ":00', '" . $end_time . ":00', '" . strip_tags($description) . "', " . $recurring . ", " . $dayofweek . ")";

add:

echo "<BR>$query<BR>";

after it..

that will show the query that is trying to be run....let's take a look at that and maybe we can find the problem...

Reply With Quote
  #5  
Old May 6th, 2002, 04:11 AM
Beat Down Beat Down is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Red Oak, TX, USA
Posts: 6 Beat Down User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Beat Down
RE: ltwCalendar Issue

Here you go, Matt. I hope this helps.

I copied/pasted this directly from the pop-up window:

---POP-UP WINDOW---
INSERT ltw_events VALUES('', 'CAL Match - Ballz', '2002-05-07', '21:00:00', '22:30:00', 'CAL League Match Opponent: Ballz MAP: mp_beach SERVER: [*:TP's Bathroom Drama START TIME: 9:00pm Eastern Match Type: SW ROUNDS: ABBA - 4 Total SW Rounds SCORE: 1st team to 3 points wins the match', 0, -1)
Error: A problem was encountered while executing this query.

---SNIP FROM MY ltw_classes.php---
$query = "INSERT $this->calendar_table VALUES('', '" . str
ip_tags($name) . "', '" . $date . "', '" . $start_time . ":00', '" . $end_time . "
:00', '" . strip_tags($description) . "', " . $recurring . ", " . $dayofweek . ")"
;
echo "<BR>$query<BR>";
$this->db->db_query($query);

Reply With Quote
  #6  
Old May 6th, 2002, 04:26 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: ltwCalendar Issue

The problem looks like that I am not adding slashes to the query. I am assuming the magic quotes is on. Looks like it isn't on your server. try adding an event and not having a single quote ( ' ) in the description....

Reply With Quote
  #7  
Old May 7th, 2002, 01:11 AM
Beat Down Beat Down is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Red Oak, TX, USA
Posts: 6 Beat Down User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Beat Down
RE: ltwCalendar Issue

That did it. Thanks man. I didn't even think about that when looking at the code.

Reply With Quote
  #8  
Old May 13th, 2002, 09:40 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: ltwCalendar Issue

This problem is fixed in the new version....

Reply With Quote
  #9  
Old May 13th, 2002, 11:17 PM
Beat Down Beat Down is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Red Oak, TX, USA
Posts: 6 Beat Down User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Beat Down
RE: ltwCalendar Issue

Sweet!

Is there an expected release date of the new version?

Thanks man!

Reply With Quote
  #10  
Old May 13th, 2002, 11:25 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: ltwCalendar Issue

Yep, it's up on the server now

Reply With Quote
Reply

Viewing: Codewalkers ForumsProjectsltwCalendar > ltwCalendar Issue


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway