Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress How to Build a WordPress Plugin Connecting WordPress Plugins with 3rd Party APIs Getting and Storing a JSON Feed

Phillip Legault
PLUS
Phillip Legault
Courses Plus Student 18,888 Points

var_dump produces a page with 404:page not found

array(6) { ["headers"]=> object(Requests_Utility_CaseInsensitiveDictionary)#955 (1) { ["data":protected]=> array(12) { ["server"]=> string(12) "nginx/1.10.2" ["date"]=> string(29) "Tue, 10 Jan 2017 14:39:06 GMT" ["content-type"]=> string(24) "text/html; charset=utf-8" ["vary"]=> string(15) "Accept-Encoding" ["status"]=> string(13) "404 Not Found" ["x-frame-options"]=> string(10) "SAMEORIGIN" ["x-xss-protection"]=> string(13) "1; mode=block" ["x-content-type-options"]=> string(7) "nosniff" ["x-request-id"]=> string(49) "94B101E0-15B7-0A78242D-01BB-5874F20A-231A510-2EBA" ["x-runtime"]=> string(8) "0.156363" ["x-served-by"]=> string(15) "app2.prod.wdc04" ["content-encoding"]=> string(4) "gzip" } } ["body"]=> string(21679) " Business Stories Sign In Free Trial 404: Page not found

Oops, Something went missing

404 Looking for plans?

We've got two different plans available, Basic and Pro. You can choose either plan for your 7-day trial when you sign up.

See Pricing Need features?

We have lots of useful tools built into our app that help you start learning today. Read about features, topics we cover, and more!

View features Contact support?

Having issues or need to report a bug? Check out our FAQ and if you can't find what you were looking for, shoot us an email and we'll help you out.

Contact support © 2017 Treehouse Island, Inc. About Careers Terms Privacy Blog Press Kit Affiliate Program Contact

" ["response"]=> array(2) { ["code"]=> int(404) ["message"]=> string(9) "Not Found" } ["cookies"]=> array(0) { } ["filename"]=> NULL ["http_response"]=> object(WP_HTTP_Requests_Response)#954 (5) { ["response":protected]=> object(Requests_Response)#950 (10) { ["body"]=> string(21679) " Business Stories Sign In Free Trial 404: Page not found

Oops, Something went missing

404 Looking for plans?

We've got two different plans available, Basic and Pro. You can choose either plan for your 7-day trial when you sign up.

See Pricing Need features?

We have lots of useful tools built into our app that help you start learning today. Read about features, topics we cover, and more!

View features Contact support?

Having issues or need to report a bug? Check out our FAQ and if you can't find what you were looking for, shoot us an email and we'll help you out.

Contact support © 2017 Treehouse Island, Inc. About Careers Terms Privacy Blog Press Kit Affiliate Program Contact

" ["raw"]=> string(22132) "HTTP/1.1 404 Not Found Server: nginx/1.10.2 Date: Tue, 10 Jan 2017 14:39:06 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: close Vary: Accept-Encoding Status: 404 Not Found X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Request-Id: 94B101E0-15B7-0A78242D-01BB-5874F20A-231A510-2EBA X-Runtime: 0.156363 X-Served-By: app2.prod.wdc04 Content-Encoding: gzip Business Stories Sign In Free Trial 404: Page not found

Oops, Something went missing

404 Looking for plans?

We've got two different plans available, Basic and Pro. You can choose either plan for your 7-day trial when you sign up.

See Pricing Need features?

We have lots of useful tools built into our app that help you start learning today. Read about features, topics we cover, and more!

View features Contact support?

Having issues or need to report a bug? Check out our FAQ and if you can't find what you were looking for, shoot us an email and we'll help you out.

Contact support © 2017 Treehouse Island, Inc. About Careers Terms Privacy Blog Press Kit Affiliate Program Contact

" ["headers"]=> object(Requests_Response_Headers)#962 (1) { ["data":protected]=> array(12) { ["server"]=> array(1) { [0]=> string(12) "nginx/1.10.2" } ["date"]=> array(1) { [0]=> string(29) "Tue, 10 Jan 2017 14:39:06 GMT" } ["content-type"]=> array(1) { [0]=> string(24) "text/html; charset=utf-8" } ["vary"]=> array(1) { [0]=> string(15) "Accept-Encoding" } ["status"]=> array(1) { [0]=> string(13) "404 Not Found" } ["x-frame-options"]=> array(1) { [0]=> string(10) "SAMEORIGIN" } ["x-xss-protection"]=> array(1) { [0]=> string(13) "1; mode=block" } ["x-content-type-options"]=> array(1) { [0]=> string(7) "nosniff" } ["x-request-id"]=> array(1) { [0]=> string(49) "94B101E0-15B7-0A78242D-01BB-5874F20A-231A510-2EBA" } ["x-runtime"]=> array(1) { [0]=> string(8) "0.156363" } ["x-served-by"]=> array(1) { [0]=> string(15) "app2.prod.wdc04" } ["content-encoding"]=> array(1) { [0]=> string(4) "gzip" } } } ["status_code"]=> int(404) ["protocol_version"]=> float(1.1) ["success"]=> bool(false) ["redirects"]=> int(1) ["url"]=> string(31) "https://teamtreehouse.com/.json" ["history"]=> array(1) { [0]=> object(Requests_Response)#963 (10) { ["body"]=> bool(false) ["raw"]=> string(160) "HTTP/1.1 301 Moved Permanently Content-length: 0 Location: https://teamtreehouse.com/.json Connection: close Age: 0 Date: Tue, 10 Jan 2017 14:39:06 GMT " ["headers"]=> object(Requests_Response_Headers)#949 (1) { ["data":protected]=> array(4) { ["content-length"]=> array(1) { [0]=> string(1) "0" } ["location"]=> array(1) { [0]=> string(31) "https://teamtreehouse.com/.json" } ["age"]=> array(1) { [0]=> string(1) "0" } ["date"]=> array(1) { [0]=> string(29) "Tue, 10 Jan 2017 14:39:06 GMT" } } } ["status_code"]=> int(301) ["protocol_version"]=> float(1.1) ["success"]=> bool(false) ["redirects"]=> int(0) ["url"]=> string(30) "http://teamtreehouse.com/.json" ["history"]=> array(0) { } ["cookies"]=> object(Requests_Cookie_Jar)#964 (1) { ["cookies":protected]=> array(0) { } } } } ["cookies"]=> object(Requests_Cookie_Jar)#964 (1) { ["cookies":protected]=> array(0) { } } } ["filename":protected]=> NULL ["data"]=> NULL ["headers"]=> NULL ["status"]=> NULL } } The Official Treehouse Badges Plugin