Title: Getting an error in libs/function.php
Last modified: November 30, 2023

---

# Getting an error in libs/function.php

 *  Resolved [Gregg](https://wordpress.org/support/users/triplegmax/)
 * (@triplegmax)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/getting-an-error-in-libs-function-php/)
 * I have a site that’s password protected and we’ve seen this error twice now, 
   but with so many users, I’m not sure what was done to cause the error to happen.
 * Here are some details.
 * Error Details
   =============An error of type E_ERROR was caused in line 292 of
   the file public_html/content/plugins/advanced-google-recaptcha/libs/functions.
   php. Error message: Uncaught Error: Cannot use object of type WP_Error as array
   in /public_html/content/plugins/advanced-google-recaptcha/libs/functions.php:
   292Stack trace:#0 /public_html/content/plugins/advanced-google-recaptcha/libs/
   functions.php(214): WPCaptcha_Functions::handle_captcha()#1 /public_html/wp-includes/
   class-wp-hook.php(324): WPCaptcha_Functions::wp_authenticate_username_password()#
   2 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()#3 /public_html/
   wp-includes/pluggable.php(618): apply_filters()#4 /public_html/wp-includes/user.
   php(106): wp_authenticate()#5 /public_html/wp-login.php(1309): wp_signon()#6 {
   main}  thrown
 * WP v6.4.1
   plugin version 1.14PHP v8.1.25
 * We do have a slighty different file structure. instead of wp-content we have 
   the folder titled content using WP_CONTENT_URL and WP_CONTENT_DIR.
 * Any ideas on this?

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

 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/getting-an-error-in-libs-function-php/#post-17243465)
 * Please try updating to v1.15 that we released today.
 *  Thread Starter [Gregg](https://wordpress.org/support/users/triplegmax/)
 * (@triplegmax)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/getting-an-error-in-libs-function-php/#post-17243486)
 * That was quick, thank you! I’ve updated to the latest and will let you know if
   I see any more errors.

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

The topic ‘Getting an error in libs/function.php’ is closed to new replies.

 * ![](https://ps.w.org/advanced-google-recaptcha/assets/icon-256x256.png?rev=2493018)
 * [Advanced Google reCAPTCHA](https://wordpress.org/plugins/advanced-google-recaptcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-google-recaptcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-google-recaptcha/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-google-recaptcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-google-recaptcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-google-recaptcha/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Gregg](https://wordpress.org/support/users/triplegmax/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/getting-an-error-in-libs-function-php/#post-17243486)
 * Status: resolved