Loading...
 
Skip to main content

Architecture / Installation


articles db table error (newbie warning)

Good day all,

In brief: I receive a mysql error when attempting to access the articles section of the site after enabling articles from Admin -> Features. Other functionality activated at the same time (blogs & forums) ok.

Details:

User knowledge level: computer-literate, MySQL/PHP ignorant
OS: Debian GNU/Linux testing/unstable; uname -a output: Linux deepthought 2.6.15-1-686-smp #2 SMP Mon Mar 6 15:34:50 UTC 2006 i686 GNU/Linux
tikiwiki version: 1.9.2 -Sirius-
MySQL version: 5.0.18-Debian_9-log
PHP version: PHP Version 4.4.2-1
Error Actions: Activated articles on page .../tiki-admin.php?page=features by checking the box and clicking the "Change Preferences" button. Then clicked link "articles" on menu.
Error Message:

Warning: mysql error: Table 'scenpa_heuristix.tiki_articles' doesn't exist in query:

select `tiki_articles`.*,
`users_users`.`avatarLibName`,
`tiki_article_types`.`use_ratings`,
`tiki_article_types`.`show_pre_publ`,
`tiki_article_types`.`show_post_expire`,
`tiki_article_types`.`heading_only`,
`tiki_article_types`.`allow_comments`,
`tiki_article_types`.`show_image`,
`tiki_article_types`.`show_avatar`,
`tiki_article_types`.`show_author`,
`tiki_article_types`.`show_pubdate`,
`tiki_article_types`.`show_expdate`,
`tiki_article_types`.`show_reads`,
`tiki_article_types`.`show_size`,
`tiki_article_types`.`show_topline`,
`tiki_article_types`.`show_subtitle`,
`tiki_article_types`.`show_linkto`,
`tiki_article_types`.`show_image_caption`,
`tiki_article_types`.`show_lang`,
`tiki_article_types`.`creator_edit`
from `tiki_articles`, `tiki_article_types`, `users_users`
where (`tiki_articles`.`publishDate`/bucket/www/scenpa/heuristix/lib/tikidblib.php on line 134

Possibly related to:

http://tikiwiki.org/tiki-view_forum_thread.php?topics_offset=14&topics_sort_mode=lastPost_desc&forumId=6&comments_parentId=19220Question


I'm happy to provide more info, edit or checkout code, & absorb any offered clues. Sadly, I'm not sure where to start.

TIA!
flatrat

It seems your database was not created correctly. The table tiki-articles is missing!
If you can run the upgrade script (after saving your current database)
doc/devtools/sqlupgrade.sh
You will have errors but it is fine. Check after if the table exists.

(I am thinking also about the problem of the column name reads that is a reserved word in mysql5. This has been fixed in 1.9 cvs. In this case you will have to upgrade your tikwiki)

sylvie