Page 1 of 1

Problem with serendipity_event_oembed

Posted: Sat Nov 18, 2017 3:44 pm
by MarioH
Hi,

I noticed that serendipity_event_oembed has a problem with embedded tweets. Thats because it is using an old api endpoint.
For testing I modified s9y_event_oembed/oembed/providers.xml. Here is the diff:

Code: Select all

11c11
>     <endpoint>https://publish.twitter.com/oembed</endpoint>
---
<     <endpoint>https://api.twitter.com/1/statuses/oembed.{format}</endpoint>
Embedded tweets work fine now, but if I get to the plugin settings at the backend I get the following error message:

Code: Select all

Error redirect: == SERENDIPITY ERROR ==

Warning: Invalid argument supplied for foreach() in /homepages/41/d26790088/htdocs/serendipity/plugins/serendipity_event_oembed/oembed/ProviderList.php on line 6.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.
Error redirect: == SERENDIPITY ERROR ==

Warning: Invalid argument supplied for foreach() in /homepages/41/d26790088/htdocs/serendipity/plugins/serendipity_event_oembed/oembed/ProviderList.php on line 6.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.
Does anyone has an idea why this happens?

Regards
Mario

Re: Problem with serendipity_event_oembed

Posted: Sat Nov 18, 2017 3:51 pm
by MarioH
Ah, I got it.
There's a wrong statement in ProviderList.php from the last commit. I will fix that.

Regards
Mario