Title: PHP error in class-core.php
Last modified: February 3, 2023

---

# PHP error in class-core.php

 *  Resolved [Paul van Rossem](https://wordpress.org/support/users/paul-van-rossem/)
 * (@paul-van-rossem)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-class-core-php/)
 * I’m receiving a PHP error message in class-core.php:
 * Uncaught ArgumentCountError: Too few arguments to function Firebase\JWT\JWT::
   encode(), 2 passed in wp-content/plugins/wp-2fa-premium/extensions/trusted-devices/
   class-core.php on line 139 and at least 3 expected in wp-content/plugins/pods/
   tribe-common/vendor/firebase/php-jwt/src/JWT.php:183

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

 *  [Scott Kingsley Clark](https://wordpress.org/support/users/sc0ttkclark/)
 * (@sc0ttkclark)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-class-core-php/#post-16437212)
 * We recently updated our JWT library in Pods but we don’t use it directly, it’s
   just part of another library we use and it only gets called by other plugins (
   normally the one this shared library is used by like The Events Calendar).
 * it turns out that this version requires a newer PHP version, are you using PHP
   5.6?
    -  This reply was modified 3 years, 4 months ago by [Scott Kingsley Clark](https://wordpress.org/support/users/sc0ttkclark/).
 *  Thread Starter [Paul van Rossem](https://wordpress.org/support/users/paul-van-rossem/)
 * (@paul-van-rossem)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-class-core-php/#post-16437315)
 * Thanks for your fast response! We are using PHP 7.4.
 *  [Scott Kingsley Clark](https://wordpress.org/support/users/sc0ttkclark/)
 * (@sc0ttkclark)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-class-core-php/#post-16437510)
 * Ok this sounds like a different issue.
 * Funny story, we upgraded our JWT to fix compatibility with other plugins only
   to … cause a compatibility issue with another plugin 🙁
 * This specific plugin for 2FA is using an older version of JWT and it does not
   look compatible with our version. One workaround is to load an older version 
   of JWT before we load ours.
    -  This reply was modified 3 years, 4 months ago by [Scott Kingsley Clark](https://wordpress.org/support/users/sc0ttkclark/).
 *  Plugin Contributor [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-class-core-php/#post-16437595)
 * Hello [@paul-van-rossem](https://wordpress.org/support/users/paul-van-rossem/)
 * Thank you for using our plugin. The error you are reporting is from the Premium
   edition of the plugin. Please send us an email at [support@wpwhitesecurity.com](https://wordpress.org/support/topic/php-error-in-class-core-php/support@wpwhitesecurity.com?output_format=md)
   for assistance. These forums are to support the Free edition users. Thank you
   for your understanding.
 * [@sc0ttkclark](https://wordpress.org/support/users/sc0ttkclark/) if you need 
   support from us please open your own forum thread as per these forums’ guidelines,
   or send us an email at [support@wpwhitesecurity.com](https://wordpress.org/support/topic/php-error-in-class-core-php/support@wpwhitesecurity.com?output_format=md).
 *  [Scott Kingsley Clark](https://wordpress.org/support/users/sc0ttkclark/)
 * (@sc0ttkclark)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-class-core-php/#post-16437803)
 * [@robert681](https://wordpress.org/support/users/robert681/) I’m the lead dev
   of the Pods plugin mentioned in the issue. I’m sure you can further help Paul
   in the premium support side from here.
 *  Plugin Contributor [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-class-core-php/#post-16442850)
 * Hello [@paul-van-rossem](https://wordpress.org/support/users/paul-van-rossem/)
 * The problem has been solved in the latest version update of the plugin – 2.4.0.
   However, I just noticed that you are using the Premium edition, my bad, I should
   have noticed that before. That will be released this week.
 * For the record, these forums are reserved for the free edition users. If you 
   need support please always contact us on email at [support@wpwhitesecurity.com](https://wordpress.org/support/topic/php-error-in-class-core-php/support@wpwhitesecurity.com?output_format=md).
 * [@sc0ttkclark](https://wordpress.org/support/users/sc0ttkclark/) – thank you 
   for your feedback. Indeed, the issue has been sorted already.

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

The topic ‘PHP error in class-core.php’ is closed to new replies.

 * ![](https://ps.w.org/wp-2fa/assets/icon-256x256.png?rev=2961533)
 * [WP 2FA - Two-factor authentication for WordPress](https://wordpress.org/plugins/wp-2fa/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-2fa/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-2fa/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-2fa/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-2fa/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-2fa/reviews/)

## Tags

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

 * 8 replies
 * 3 participants
 * Last reply from: [robertabela](https://wordpress.org/support/users/robert681/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-class-core-php/#post-16442850)
 * Status: resolved