Title: Security string (token) invalid
Last modified: April 29, 2020

---

# Security string (token) invalid

 *  Resolved [starmansk](https://wordpress.org/support/users/starmansk/)
 * (@starmansk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/security-string-token-invalid/)
 * Hello,
 * Suddenly, when I wanted to display reports, I am getting error with red background
   in slovak language “Bezpečnostný reťazec (token) nie je platný.”. Translation:
   Security string (token) not available. See link to screenshot attached. Using
   Matomo 1.0.5 with wordpress 5.4.1
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsecurity-string-token-invalid%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Thomas](https://wordpress.org/support/users/tsteur/)
 * (@tsteur)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/security-string-token-invalid/#post-12755022)
 * Hi [@starmansk](https://wordpress.org/support/users/starmansk/) a few hours ago
   I requested access to this screenshot. Be great to give me access otherwise I
   won’t be able to look into it. Cheers
 *  Plugin Author [Thomas](https://wordpress.org/support/users/tsteur/)
 * (@tsteur)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/security-string-token-invalid/#post-12755423)
 * Thanks [@starmansk](https://wordpress.org/support/users/starmansk/) I can now
   view the image. Does this image happen only in the admin of Matomo? Only when
   you perform a certain action maybe?
 *  Thread Starter [starmansk](https://wordpress.org/support/users/starmansk/)
 * (@starmansk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/security-string-token-invalid/#post-12755578)
 * THis problem appeaars when I click “Reporting” or “Tag Manager” links. Summary,
   Settings and simply everything what is openein within wordpress admin interface
   looks fine. But Reporting opens new window with Matomo dashboard and it looks
   like this token issue causes that no reports are visible/generated
 *  Plugin Author [Thomas](https://wordpress.org/support/users/tsteur/)
 * (@tsteur)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/security-string-token-invalid/#post-12761865)
 * Thanks [@starmansk](https://wordpress.org/support/users/starmansk/)
 * Any chance you could send us the system report (see [https://matomo.org/faq/wordpress/how-do-i-find-and-copy-the-system-report-in-matomo-for-wordpress/](https://matomo.org/faq/wordpress/how-do-i-find-and-copy-the-system-report-in-matomo-for-wordpress/)
   on how to get it) as a comment here (it should be anonymised) or by sending it
   to [wordpress@matomo.org](https://wordpress.org/support/topic/security-string-token-invalid/wordpress@matomo.org?output_format=md)?
 * In case you are familiar with editing files on your server, do you mind editing
   the file `wp-content/plugins/matomo/plugins/WordPress/WordPress.php` and basically
   for a short test add the two characters `//` to this line 293 as shown here: 
   [https://github.com/matomo-org/wp-matomo/compare/master…wpsuptest?quick_pull=1#diff-9cd2edfc2a1dd8cea8c7c7f553b1c6aaR293](https://github.com/matomo-org/wp-matomo/compare/master…wpsuptest?quick_pull=1#diff-9cd2edfc2a1dd8cea8c7c7f553b1c6aaR293)?
   If you add these two characters temporarily, does it work then?
 *  Thread Starter [starmansk](https://wordpress.org/support/users/starmansk/)
 * (@starmansk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/security-string-token-invalid/#post-12766449)
 * I discovered where the problem is. It looks that Matomo plugin has conflict with
   another wordpress plugin: DataTables plugin by Subsystic. After I deactivated
   this plugin, Matomo started to work as expected. When I enabled plugin, Matomo
   stopped to work again… So definitely check that datatables plugin below.
 * [https://wordpress.org/plugins/data-tables-generator-by-supsystic/  ](https://wordpress.org/plugins/data-tables-generator-by-supsystic/  )
 * Now I have my reports back, dashboard working fine, widgets are back and there
   is no error message about invalid token anymore.
 *  Plugin Author [Thomas](https://wordpress.org/support/users/tsteur/)
 * (@tsteur)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/security-string-token-invalid/#post-12774159)
 * Thanks [@starmansk](https://wordpress.org/support/users/starmansk/)
 * Very much appreciated. This was a big help. We have prepared a fix for this here:
   [https://github.com/matomo-org/wp-matomo/pull/265/files](https://github.com/matomo-org/wp-matomo/pull/265/files)
   and this fix will be included in the next update.
 * The reporting and admin works now. However, some links in the Matomo reporting
   top menu and dashboard are looking “unstyled” now. I have debugged this for quite
   a while and it seems that plugin is using an older version of a library called“
   Twig” causing these issues likely. I will try to inform these developers so maybe
   they can have a look.
 * Thanks for your help again.

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

The topic ‘Security string (token) invalid’ is closed to new replies.

 * ![](https://ps.w.org/matomo/assets/icon-256x256.png?rev=3531741)
 * [Matomo Analytics - Powerful, Privacy-First Insights for WordPress](https://wordpress.org/plugins/matomo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/matomo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/matomo/)
 * [Active Topics](https://wordpress.org/support/plugin/matomo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/matomo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/matomo/reviews/)

## Tags

 * [token](https://wordpress.org/support/topic-tag/token/)

 * 6 replies
 * 2 participants
 * Last reply from: [Thomas](https://wordpress.org/support/users/tsteur/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/security-string-token-invalid/#post-12774159)
 * Status: resolved