Search code examples
phpmysqlphpmyadminphpbb

SQL error on phpBB


I get this error when trying to update the profile in ucp

SQL ERROR [ mysql4 ]

Unknown column 'see_porn_cat' in 'field list' [1054]

SQL

UPDATE phpbb_users SET user_icq = '', user_aim = '', user_msnm = '', user_yim = '', user_jabber = '', user_website = 'http://footballbb.org', user_from = '', user_occ = '', user_interests = '', user_notify_type = '0', see_porn_cat = NULL, user_custom_title = 'U JELLY?' WHERE user_id = 9086

BACKTRACE

FILE: includes/db/mysql.php
LINE: 175
CALL: dbal->sql_error()

FILE: includes/ucp/ucp_profile.php
LINE: 423
CALL: dbal_mysql->sql_query()

FILE: includes/functions_module.php
LINE: 507
CALL: ucp_profile->main()

FILE: ucp.php
LINE: 327
CALL: p_master->load_active()

I have made some changes there in the past,but I'm sure that I removed the database and the code that's related to the changes I made. Can you tell me where to look for anything related to that error ? :roll:


Solution

  • This table does not contain the column see_porn_cat

    So you need to use this query

    UPDATE phpbb_users SET user_icq = '', user_aim = '', user_msnm = '', user_yim = '', user_jabber = '', user_website = 'http://footballbb.org', user_from = '', user_occ = '', user_interests = '', user_notify_type = '0', user_custom_title = 'U JELLY?' WHERE user_id = 9086