Author Topic: Database Error  (Read 2939 times)

tandiono

  • Guest
Database Error
« on: February 24, 2007, 07:36:32 am »
Im getting a database error for :

http://www.friendsterforum.com/forum/index.php?action=shop

shop mods is installed to the latest version.

----

Database Error
Unknown column 'category' in 'field list'
File: /home/friend/public_html/forum/Sources/shop/Shop-Subs.php
Line: 108


anyone please kindly assist me. Thanks

Offline Daniel15

Re: Database Error
« Reply #1 on: February 24, 2007, 08:15:09 am »
Try running this query in phpMyAdmin:
Code: [Select]
ALTER TABLE smf_shop_items ADD `category` SMALLINT NOT NULL

And see if this fixes the issue.

tandiono

  • Guest
Re: Database Error
« Reply #2 on: February 24, 2007, 07:56:10 pm »
i try to run this query in phpmyadmin.. But still fail. Is there anyway?

Offline Daniel15

Re: Database Error
« Reply #3 on: February 24, 2007, 08:58:11 pm »
Are you still getting the same error, or is it a different error this time?

tandiono

  • Guest
Re: Database Error
« Reply #4 on: February 25, 2007, 06:20:43 am »
it's still the same error. Is there anyway to fix this issue? THanks

Offline Daniel15

Re: Database Error
« Reply #5 on: February 25, 2007, 05:22:08 pm »
Is your database prefix smf_? If not, edit the query so it has the correct prefix, and run it again.
If you PM me with cPanel login details, I'll try and see what's wrong with it.

tandiono

  • Guest
Re: Database Error
« Reply #6 on: February 25, 2007, 08:47:04 pm »
here's what it say :

Error

SQL query:

ALTER TABLE smf_shop_items ADD `category` SMALLINT NOT NULL

MySQL said: Documentation
#1146 - Table 'friend_shout.smf_shop_items' doesn't exist


Please kindly assist me. Thanks

Offline Daniel15

Re: Database Error
« Reply #7 on: February 26, 2007, 06:18:35 pm »
Quote
#1146 - Table 'friend_shout.smf_shop_items' doesn't exist
Is friend_shout the SMF database? And is smf_ the prefix?

If friend_shout is not the correct database, choose the correct one via the list on the left-hand side of phpMyAdmin, and repeat the query.