Title: PHP Warning on Activity List
Last modified: August 4, 2025

---

# PHP Warning on Activity List

 *  Resolved [amanandhishoe](https://wordpress.org/support/users/amanandhishoe/)
 * (@amanandhishoe)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/php-warning-on-activity-list/)
 * I notice that when I look at the Secure Passkeys->Activity Log in my Admin section,
   this PHP Warning is logged:
   PHP Warning: Undefined property: stdClass::$is_active
   in /var/web/site/public_html/wp-content/plugins/secure-passkeys/src/ajax/secure-
   passkeys-adminarea-ajax.php on line 218It doesn’t seem to affect anything. Line
   218 is:$record->is_active = intval($record->is_active);So I looked a little bit
   more and notice that in an earlier section of secure-passkeys-adminarea-ajax.
   php, there is this query where is_active exists in the table Secure_passkeys_webauthns
   table:
 * $records = (new Secure_Passkeys_WebAuthn())->get_all_paginate([
   ‘id’, ‘user_id’,‘
   is_active’, ‘security_key_name’, ‘aaguid’, ‘last_used_at’, ‘created_at’], 20,
   $filters);
 *     ```wp-block-code
       $records = (new Secure_Passkeys_WebAuthn())->get_all_paginate([            'id', 'user_id', 'is_active', 'security_key_name', 'aaguid', 'last_used_at', 'created_at'        ], 20, $filters);array_map(function ($record) {            $record->is_active = intval($record->is_active);            $record->aaguid = Secure_Passkeys_Webauthn_Helper::get_authenticator($record->aaguid);            $record->user = Secure_Passkeys_Helper::get_user_object_by_id(intval($record->user_id));            $record->last_used_on = Secure_Passkeys_Helper::get_datetime_from_now($record->last_used_at);        }, $records['records'] ?? []);
       ```
   
 * However in the table secure_passkeys_logs, is_active is not a column. So perhaps
   this array_map call should not include the is_active field.
 *     ```wp-block-code
       $records = (new Secure_Passkeys_Log())->get_all_paginate([            'id', 'user_id', 'security_key_name', 'aaguid', 'admin_id', 'log_type', 'ip_address', 'created_at'        ], 20, $filters);array_map(function ($record) {            $aaguid_friendly_name = Secure_Passkeys_Webauthn_Helper::get_friendly_name($record->aaguid);            $record->is_active = intval($record->is_active); //Maybe remove this line.            $record->localized_log_type = Secure_Passkeys_Log::get_localized_log_type($record->log_type);            $record->description = Secure_Passkeys_Log::get_log_line($record->log_type, $record->security_key_name, $aaguid_friendly_name);            $record->user = Secure_Passkeys_Helper::get_user_object_by_id(intval($record->user_id));            $record->admin = Secure_Passkeys_Helper::get_user_object_by_id(intval($record->admin_id));        }, $records['records'] ?? []);
       ```
   
    -  This topic was modified 8 months, 1 week ago by [amanandhishoe](https://wordpress.org/support/users/amanandhishoe/).

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

 *  Plugin Author [Mohamed Endisha](https://wordpress.org/support/users/endisha/)
 * (@endisha)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/php-warning-on-activity-list/#post-18584467)
 * [@amanandhishoe](https://wordpress.org/support/users/amanandhishoe/)
 * Thank you. I’ve included the fix at the last moment in the 1.1.0 release. It 
   is now available and the issue has been fixed.
 *  Thread Starter [amanandhishoe](https://wordpress.org/support/users/amanandhishoe/)
 * (@amanandhishoe)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/php-warning-on-activity-list/#post-18584554)
 * Thank you. Your coding is like beautiful art. I’ve learned a lot reading your
   code.
 *  Plugin Author [Mohamed Endisha](https://wordpress.org/support/users/endisha/)
 * (@endisha)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/php-warning-on-activity-list/#post-18586220)
 * [@amanandhishoe](https://wordpress.org/support/users/amanandhishoe/)
 * Thanks a lot, that means a lot to me, I’m glad my code has been helpful to you.

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

The topic ‘PHP Warning on Activity List’ is closed to new replies.

 * ![](https://ps.w.org/secure-passkeys/assets/icon-256x256.png?rev=3262385)
 * [Secure Passkeys](https://wordpress.org/plugins/secure-passkeys/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/secure-passkeys/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/secure-passkeys/)
 * [Active Topics](https://wordpress.org/support/plugin/secure-passkeys/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/secure-passkeys/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/secure-passkeys/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mohamed Endisha](https://wordpress.org/support/users/endisha/)
 * Last activity: [8 months, 1 week ago](https://wordpress.org/support/topic/php-warning-on-activity-list/#post-18586220)
 * Status: resolved