-
Notifications
You must be signed in to change notification settings - Fork 37
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
"Please check your URL" bug is back? #129
Comments
same issue here. I got it working by disabling the cache on production (was disabled on dev by default).
|
@denisyilmaz what cache did you disable? |
@kelenakamura <?php
return [
'*' => [
'enableGdpr' => true,
'enableNotifications' => false,
'enableCache' => false,
],
'production' => [
'enableCache' => true, // set this to false if the caching issue appears
],
]; |
@denisyilmaz thanks for quick response. yes strange we never had it enabled on staging or prod, but still have the same issue. |
I think it's time for me to revisit the embed package upgrade |
we found the issue - it was a php curl issue - we were getting a curl 77 error - so following this fixed it - guzzle/guzzle#1935 (comment) - or could have been just restarting php-fpm.... |
@kelenakamura we run into that issue now ourself (even with disabled cache) and the newest oembed plugin version. Restarting php-fpm did not work. |
hi @reganlawton ! I work with @denisyilmaz and it looks like this is related to some oEmbed providers not returning an In those cases, a "Call to a member function getAttribute() on null" error is thrown https://github.com/wrav/oembed/blob/master/src/services/OembedService.php#L121 but that error is not handled and we don't get a The Issuu.com oEmbed endpoint supports an
However, that does not work and I can't figure out why... To my greatest surprise: I get an empty array when I dump |
@yoannisj and @denisyilmaz I believe this is the issue from #141 where the TRY CATCH was getting the wrong exception and I wasn't fallback. If you can try v2.3.2 Im just about to tag it. You can also use v2.x-dev |
Hmmm, thanks but we are currently running v3.0.3 which already catches the correct/broader exception type, so I don't think it is related. |
@reganlawton can you confirm that passing a map with key 'oembed:query_parameters If that's the expected behaviour, it does not seem to be working. Any idea? |
@yoannisj it should pass it though yes. Do you have a URL I can use to test. It's currently bed time but I can look into it tomorrow morning. |
Of course, this is the URL I have been testing with: |
Awesome thanks for that @yoannisj that'll great help my testing. Fingers crossed we have this resolved tomorrow 🤞 |
@yoannisj Seems the embed/embed v3.x doesn't issuu.com, I can definitely resolved the issue in v3.0.5. So seeing your using the news version track (v3) you should be fine. Im about to tag it so please update and let me know. This is the code I used to test. {{
craft.oembed.render(
'https://issuu.com/deignismedia/docs/64_deignis_magazin_web',
)
}} |
@reganlawton did you manage to pass on query parameters to the oEmbed endpoint called by We are retrieving the oEmbed information via GraphQL, which uses the wrav/oembed field value (i.e. How would you feel about triggering an event in the Note that Issuu used to work for us, and stopped so I suspect they changed the behaviour of their oEmbed endpoint and that could happen to other services in the future. An event could mitigate this risk, and provide a way for projects to fix it without depending on a new |
@yoannisj the code I provided in previous comment worked as intended without need for params / options. |
Try using the latest version if you haven't already |
@yoannisj Oh shit sorry I completely over looked the GQL bit 😅 I'll have to test that. As for adding custom adapters, there is definitely a way I can do that I just haven't cos it's more code I have to manage. If creating a custom adapter based on options is something you'd like me to look into I definitely can. I would probably allow you to be able pass a class that would then be able to be used given you ability to completely customise your code. |
@yoannisj Lots of updates out with v3.0.6 this should fix issues with GraphQL. |
I noticed this error comes back quite a lot (many issues on this github). So here we go again:
Suddenly, out embedded YouTube video's didn't show up anymore. The render code just displays a white rectangle. This is what I found so far:
Please check your URL.
entry.field.media.providerName
is set togoogle
Not sure what is going on here but it's extremely annoying. It causes my clients website - which uses YouTube embeds quite a lot - to not display any embedded video from time to time. I have no idea what causes this. This all happens on production, not on dev. And when I embed the same video hardcoded (i.e. just use the iframe code generated by YouTube), the video displays without any problem. So it's an issue when converting the pasted url (in the field) to rendering.
PHP version | 8.1.12
Craft Pro 4.3.4
oEmbed 2.2.2
The text was updated successfully, but these errors were encountered: