AdvancedCustomFields / AdvancedCustomFields/acf

Fatal error: Cannot use object of type WP_Error as array

Open
#59 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Fatal error: Cannot use object of type WP_Error as array in /public_html/wp-content/plugins/advanced-custom-fields/includes/early-access.php on line 272

I ptrint this array
pinrt_r($info);

WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 28: connect() timed out! ) ) [error_data] => Array ( ) )

Version: 5.6.10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in includes/early-access.php around line 272 and inspect the value returned when the request fails. Use the reported cURL timeout and WP_Error output as the failure case to investigate. Done means this timeout no longer produces the reported fatal error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.