Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
5 registered (Stan, Outdoorking, Dunny, Pilgrim, SteveS), 35 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/22/12
Posts: 2
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 6 1 2 3 4 5 6 >
Topic Options
#173595 - 01/15/07 06:59 AM Anyone recognise this error?
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
We encountered a problem. The reason reported was
Script:
Line#:
SQL 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 '' at line 3
SQL Error #: 1064
Query: select count(*) from ubbt_POSTS WHERE POST_POSTED_TIME >

Please use your back button to return to the previous page

------------------

This was when trying to make a new post in a forum...

People seem to be psoting in other forums - this forum can only have posts started by admins (it is a site news forum)

The post was posted fine, despite the error.

I have posted in an admin forum as a test and all was fine.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#173615 - 01/15/07 10:56 AM Re: Anyone recognise this error? [Re: Ian]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
At what point did you get the error? The only place that query is used in is to show the total # of unread posts in a forum, the 7.1 feature.
Top
#173618 - 01/15/07 11:05 AM Re: Anyone recognise this error? [Re: Rick]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
the error has now gone - mind you the database then corrupted LOL

not having a lot of luck \:\(
Top
#174985 - 01/22/07 07:32 AM Re: Anyone recognise this error? [Re: Ian]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
Okay - just set up a new forum as a test - and am getting this error again.

This is a stock 7.1b4 - and I get the error on all items (posts, CP changes etc..)

I have not altered any templates yet - so this is out of the box.
Top
#174986 - 01/22/07 07:58 AM Re: Anyone recognise this error? [Re: Ian]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
Even just showing 'who's online' brings up this error \:\(
Top
#174987 - 01/22/07 08:19 AM Re: Anyone recognise this error? [Re: Ian]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
BTW - tried repairing ubbt_POSTS - no joy \:\(
Top
#175151 - 01/23/07 12:52 AM Re: Anyone recognise this error? [Re: Ian]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
anyone?

any thoughts?

\:\(
Top
#175155 - 01/23/07 01:26 AM Re: Anyone recognise this error? [Re: Ian]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Query: select count(*) from ubbt_POSTS WHERE POST_POSTED_TIME >

It looks like it failed when trying to count the number of posts before a specific time, such as for the "latest posts in thread" opion that shows at the thread listing; it looks like the time wasn't included or something?

is it reoccouring?
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175158 - 01/23/07 01:37 AM Re: Anyone recognise this error? [Re: Gizmo]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
yes - but this is a brand new forum - it happened on the very first post \:\(

I have only made 3 so far - 1 global announcement, 1 sticky and now a test in an admin forum.

All had this error, as did various changes in the CP prior to even posting.

However on every ocasion the requested task is carried out, despite the error.
Top
#175162 - 01/23/07 01:41 AM Re: Anyone recognise this error? [Re: Ian]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Is this on the same server as your production forum ?
Top
#175164 - 01/23/07 01:48 AM Re: Anyone recognise this error? [Re: ntdoc]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
yes - which is running along just fine now \:\)
Top
#175165 - 01/23/07 01:49 AM Re: Anyone recognise this error? [Re: Ian]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
.. touch wood ;\)
Top
#175168 - 01/23/07 01:52 AM Re: Anyone recognise this error? [Re: ntdoc]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Another question would be is it on the same domain as another forum...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175169 - 01/23/07 01:53 AM Re: Anyone recognise this error? [Re: Ian]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
LOL - Just mighty coincidental to have such issues on a NEW install.

Just FYI I installed my new site yesterday and did not run into any issues aside from some nuances that I suggested changes for.

Did a clean new install of UBBT 7.1b4 on Linux system with Apache 1.3
Top
#175175 - 01/23/07 01:58 AM Re: Anyone recognise this error? [Re: Gizmo]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
 Originally Posted By: Gizmo
Another question would be is it on the same domain as another forum...


Different domain \:\) (using my other licence - need to buy more LOL )
Top
#175176 - 01/23/07 01:59 AM Re: Anyone recognise this error? [Re: Ian]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
well, that would avoid the possiblity of any cookie conflicts (hey i'm grasping at straws here lol)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175185 - 01/23/07 02:14 AM Re: Anyone recognise this error? [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
I was grasping at hardware/path/config issues of the main server for one or more of PHP or MySQL ????

Is this on Linux box?
Top
#175187 - 01/23/07 02:18 AM Re: Anyone recognise this error? [Re: ntdoc]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
both on linux - both forums on the same server, but different domain names.

All the paths are the same (except the domain part obviously) \:\)

Very strange....

I will check all settings again today - but it is the morning school run time now.....
Top
#175190 - 01/23/07 02:35 AM Re: Anyone recognise this error? [Re: Ian]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
The hardware seems sane, with the exception of his backup script which just eats away at system resources lol
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175191 - 01/23/07 02:37 AM Re: Anyone recognise this error? [Re: Gizmo]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
tell me about it \:\(

However that is not the cause of this error....
Top
#175193 - 01/23/07 02:49 AM Re: Anyone recognise this error? [Re: Ian]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
as long as it's not preformance/resource related lol
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175197 - 01/23/07 02:59 AM Re: Anyone recognise this error? [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Yep, but pretty strange that a NEW clean install has problems too right out the gate.
Top
#175271 - 01/23/07 10:53 AM Re: Anyone recognise this error? [Re: Ian]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Looking at this again, the query seems to be a bit incomplete. That would give the total # of new posts in all forums older than a new date. I'm trying to locate where we even do a query like that.
Top
#175272 - 01/23/07 10:59 AM Re: Anyone recognise this error? [Re: Ian]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Ok, I've been searching through all of the scripts and I can't find any query like this. The scripts that check for unread posts all specify an individual forum and use a join in the process, so they look more like "and t1.POST_POSTED_TIME > "

There is no query in the default code that I can find anywhere that executes a query like this.
Top
#175274 - 01/23/07 11:18 AM Re: Anyone recognise this error? [Re: Rick]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
Hi,

This was a stock install - nothing had altered - however it has now vanished.

All very strange....

As long as it remains that way, I will be happy.

Thanks for having a look and my apologies for any inconvenience \:\)
Top
#175289 - 01/23/07 02:04 PM Re: Anyone recognise this error? [Re: Rick]
Ian Spence Offline
Registered: 06/04/06
Posts: 255
 Originally Posted By: Rick
Ok, I've been searching through all of the scripts and I can't find any query like this. The scripts that check for unread posts all specify an individual forum and use a join in the process, so they look more like "and t1.POST_POSTED_TIME > "

There is no query in the default code that I can find anywhere that executes a query like this.


Don't have the code with me, but what about cache_builders/forum_stats.php
Top
#175290 - 01/23/07 02:09 PM Re: Anyone recognise this error? [Re: Ian Spence]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Nope, that one doesn't query the POSTS table at all. It grabs the total posts from the FORUMS table, using the FORUM_TOPICS and FORUM_POSTS fields.
Top
#175292 - 01/23/07 02:17 PM Re: Anyone recognise this error? [Re: Rick]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
Rick - when I first had this problem it was just after I had installed Ian's modification to forum_stats.php.

However this was a fresh install - I did various things to correct the issue, including re-uploading. Whether re-uploading this file did the trick I do not know.
Top
#175296 - 01/23/07 02:43 PM Re: Anyone recognise this error? [Re: Ian]
Ian Spence Offline
Registered: 06/04/06
Posts: 255
Well yeah, that's my query, but if that was causing it it'd imply either an issue with $html->get_date(), php's ability to subtract, or $dbh->do_placeholder_query(). What bothers me is that I'm anal about using the __LINE__ and __FILE__ parameters in queries, so those for some reason weren't getting added into the error
Top
#179929 - 03/03/07 04:06 PM Re: Anyone recognise this error? [Re: Ian Spence]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
I am now receiving the following error:

 Quote:

We encountered a problem. The reason reported was
Script: /home/virtual/site5/fst/var/www/html/forums/scripts/showflat.inc.php
Line#: 226
SQL Error: Can't open file: 'ubbt_POSTS.MYD'. (errno: 145)
SQL Error #: 1016
Query: SELECT t1.TOPIC_ID,t1.FORUM_ID,t1.TOPIC_LAST_REPLY_TIME,t1.TOPIC_IS_STICKY,t1.POST_ID FROM ubbt_TOPICS as t1, ubbt_POSTS as t2 WHERE t2.POST_ID = 85993 AND t1.TOPIC_ID = t2.TOPIC_ID

Please use your back button to return to the previous page.

Will doing a repair on the ubbt_posts.myd table solve the problem? It isn't showing any rows with only 1B in both data_length and index_length columns.
Top
#179930 - 03/03/07 04:10 PM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
Looking at the ubbt_posts table itself, it says "in use" which is what is obviously causing the problem.
Top
#179931 - 03/03/07 04:14 PM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
I am ready to use the repair table ubbt_posts command, however, I want to make sure this is ok to do before I do it as I can't afford to mess up on such a critical table as I don't want to lose all the posts data.
Top
#179933 - 03/03/07 04:57 PM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
It's saying it cannot read ubbt_POSTS, so I believe that a repair should fix the issue
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#179934 - 03/03/07 05:00 PM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
this error code is associated with a crash of the MySQL database, where the table (in this case, the ubbt_POSTS table) is marked as needing repair.

MySQL.com provides:
"4.4.6.7 Using myisamchk for Crash Recovery" http://www.mysql.com/doc/en/Crash_recovery.html
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#179941 - 03/03/07 05:17 PM Re: Anyone recognise this error? [Re: Gizmo]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
I did the REPAIR TABLE ubbt_POSTS command about twenty or so minutes ago.

The data base has been growing ever since, and is still growing.

If it doesn't stop growing soon, I may run out of server space.
Top
#179943 - 03/03/07 05:18 PM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
Does it create a temporary file or table while doing the repair?
Top
#179944 - 03/03/07 05:20 PM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
While this is going on, it won't let me access the database via MySQL Admin.
Top
#179945 - 03/03/07 05:21 PM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
It has increased by about 100MB since I executed the repair command via the UBBT Control Panel after closing down the board.
Top
#179948 - 03/03/07 05:54 PM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
The repair didn't work via the SQL Command in the Control Panel.

It increased the database size up to the max. space and then reverted back to normal size again.

Any ideas on what to do next?
Top
#179951 - 03/03/07 06:15 PM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
Their server support is now trying to repair it for me.

They said they are doing a "real repair" whatever that means. \:\)

Well, as long as it works, that is fine with me. \:\)
Top
#179955 - 03/03/07 09:25 PM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
Three hours later and the repair isn't done yet.
Top
#179956 - 03/03/07 10:48 PM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
I had linked you to a MySQL.com topic on the matter this afternoon before i went out which explained alternative repair methods.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#179960 - 03/03/07 11:01 PM Re: Anyone recognise this error? [Re: Gizmo]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
After about 6 hours, the repair was successfully completed by our server support.

