Title: PHP Warning: Trying to access array
Last modified: May 16, 2021

---

# PHP Warning: Trying to access array

 *  Resolved [Jimmy Lee](https://wordpress.org/support/users/shirtguy72/)
 * (@shirtguy72)
 * [5 years ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array/)
 * Hello, hope all is well. Plugin seems to be working fine, in fact when I am done
   here, I will be leaving a 5 Star Review. Poking around today doing some database
   cleaning and ran across the following, seems to have only triggered once during
   setup but wanted to bring to your attention in the case it is something that 
   needs fixing.
 * (InnoBD running on PHP8) <– My setup
 * [14-May-2021 09:44:35 UTC] PHP Warning: Trying to access array offset on value
   of type bool in /home/customer/* * * * * * * */public_html/wp-content/plugins/
   change-wp-admin-login/includes/class-change-wp-admin-login.php on line 282
 * [14-May-2021 09:44:35 UTC] PHP Warning: Trying to access array offset on value
   of type bool in /home/customer/* * * * * * * */public_html/wp-content/plugins/
   change-wp-admin-login/includes/class-change-wp-admin-login.php on line 290
 * Thanks for a great plugin and thanks for your time here. Respectfully.

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

 *  [Nuno Sarmento](https://wordpress.org/support/users/nunosarmento/)
 * (@nunosarmento)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array/#post-14572725)
 * Hi [@shirtguy72](https://wordpress.org/support/users/shirtguy72/)
 * Thank you for letting me know, I will fix that “warning” on the next plugin update.
 * Best,
    Nuno
 *  Thread Starter [Jimmy Lee](https://wordpress.org/support/users/shirtguy72/)
 * (@shirtguy72)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array/#post-14572794)
 * Thanks Nuno, I have to admit I never opened your files to see lines 282 and 290.
   
   I have been using SF-MoveLogin in combination with the following serverside setup…
 * # Password protect the wp-login.php file
    ErrorDocument 401 “Unauthorized Access”
   ErrorDocument 403 “Forbidden” <FilesMatch “wp-login.php”> AuthName “Authorized
   Only” AuthType Basic AuthUserFile /home/username/.wpadmin require valid-user 
   </FilesMatch>
 * I removed SF-Movelogin and found your plugin in efforts to troubleshoot my caching
   solution running across redirect and 403 forbidden anomalies. Eventually, I found
   the caching error was caused by image /attachments/
 * With that, back to lines 282 and 290, Change WP-Admin Login plugin seemed to 
   be interfering, not allowing the .wpadmin (extra login layer) visible on my end.
 * So, not sure if the issue is relevant. I may be the only person to use your plugin
   along with the other security layer in combination? But for that reason I found
   myself back to the (abandoned plugin) SF MoveLogin. Hope this can help some of
   your users.
 * Again, great plugin! 5Stars!

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

The topic ‘PHP Warning: Trying to access array’ is closed to new replies.

 * ![](https://ps.w.org/change-wp-admin-login/assets/icon-128x128.gif?rev=3121325)
 * [All In One Login — Login Page Security and Customization for WordPress with Google reCAPTCHA, Social Login, Temporary Login, 2FA, and more.](https://wordpress.org/plugins/change-wp-admin-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/change-wp-admin-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/change-wp-admin-login/)
 * [Active Topics](https://wordpress.org/support/plugin/change-wp-admin-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/change-wp-admin-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/change-wp-admin-login/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jimmy Lee](https://wordpress.org/support/users/shirtguy72/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array/#post-14572794)
 * Status: resolved