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

Warning and Fatal error is thrown when code snippet "Manipulate the meta robots tag output" is used #252

Open
shabnam611 opened this issue Aug 31, 2023 · 0 comments

Comments

@shabnam611
Copy link

shabnam611 commented Aug 31, 2023

Fatal error and warning from the "Manipulate the meta robots tag output"

Please give us a description of the issue

If we add this code snippet on the functions.php file, we face warning and fatal error like below:

Warning: array_map(): Expected parameter 2 to be an array, null given in …… /wp-content/themes/twentytwenty/functions.php on line 1060

Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array

@shabnam611 shabnam611 changed the title Warning and Fatal error is thrown when code snippet "Manipulate the meta robots tag output" for is used Warning and Fatal error is thrown when code snippet "Manipulate the meta robots tag output" is used Sep 1, 2023
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

1 participant