Warning: Array to string conversion in class-acf-post-type.php

Open
#103 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, docker-compose, php, shell, wordpress
Domain
backend, cli, devops

Research direction

Inspect includes/post-types/class-acf-post-type.php around line 455 and the setup used by wpcli.sh. Start the Docker services, run ./wpcli.sh plugin list, and trace the warning in the installed Advanced Custom Fields 6.1.8 plugin. Done means the command completes without any Array to string conversion warnings.

Written by the indexing model from the issue text.

Description

🏁 status: ready for work 💻 aspect: code 🛠 goal: fix 🟨 priority: medium

Description

Error reporting during any WPCLI operation:

Warning: Array to string conversion in /var/www/index/wp-content/plugins/advanced-custom-fields/includes/post-types/class-acf-post-type.php on line 455

Reproduction

  1. Start docker services
  2. Run ./wpcli.sh plugin list

Expectation

There shouldn't be any warnings.

Additional context

  • At the time of writing, advanced-custom-fields version 6.1.8 was installed

Resolution

  • I would be interested in resolving this bug.
Dominant language
Shell
Stars
8
Forks
5
Avg merge
51m
Merged PRs (30d)
2

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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.

More from creativecommons/index-dev-env

All issues in creativecommons/index-dev-env

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.