Welcome to Geeklog, Anonymous Saturday, September 12 2026 @ 12:42 am EDT
Geeklog Forums
Changes to a Story results in SQL error
Status: offline
domokun
Forum User
Chatty
Registered: 06/12/05
Posts: 37
I was using GL and edited a story with a link to a static page. The link was in the body and was this:
Once I saved this page I now receive this error:
7/4/2005 4:27:00 PM - 1064: 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 'WHERE sp_id = '1'' at line 1. SQL in question:
SELECT sp_title FROM WHERE sp_id = '1'
I am a newbie on GL and mySQL and was hoping someone had a fix for me?/
Thanks
Once I saved this page I now receive this error:
7/4/2005 4:27:00 PM - 1064: 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 'WHERE sp_id = '1'' at line 1. SQL in question:
SELECT sp_title FROM WHERE sp_id = '1'
I am a newbie on GL and mySQL and was hoping someone had a fix for me?/
Thanks
19
17
Quote
Status: offline
domokun
Forum User
Chatty
Registered: 06/12/05
Posts: 37
Did some more digging and was able to get into the DB and remove the tag from that specific table. So the error is gone but I still have a question:
So I looked in the documentation and did a search as well and I cannot find out how to link to the static page. This is the link that caused the problem: ....imagine it with brackets around it!!
Anyone know the proper code?
TIA
So I looked in the documentation and did a search as well and I cannot find out how to link to the static page. This is the link that caused the problem: ....imagine it with brackets around it!!
Text Formatted Code
staticpage:1 Anyone know the proper code?
TIA
16
17
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The proper syntax is "staticpage:", followed by the page's id and all that enclosed in square brackets:
However, even if that page does not exist, it should never produce an SQL error. Your problem appears to lie elsewhere.
Specifically, the name of the gl_staticpages table is missing from that SQL request, so that's what caused the SQL error. Did you try to modify any of the files of the static pages plugin?
bye, Dirk
However, even if that page does not exist, it should never produce an SQL error. Your problem appears to lie elsewhere.
Specifically, the name of the gl_staticpages table is missing from that SQL request, so that's what caused the SQL error. Did you try to modify any of the files of the static pages plugin?
bye, Dirk
25
20
Quote
All times are EDT. The time is now 12:42 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