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: count(): Parameter must be an array or an object that implements Countable line 168 #1

Open
compumatter opened this issue Aug 18, 2021 · 0 comments

Comments

@compumatter
Copy link

Hello and thank you for this class.
I recognize its value

I have a few questions.

My goal is to be able to load perhaps 1 class for the body but with different variations (italic, bold etc).

So I believe I should be using multi_simul_fontdisplay(...

When I use your example:
include_once('myserverpath/class.fontperformance.php"); $ref= new Fontperformance; $apilink =array( "https://fonts.googleapis.com/css?family=Montserrat+Alternates", "https://fonts.googleapis.com/css?family=Rancho", "https://fonts.googleapis.com/css?family=Tangerine", "https://fonts.googleapis.com/css?family=Roboto+Mono", "https://fonts.googleapis.com/css?family=Cantarell", "https://fonts.googleapis.com/css?family=Inconsolata", "https://fonts.googleapis.com/css?family=Gaegu" ); $font_display = $ref->multi_simul_fontdisplay($apilink,"fallback", false );
I receive an error in my php logs that say:

PHP Warning: count(): Parameter must be an array or an object that implements Countable in class.fontperformance.php on line 168

I have tried changing fallback to auto or optional and the I get the same error.

Can you tell me why this is ?

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