可不可以PO 錯誤的那一行+前後各一行,讓大家一起來看看到底發生了何種語法錯誤.yangchenkuang 寫:請問一下k.h.chen 寫:安裝好新的論壇程式後,利用phpBB的匯入,匯出資料庫的功能就可以了.
我照著上述的方式想要把我的論譚移到另一個主機上
新的主機是跟竹貓租的
可是選了phpbb裡的回復資料庫之後
卻會出現以下的訊息..
phpBB : Critical Error
Could not query database for theme info
DEBUG MODE
SQL Error : 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 '' at line 3
請問這是哪邊出了問題阿??
[問題]移主機要怎樣移資料
版主: 版主管理群
版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
Re: [問題]請問轉移主機
Re: [問題]請問轉移主機
I check 'config.php', right?k.h.chen 寫:
可不可以PO 錯誤的那一行+前後各一行,讓大家一起來看看到底發生了何種語法錯誤.
<?php
// phpBB 2.x auto-generated config file
// Do not change anything in this file!
$dbms = 'mysql4';
$dbhost = 'localhost';
$dbname = 'xxxx';
$dbuser = 'xxxx';
$dbpasswd = 'xxxx';
$table_prefix = 'phpbb_';
define('PHPBB_INSTALLED', true);
?>
That's all above, thanks so much!!
table prefix=phpbb_
this is default, I should modify this?
and I notice that yet!
小弟新的空間
MySQL 文字編碼: UTF-8 Unicode (utf8)
看個些文utf-8好像要整好耐..!
係唔係呀!?
Re: [問題]請問轉移主機
Please refer to the suggestion in this article.genes212 寫:I check 'config.php', right?k.h.chen 寫:
可不可以PO 錯誤的那一行+前後各一行,讓大家一起來看看到底發生了何種語法錯誤.
<?php
// phpBB 2.x auto-generated config file
// Do not change anything in this file!
$dbms = 'mysql4';
$dbhost = 'localhost';
$dbname = 'xxxx';
$dbuser = 'xxxx';
$dbpasswd = 'xxxx';
$table_prefix = 'phpbb_';
define('PHPBB_INSTALLED', true);
?>
That's all above, thanks so much!!
table prefix=phpbb_
this is default, I should modify this?
and I notice that yet!
小弟新的空間
MySQL 文字編碼: UTF-8 Unicode (utf8)
看個些文utf-8好像要整好耐..!
係唔係呀!?
http://www.phpbb.com/phpBB/viewtopic.php?t=342731
....
想到那篇文章
你看看,
也就是你現有的問題, 可以參考這篇
http://www.phpbb.com/kb/article.php?article_id=13
參考裡有兩種FIXES(維護)
你先試Automated Fix A and B,
Manual Fix A and B 暫時請不要使用\r
好, 再回到樓上那位大大提供給你的第一個參考連結
http://www.phpbb.com/phpBB/viewtopic.php?t=342731
熱心大大有說到:
這裡, 請你去你的資料庫裡, 查看theme_id (在themes table裡),
請你再到 users table→ user_style 資料是否 相關數位著 theme_id的
如果你目前是換了新的風格, 而沒有套入外掛於新風格裡也有可能會造成目前的問題
再來作者回應:
你只要按一下"edit"圖示在你名字旁邊(database), 再把user_style filed 設定做"1"
看看能不能解決......
你看看,
代碼: 選擇全部
phpBB : Critical Error
Could not query database for theme info
DEBUG MODE
SQL Error : 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 '' at line 3 http://www.phpbb.com/kb/article.php?article_id=13
參考裡有兩種FIXES(維護)
你先試Automated Fix A and B,
Manual Fix A and B 暫時請不要使用\r
好, 再回到樓上那位大大提供給你的第一個參考連結
http://www.phpbb.com/phpBB/viewtopic.php?t=342731
熱心大大有說到:
代碼: 選擇全部
Is the sql command displayed? It would help to see it.
Are you using the subSilver theme?
Go into the database and get the theme_id from the themes table. Then in the users table, check that your user_style is set to the theme_id.請你再到 users table→ user_style 資料是否 相關數位著 theme_id的
如果你目前是換了新的風格, 而沒有套入外掛於新風格裡也有可能會造成目前的問題
再來作者回應:
代碼: 選擇全部
The user_style field should be in the users table unless it got deleted somehow. The structure starts like this:Quote:
CREATE TABLE phpbb_users (
user_id mediumint(8) NOT NULL default '0',
user_active tinyint(1) default '1',
username varchar(25) NOT NULL default '',
user_password varchar(32) NOT NULL default '',
user_session_time int(11) NOT NULL default '0',
user_session_page smallint(5) NOT NULL default '0',
user_lastvisit int(11) NOT NULL default '0',
user_regdate int(11) NOT NULL default '0',
user_level tinyint(4) default '0',
user_posts mediumint(8) unsigned NOT NULL default '0',
user_timezone decimal(5,2) NOT NULL default '0.00',
user_style tinyint(4) default NULL, <~~~~這個
user_lang varchar(255) default NULL,
user_dateformat varchar(14) NOT NULL default 'd M Y H:i',
Browse the phpbb_users table.
Click the edit icon next to your name
Set the user_style field to 1看看能不能解決......
目前本人帳號嚴重地被盜用!MSN已經被盜!
想問個問題並不打擾, 但沒有發文格式, 其他人不能知道你的情況!
請尊守竹貓各區裡的發文格式, 謝謝合作!
[必看]請配合發問格式及明確主題發問(04 02/16更新) phpBB!
所有新手必看的
[教學]認識、安裝和參考PHPBB的新手基本教學通
PS:感謝各位大大的幫助和教導^^
Q168.net空間技術交流
個人小品(Blog) │My phpBB-Blog │免費空間討論區

