Automattic / studio

Studio by WordPress.com, a free desktop app that helps developers streamline their local WordPress development workflow.
https://developer.wordpress.com/studio/
GNU General Public License v2.0
180 stars 16 forks source link

Weird issue with ACF options page #543

Open countfak opened 1 month ago

countfak commented 1 month ago

Quick summary

Hi I noticed a strange issue going on with the ACF plugin, specifically when trying to access fields inside an options page. It basically returns nothing.

Steps to reproduce

Use the get_fields function to get all the fields inside an options page, you will see that fields are not retrieved correctly.

get_fields('options');

I was able to reproduce this by creating a new site, and also by importing an existing one.

What you expected to happen

The function should return an array with all the fields from the desired ACF options page. Here's the documentation: https://www.advancedcustomfields.com/resources/get_fields/

What actually happened

The function returns nothing.

Impact

One

Available workarounds?

No but the app is still usable

Platform

Mac Silicon

Logs or notes

No response

wojtekn commented 1 month ago

@countfak thanks for reporting the issue. Would you mind checking if there are any errors logged in the app's log?

tail -f ~/Library/Logs/Studio/current.log   
countfak commented 1 month ago

@wojtekn hi thanks for your reply. No errors inside the log, not even in the wordpress debug log.

Robertght commented 1 week ago

I'm unable to get a license to test this further, however, if you'd like to have this tested later, I believe we could keep it as a backlog issue.

I'm going to mark this as Triaged for now.