forum stats fail [message #6181] |
Sat, 05 October 2002 00:32 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hi,
I've just noticed an interesting bug here . On my test system I named the database fud-forum, however it seems that the forum stats don't like it very much. when I click admstats.php in the control panel it spills out the following:
Quote: | (rid=1&S=70a7fd5ddd3a076ce8794664c7b9946d) 1064: You have an error in your SQL syntax near '-forum' at line 1
Query: SHOW TABLE STATUS FROM fud-forum
Server Version: 3.23.52
[Referring Page] http: // hit0kiri.intern:65535/forum/adm/admglobal.php?rid=...
|
As one can see it definitely seems to be an issue with the database's name.
System is:
Quote: | PHP built On: Linux hit0kiri.intern 2.4.18-10 #1 Wed Aug 7 11:41:24 EDT 2002 i586 i586 i386 GNU/Linux
MySQL Version: 3.23.52
PHP Version: 4.2.4-dev
Web Server: Apache/1.3.27 (Unix) PHP/4.2.4-dev mod_perl/1.26
WebServer to PHP interface: apache
Forum Version: 2.3.2
Relavent PHP Settings:
Safe Mode: OFF
Display Errors: ON
File Uploads: ON
Magic Quotes: ON
Register Globals: ON
Output Buffering: ON
Disabled Functions: none
PSpell Support: Yes
|
It's a fresh installation so it's unlikely an issue with corrupted tables.
bye
Ken
|
|
|
Re: forum stats fail [message #6189 is a reply to message #6181] |
Sat, 05 October 2002 13:16 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
As you can well see the 'SHOW TABLE STATUS FROM fud-forum' query perfectly valid. Replacing the table name with anything works just fine, I suspect the problem is that MySQL does not like table names with a '-' in their names.
On a simular note, if you do: 'SHOW TABLE STATUS FROM fud\-forum' does it work?
FUDforum Core Developer
|
|
|
|
|
|