Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6071781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:05:11+00:00 2026-05-23T10:05:11+00:00

I’m working with Embed.ly PHP, which you can find here . I’ve been trying

  • 0

I’m working with Embed.ly PHP, which you can find here. I’ve been trying to test out embedding with a few other sites, like articles from MLB or ESPN.

Working from examples/oembed.php, I replaced the first few links in the $urls array with a couple different links to see how they would embed. The links I tried:

http://sports.espn.go.com/ncf/news/story?id=6688739

http://mlb.mlb.com/news/article.jsp?ymd=20110621&content_id=20815268&vkey=news_mlb&c_id=mlb

The errors I get in their place:

Notice: Undefined index: provider_url

Notice: Undefined index: provider_name

I’m fairly sure embed.ly supports embedding from these sites, but I can’t figure out why I’m getting errors for these links.

EDIT Some additional info

When I use echo '<p>' . $oembed['type'] . '</p>'; right before each embed, the two above result in “error” being printed… some of the other ones print “video” or “photo”.

EDIT2 My code: http://pastebin.com/Z1P0K31E

I changed a one thing besides what I already noted: require_once path was changed to correct path of Embedly.php. That file is left exactly as it was found on github.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:05:12+00:00Added an answer on May 23, 2026 at 10:05 am

    The issue concerns arrays that have indices provider_url and provider_name that are empty.

    So for example, there is $some_array['provider_url'] and $some_array['provider_name'] that have empty values. I would find out where these variables are, and then I would track backwards or if you have some access to an error stack / trace stack, that would also be helpful.

    stdClass Object ( [error_code] => 401 [error_message] => This service requires an Embedly Pro account [type] => error )You'll need a pro account whatever that is. That's the error message I got back from using their API. Case closed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I want to count how many characters a certain string has in PHP, but
I am trying to loop through a bunch of documents I have to put
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I want use html5's new tag to play a wav file (currently only supported
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.