如何解决拷贝网站后出现的问题
问题1:footer不见,网站下方出现一段代码如下:
1146 Table ‘uggboot7_jordanxir.TABLE_BOX_NEWS_CONTENT’ doesn’t exist
in:
[select nc.news_title, nc.news_content from TABLE_BOX_NEWS_CONTENT nc, TABLE_BOX_NEWS n where n.box_news_id = nc.box_news_id and nc.languages_id = 1 and n.news_status = 1 and now() between n.news_start_date and n.news_end_date]
这是因为丢失了文件,TABLE_BOX_NEWS_CONTENT 这个表不存在,解决办法是在includes/database_tables.php文件的最下方添加define(’TABLE_BOX_NEWS_CONTENT’, ‘zen_box_news_content’);
问题2:问题1解决后,可能那段代码变为:
1146 Table ‘uggboot7_jordanxir.TABLE_BOX_NEWS’ doesn’t exist
in:
[select nc.news_title, nc.news_content from zen_box_news_content nc, TABLE_BOX_NEWS n where n.box_news_id = nc.box_news_id and nc.languages_id = 1 and n.news_status = 1 and now() between n.news_start_date and n.news_end_date]
是因为该问题还没解决好,文件丢失。再在includes/database_tables.php文件里,刚才加的下方再添一句:define(’TABLE_BOX_NEWS’, ‘zen_box_news’);
OK,可以了,刷新下前台吧!