Problem with serendipity_event_oembed

Creating and modifying plugins.
Post Reply
MarioH
Regular
Posts: 228
Joined: Mon Jul 20, 2009 10:53 pm
Contact:

Problem with serendipity_event_oembed

Post by MarioH » Sat Nov 18, 2017 3:44 pm

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

MarioH
Regular
Posts: 228
Joined: Mon Jul 20, 2009 10:53 pm
Contact:

Re: Problem with serendipity_event_oembed

Post by MarioH » Sat Nov 18, 2017 3:51 pm

Ah, I got it.
There's a wrong statement in ProviderList.php from the last commit. I will fix that.

Regards
Mario

Post Reply