Title: no log
Last modified: September 1, 2016

---

# no log

 *  [BenM](https://wordpress.org/support/users/alysko/)
 * (@alysko)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/no-log/)
 * Hi,
 * Sometimes, I forget to update CSP and part of my website doesn’t work. But there’s
   nothing in log, despite “Log violations”.
 * Thanks.
 * [https://wordpress.org/plugins/wp-content-security-policy/](https://wordpress.org/plugins/wp-content-security-policy/)

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

 *  Plugin Author [Dylan](https://wordpress.org/support/users/dyland/)
 * (@dyland)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/no-log/#post-7571952)
 * Have a look at your browser’s developer console, see what errors are displayed
   there. The browser should say whether it is in report-only mode. You can also
   check network traffic (again through the developer console) as there should be
   one call per rejected item.
 *  [mitchellk](https://wordpress.org/support/users/mitchellk/)
 * (@mitchellk)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/no-log/#post-7572009)
 * Same problem here, switched 5 sites to SSL last Friday and they all use v1.3 
   of the plugin and no violations are being logged at all despite me even forcing
   violations. On all existing SSL sites I set up 2-3 months ago it logs perfectly.
 *  [mitchellk](https://wordpress.org/support/users/mitchellk/)
 * (@mitchellk)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/no-log/#post-7572010)
 * Found the problem. v1.3 is not creating the database table for logging. Easily
   fixed by running.
 * > CREATE TABLE `wp_wpcsplog` (
   >  `id` mediumint(9) NOT NULL, `violated_directive`
   > varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ”, `blocked_uri` varchar(
   > 1024) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ”, `document_uri` varchar(
   > 1024) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ”, `useragent` varchar(1024)
   > COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ”, `remoteaddress` varchar(1024)
   > COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ”, `information` text COLLATE utf8mb4_unicode_ci
   > NOT NULL, `createdon` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE
   > =InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
 *  Plugin Author [Dylan](https://wordpress.org/support/users/dyland/)
 * (@dyland)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/no-log/#post-7572011)
 * The table should create on activation…perhaps I need more error checking around
   the insert to handle the possibility the table doesn’t exist.
 * I haven’t converted a site to SSL yet, I have one converting tomorrow and will
   look at why it might be not logging on SSL (if its not related to the create 
   table issue).
 *  Plugin Author [Dylan](https://wordpress.org/support/users/dyland/)
 * (@dyland)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/no-log/#post-7572012)
 * I just released version 1.4 which will auto-recreate the table if it’s missing.
   It does this when the admin screens are accessed.
 * I also tested SSL and it works OK.
 *  [zash77](https://wordpress.org/support/users/zash77/)
 * (@zash77)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/no-log/#post-8663793)
 * Logging doesn’t work for me either. I created the table manually, but no log 
   entries appear. I’m using wordpress 4.7.1
 * After investigating a bit, I could see that line 106 in `includes/wpCSPclass.
   php`, after `$data = file_get_contents('php://input');` data is empty. Therefore
   no logging, I guess, but in the browser console is stated that a CSP report was
   sent.
 * Any hints? I would really appreciate to use that smart plugin.

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

The topic ‘no log’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-content-security-policy_ffffff.
   svg)
 * [WP Content Security Plugin](https://wordpress.org/plugins/wp-content-security-policy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-content-security-policy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-content-security-policy/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-content-security-policy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-content-security-policy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-content-security-policy/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [zash77](https://wordpress.org/support/users/zash77/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/no-log/#post-8663793)
 * Status: not resolved