As this is the 2nd time that table became corrupted, the question is why did it become corrupted?
Top
#179961 - 03/04/07 12:38 AM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
MySQL tables/databases can become currupted for any number of reasons; server crashes, insufficient space, etc; it all honestly varies case by case.

For most cases you can repair the database with built in command tools, such as the "myisamchk" tool I linked to in my previous post.

In a lot of cases, a simple "repair" via the MySQL command can fix a lot of issues; however, running this or any SQL maintenance from a web browser is highly not advised by me, it will take forever, doing such tasks from the command line will highly improve wait times here as you'll not be bogging down (or be bogged down by) the webserver to execute MySQL commands and recieve feedback.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#179968 - 03/04/07 07:36 AM Re: Anyone recognise this error? [Re: Gizmo]
ajwharton Offline
journeyman
Registered: 03/01/07
Posts: 50
Not to do a thread hijack here, but is there a resource for preventative measures that a n00b MySQL admin should take for the UBB data? I back it up (via the web interface) daily. Are there consistency checks or other things that I should be doing?
Top
#179972 - 03/04/07 09:50 AM Re: Anyone recognise this error? [Re: ajwharton]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
After what I went through twice, I would also be interested in the preventative measures aspect.
Top
#179976 - 03/04/07 10:53 AM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Table corruption can happen from a variety of things. It's more prone to happen on a shared server. Some of the reasons would include:

  • Hardware issues, motherboard/cpu/memory or a slow/bad hard drive.
  • The mysql process being killed while the database is being written to.
  • The computer/server being shutdown unexpectedly.
  • Certain versions of MySQL have bugs in them that are more prone to corruption. So, it's important for the host to be on top of things and upgrade accordingly.


