Title: Cannot declare class WhichBrowser\Parser
Last modified: March 15, 2023

---

# Cannot declare class WhichBrowser\Parser

 *  [hamster2116](https://wordpress.org/support/users/hamster2116/)
 * (@hamster2116)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/cannot-declare-class-whichbrowserparser/)
 * Hello,
 * I’m getting this critical error:
 * 2023-03-13T21:26:44+00:00 CRITICAL Cannot declare class WhichBrowser\Parser, 
   because the name is already in use in /home/w0efpec/public_html/wp-content/plugins/
   duracelltomi-google-tag-manager/integration/whichbrowser/src/Parser.php in Zeile
   7
 * I never had this error before, so it could be related to WP Rocket since this
   is a brand new plugin added to the site (though I’m not sure).
 * Also found this old thread here: [https://wordpress.org/support/topic/cannot-declare-class-whichbrowserparser-because-the-name-is-already-in-use/](https://wordpress.org/support/topic/cannot-declare-class-whichbrowserparser-because-the-name-is-already-in-use/)
 * Would this be a suitable fix, what do you think?
 * Thanks in advance!

The topic ‘Cannot declare class WhichBrowser\Parser’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [hamster2116](https://wordpress.org/support/users/hamster2116/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/cannot-declare-class-whichbrowserparser/)
 * Status: not resolved