Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 02:53 am EST
Geeklog Forums
Intermittent SQL error
Santoni
Anonymous
Hello,
I've searched the forums and have seen people mention issues like this one....but I havent found the real solution.
I am using PHP Version 5.1.6 and Geeklog 1.4.1
At times (could be related to my sessions being cached I assume) I get the error 'An SQL error.....please see error.log
In the error log I get:
1146: Table 'mydatabasename.gl_stories' doesn't exist.
SQL in question: SELECT COUNT(*) FROM gl_stories WHERE featured = '1'
If I refresh the page.....everything seems to be ok.....and eventually after a few click through's it happens again.
I only have one story in the table....and the table is there.
The only other thing I have added is MediaGallery 1.5.0
Any ideas on how to fix this issue?
Thanks
I've searched the forums and have seen people mention issues like this one....but I havent found the real solution.
I am using PHP Version 5.1.6 and Geeklog 1.4.1
At times (could be related to my sessions being cached I assume) I get the error 'An SQL error.....please see error.log
In the error log I get:
1146: Table 'mydatabasename.gl_stories' doesn't exist.
SQL in question: SELECT COUNT(*) FROM gl_stories WHERE featured = '1'
If I refresh the page.....everything seems to be ok.....and eventually after a few click through's it happens again.
I only have one story in the table....and the table is there.
The only other thing I have added is MediaGallery 1.5.0
Any ideas on how to fix this issue?
Thanks
11
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: Santoni
Table 'mydatabasename.gl_stories' doesn't exist.
So you are sure this refers to your actual table, i.e. the table is named "gl_stories" and it is located in the database "mydatabasename"?
If so, I'd suggest you contact your hosting service and ask them if there's a problem with their MySQL install. A database table can't just hop in and out of existence. It's either there or it isn't - permanently, in either case. Geeklog can only report what MySQL (via PHP) told it. And if the MySQL server for your site sometimes claims that the table isn't there, I'd say that's a problem on the server side.
bye, Dirk
9
10
Quote
All times are EST. The time is now 02:53 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content