In short, the more stable and up to date the server is the less frequently you should have table crashes. For example, here, we haven't had a single table crash.

There are no real preventative steps that can be taken. If you have frequent corruption issues, then it's more than likely related to something above.

Having a properly tuned mysql server can help. If you're on a hosting company that just throws up a mysql server and uses the default configuration, that certainly isn't going to help, especially if you're using shared hosting.
Top
#180016 - 03/04/07 09:45 PM Re: Anyone recognise this error? [Re: Rick]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
And I am using shared hosting.
Top
#180524 - 03/12/07 10:25 AM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
The same problem happened again on the same day, Saturday, as it did the previous week.

I also discovered that they do the site back-ups on that day, which makes me wonder, if the site back-up may be triggering the problem?
Top
#180526 - 03/12/07 10:30 AM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
A related question:

If I do a back-up of that table, and this happens, again, how would I replace the corrupted table with the back-up table?
Top
#180528 - 03/12/07 10:50 AM Re: Anyone recognise this error? [Re: Daryl Fawcett]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
When they are backing up the table it very well could be taxing MySQL heavily and contributing to the problem.

As for restoring a backup table. You could use something like phpmyadmin to drop the old table (not the entire database) and then import the backup table.
Top
#180537 - 03/12/07 02:29 PM Re: Anyone recognise this error? [Re: Rick]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 469
Loc: Canada
As this happened the last two Saturdays, I will do a backup of that table on Friday evening, or first thing Saturday morning, and, if it happens again, I will drop that table and import the backup one via phpmyadmin.
Top
Page 1 of 6 1 2 3 4 5 6 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181698 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image