Title: &quot;WordPress database error&quot;
Last modified: August 31, 2016

---

# "WordPress database error"

 *  [mpjjint](https://wordpress.org/support/users/mpjjint/)
 * (@mpjjint)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-please-wordpress-database-error/)
 * my blog has the code you see below at the top. What is it and how can I get rid
   of it?
    ————————————– WordPress database error: [Column ‘referal_url’ cannot 
   be null] INSERT INTO `wp_dwpc_impressions` (`id`, `text_id`, `filtered`, `time_created`,`
   wp_post_id`, `dwpc_visitor_id`, `dwpc_last_impression_id`, `ip_address`, `impression_url`,`
   referal_url`) VALUES (NULL, ‘ogTxAFr’, ‘0’, ‘2016-01-17 23:42:14’, ‘0’, ‘0’, ‘
   32129’, ‘73.200.219.200’, ‘[http://mpjj.pw/&#8217](http://mpjj.pw/&#8217);, NULL)———————————

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Pancheps](https://wordpress.org/support/users/pancheps/)
 * (@pancheps)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-please-wordpress-database-error/#post-6954451)
 * In your database the referal_url field of the wp_dwpc_impressions table is set
   to not be NULL, and at the moment of adding a record you try to set this field
   for the new record to NULL.
    I see two options to solve this: 1. Avoid setting‘
   referal_url’ to NULL: INSERT INTO wp_dwpc_impressions (id, text_id, filtered,
   time_created, wp_post_id, dwpc_visitor_id, dwpc_last_impression_id, ip_address,
   impression_url, **referal_url**) VALUES (NULL, ‘ogTxAFr’, ‘0’, ‘2016-01-17 23:
   42:14’, ‘0’, ‘0’, ‘32129’, ‘73.200.219.200’, ‘[http://mpjj.pw/&#8217](http://mpjj.pw/&#8217);,**
   NULL**) <- This value **NULL** shouldn’t be actually NULL. 2. Access your database(
   you can do it via phpMyAdmin or any other database client) and modify the field‘
   referal_url’ so it can hold a NULL value. For this you can use the following 
   query in the SQL console for your database: ALTER TABLE wp_dwpc_impressions MODIFY
   referal_url VARCHAR(200) NULL;
 *  Thread Starter [mpjjint](https://wordpress.org/support/users/mpjjint/)
 * (@mpjjint)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-please-wordpress-database-error/#post-6954593)
 * Thanks for the help. I cannot find the database in my phyMyAdmin.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘"WordPress database error"’ is closed to new replies.

## Tags

 * [WordPress database error](https://wordpress.org/support/topic-tag/wordpress-database-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [mpjjint](https://wordpress.org/support/users/mpjjint/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/help-please-wordpress-database-error/#post-6954593)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
