Title: Deprecated PHP error
Last modified: October 9, 2021

---

# Deprecated PHP error

 *  Resolved [kendawes](https://wordpress.org/support/users/kendawes/)
 * (@kendawes)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/deprecated-php-error-2/)
 * Hi!
    My debug log is constantly getting filled with the following…
 * PHP Deprecated: Non-static method OMAPI_ApiAuth::has_token() should not be called
   statically in /home/my-path/wp-content/plugins/optinmonster/OMAPI/RestApi.php
   on line 282
 * I’m running PHP7.4
 * Will you be addressing this deprecation soon?
 * Thanks!

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

 *  [PC](https://wordpress.org/support/users/pranayachaudhary/)
 * (@pranayachaudhary)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/deprecated-php-error-2/#post-14955185)
 * Hi [@kendawes](https://wordpress.org/support/users/kendawes/)
 * Thanks for writing in and reporting this.
 * Can you please ensure that you are running the latest version of the OptinMonster
   plugin?
 * If yes, can you kindly send an email to [support@optinmonster.com](https://wordpress.org/support/topic/deprecated-php-error-2/support@optinmonster.com?output_format=md)
   from your registered email address so that we can look into that and get that
   sorted out?
 * Please include a link to this thread in your email so that we can get to that
   faster 😊
 * Looking forward to hearing from you by email 😊
 *  [grindbehind](https://wordpress.org/support/users/grindbehind/)
 * (@grindbehind)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/deprecated-php-error-2/#post-14960049)
 * I’m getting the same issue. Both on PHP 8.0 and 7.4. I found it because upon 
   hitting “New Post,” I was getting a fatal error. When I turned debugging on, 
   I saw the same token message.
 * Disabling the Optinmonster plugin removed the fatal error.
 * I am on the latest version of the plugin (Version 2.6.5), which was just released
   a couple of days ago. I suspect this new version introduced this issue.
 *  [PC](https://wordpress.org/support/users/pranayachaudhary/)
 * (@pranayachaudhary)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/deprecated-php-error-2/#post-14961557)
 * Hi [@grindbehind](https://wordpress.org/support/users/grindbehind/)
 * Thanks for chiming in and adding to this. It will help us get to the root of 
   it.
 * As we handle support via our ticketing system for a faster response, could you
   kindly write to [support@optinmonster.com](https://wordpress.org/support/topic/deprecated-php-error-2/support@optinmonster.com?output_format=md)
   directly or use the support tab in your OptinMonster Dashboard.
 * Once we hear from you, someone will reach out and assist.
 * ​Looking forward to hearing from you.
    ​ ​Have an awesome day ahead.

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

The topic ‘Deprecated PHP error’ is closed to new replies.

 * ![](https://ps.w.org/optinmonster/assets/icon-256x256.png?rev=1145864)
 * [Popup Builder & Popup Maker for WordPress – OptinMonster Email Marketing and Lead Generation](https://wordpress.org/plugins/optinmonster/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/optinmonster/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/optinmonster/)
 * [Active Topics](https://wordpress.org/support/plugin/optinmonster/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/optinmonster/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/optinmonster/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [PC](https://wordpress.org/support/users/pranayachaudhary/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/deprecated-php-error-2/#post-14961557)
 * Status: resolved