TinyPortal

Development => Support => Topic started by: Mick on April 04, 2010, 05:45:05 PM

Title: db error when moving blocks up or down
Post by: Mick on April 04, 2010, 05:45:05 PM
TPb5 & RC3 ;)

I've found that when moving blocks up or down by clicking the arrows, i get a db error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's)' WHERE id = 18' at line 1
File: /home/********/public_html/Sources/TPortalAdmin.php
Line: 2282


Same error happens when trying to move blocks by changing their block ID numbers.  ie.  0, 10, 20, 30, etc.


Is this a known issue?
Title: Re: db error when moving blocks up or down
Post by: ZarPrime on April 04, 2010, 06:07:28 PM
Mick,

I haven't seen that error when moving blocks but I'm not using the public Beta (I'm actually using the last Alpha still).  However the blocks move fine by changing the numbers but there does seem to be a problem using the up and down arrows.  I guess I should prbably go ahead and install the Beta.

ZarPrime
Title: Re: db error when moving blocks up or down
Post by: Mick on April 04, 2010, 06:10:03 PM
Quote from: ZarPrime on April 04, 2010, 06:07:28 PM
Mick,

I haven't seen that error when moving blocks but I'm not using the public Beta (I'm actually using the last Alpha still).  However the blocks move fine by changing the numbers but there does seem to be a problem using the up and down arrows.  I guess I should prbably go ahead and install the Beta.

ZarPrime

Yeah..... im using the public release...

Thanx for looking.
Title: Re: db error when moving blocks up or down
Post by: bloc on April 04, 2010, 09:07:35 PM
I'll check this up now, it should be working last i checked but it might not still. :P :)
Title: Re: db error when moving blocks up or down
Post by: SN on April 04, 2010, 09:40:59 PM
I just checked this also, it's ok for me i get no errors. I have also switched from the Alpha tester Version to public
Title: Re: db error when moving blocks up or down
Post by: Blue Steel on April 04, 2010, 10:52:33 PM
no errors here either
Title: Re: db error when moving blocks up or down
Post by: Mick on April 05, 2010, 08:26:17 PM
I have found a temporary way to move blocks.

When moving blocks up or down, it will go to db error...

Then go to ?action=tpadmin via browser, then the blocks page and the blocks are moved ok.
Title: Re: db error when moving blocks up or down
Post by: bloc on April 06, 2010, 12:27:33 AM
I am not sure..but it could be something with the mysql code. That is: different mysql versions. I will break the small mysql saving into 2 parts to be certain it works.