terryzx wrote:It appears that if I change NOT NULL to NULL that it now works ^
Yes, that issue is a real pain. I'll have it NULL by default in the next release.
terryzx wrote:It appears that if I change NOT NULL to NULL that it now works ^


SQL ERROR [ mysql4 ]
Unknown column 'user_notepad' in 'field list' [1054]
SQL
SELECT user_notepad FROM phpbb3_users WHERE user_id=2
BACKTRACE
FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()
FILE: includes/ucp/ucp_main.php
LINE: 220
CALL: dbal_mysql->sql_query()
FILE: includes/functions_module.php
LINE: 471
CALL: ucp_main->main()
FILE: ucp.php
LINE: 310
CALL: p_master->load_active()

ALTER TABLE phpbb3_users ADD user_notepad TEXT CHARACTER SET utf8 COLLATE utf8_bin;

Waleed wrote:Your database table name is phpbb3_ instead of the default phpbb_, so that might be the problem. You ran the SQL query, but it didn't actually do anything to your actual forum's database.![]()
Please run this SQL:
- Code: Select all
ALTER TABLE phpbb3_users ADD user_notepad TEXT CHARACTER SET utf8 COLLATE utf8_bin;






I appreciate it.

General Error
SQL ERROR [ mysql4 ]
Field 'user_notepad' doesn't have a default value [1364]
An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.





Waleed wrote:Is the field "NOT NULL" in your database? That is what causes this problem - please change it to "NULL" so that it can have an empty value. I don't have the SQL command that would do this, but you can do it in phpMyAdmin (or something similar).
This is my fault though, so I'm sorry for the trouble. I shouldn't have made it NOT NULL in the first place...


ScrapbookSupplies wrote:Thank you. I will try to get it figured out - I don't know how to do it either. If I figure it out I will post the solution back. Wondering if I could re-run the query, removing the word "not", but I'm not sure and a little afraid to try it.
I'll let you know.
Thanks,
ALTER TABLE phpbb_users DROP user_notepad;ALTER TABLE phpbb_users ADD user_notepad TEXT CHARACTER SET utf8 COLLATE utf8_bin NULL;ALTER TABLE phpbb_users ADD user_notepad TEXT CHARACTER SET utf8 COLLATE utf8_bin NULL;

Users browsing this forum: Ezooms Bot and 0 guests