Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Class undefined: Facebook\InstantArticles\Elements\AnimatedGif in Elements/InstantArticle.php on line 196 #23

Closed
fariasf opened this issue Apr 11, 2016 · 2 comments

Comments

@fariasf
Copy link

fariasf commented Apr 11, 2016

Hi!

When I try to run the tests I see the following error:

Fatal error: Class undefined: Facebook\InstantArticles\Elements\AnimatedGif in /var/www/mysite/src/sites/all/modules/contrib/fb_instant_articles/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Elements/InstantArticle.php on line 196

I'm not familiar with the code base, but I tried to find that class and only found facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Elements/AnimatedGIF.php. If I change that line, replacing the class name to AnimatedGIF as defined in that file, the issue disappears.

Is this an error or am I doing something wrong?

Thanks!

@diegoquinteiro
Copy link
Contributor

Hi @fariasf, thank you so much for your feedback. That was actually a bug on v1.0.0. It should now be fixed on v1.0.1 and on master.

Can you check if that works for you?

@diegoquinteiro
Copy link
Contributor

Closing as the same issue was marked resolved on WordPress plugin implementation of the SDK:

https://wordpress.org/support/topic/fatal-error-class-facebookinstantarticleselementsanimatedgif-not-found?replies=4

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

No branches or pull requests

2 participants