Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error in Customizer #3

Closed
florianbrinkmann opened this issue Dec 16, 2019 · 2 comments
Closed

Fatal error in Customizer #3

florianbrinkmann opened this issue Dec 16, 2019 · 2 comments

Comments

@florianbrinkmann
Copy link

Hi,

first, thanks for the plugin! After activating it, opening the customizer throws the following error:

PHP Fatal error:  Uncaught Error: Call to undefined function get_current_screen() in /wp-content/plugins/admin-columns-for-acf-fields/acf_admin_columns.php:478

I added the following lines to the start of the is_valid_admin_screen() method to fix that:

if (is_customize_preview()) {
	return false;
}

Would be great if you could add that or something similar to the code :)

Best,
Florian

fleiflei added a commit that referenced this issue Dec 17, 2019
)

Fix: field values are now always shown unless the field is really empty (see
Readme slightly reformatted
@fleiflei
Copy link
Owner

Hey Florian,

thank you for pointing this out. I have fixed the plugin and pushed a new commit to Github as well as to the WP plugin directory (0.1.2). Please update.

Thanks and best regards,
Florian

@florianbrinkmann
Copy link
Author

Hi Florian,

great, thanks!

Best,
Florian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants