811 posts We're a nice team!
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $125,000+ on Envato Market
+10 more
ThemeFocus says

Just submit a support ticket with API not works problem.

Here also can’t works and show.

Warning: file_get_contents(http://marketplace.envato.com/api/edge/xxxxxx.json) [function.file-get-contents]: failed to open stream: HTTP request failed!
69 posts
  • Had an item featured on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Sells items exclusively on Envato Market
+5 more
DeluxeThemes says

Confirmed! Adding the user agent in cURL works for cURL based requests.

Still can’t get/figure how to fix it for file_get_contents() method (like ThemeFocus)

Many thanks!

526 posts (-_-(-_-(-_-)-_-)-_-)
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Had an item featured on Envato Market
  • Has been part of the Envato Community for over 1 year
+5 more
Themewaves says

Me too +1

354 posts Mad Dog
  • Has referred 500+ members
  • Has sold $750,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
mad_dog says

Me either.

94 posts Be different!
  • Has referred 500+ members
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Has collected 10+ items on Envato Market
  • Power Elite Author: Sold more than $1M on Envato Market
+4 more
UnitedThemes says

Hi,

have a look here for the file_get_content issue. Solved it for us:

http://stackoverflow.com/a/13969212

Hope this helps!

811 posts We're a nice team!
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $125,000+ on Envato Market
+10 more
ThemeFocus says

Who can provide full code about the API works example? Thanks.

269 posts themesdepot.org
  • Has sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a Most Wanted contest
  • Has referred 10+ members
+6 more
ThemesDepot says

I’m using the CloudWork-Verifi plugin on my support forum, i have not received any complaint yet about registrations not working, i’ve also had a really quick look inside the code of the plugin but i haven’t noticed any file_get_contents or curl calls, is anyone using this plugin too and having any problems with it?

271 posts
  • Has sold $10,000+ on Envato Market
  • Won a Most Wanted contest
  • Made it to the Authors' Hall of Fame
  • Has referred 10+ members
+5 more
GDragoN says

I’m using the CloudWork-Verifi plugin on my support forum, i have not received any complaint yet about registrations not working, i’ve also had a really quick look inside the code of the plugin but i haven’t noticed any file_get_contents or curl calls, is anyone using this plugin too and having any problems with it?

This plugin uses internal WordPress functions to get remote content, so it is still using CURL, but these functions already put user_agent in all calls so it is OK.

34 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
twisted1919 says

It’s funny though since i cannot login at http://analytics.envato.com/ anymore
Seems the change affected them too…

Anyhow, this was a bad move without announcing it earlier, sad…

For those using the envato api class. the curl method must look like:
protected function curl($url) 
   {
      if ( empty($url) ) return false;

      $ch = curl_init($url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (iPhone Simulator; U; CPU iPhone OS 4_3_2 like Mac OD X; en-us) AppleWebKit/535.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5");

      $data = curl_exec($ch);
      curl_close($ch);

      $data = json_decode($data);

      return $data; // string or null
   }
107 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Won a competition
  • Made it to the Authors' Hall of Fame
+7 more
DOTonPAPER says

Any official answer on this? This seems like a problem with the API and not a modification. I just do not want to do the modifications and after, if this was a problem, my items to stop working again.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by