8 posts
  • Sells items exclusively on Envato Market
spyrowebz says

i have developed a theme its give me the warning what should i replace instead of these?

WARNING: curl_init was found in the file framework/utilities/twitteroauth/twitteroauth.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

Line 195: $ci = curl_init();

WARNING: curl_exec was found in the file framework/utilities/twitteroauth/twitteroauth.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

Line 221: $response = curl_exec($ci);

406 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in India
+2 more
drsankarl says

i have developed a theme its give me the warning what should i replace instead of these?

WARNING: curl_init was found in the file framework/utilities/twitteroauth/twitteroauth.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

Line 195: $ci = curl_init();

WARNING: curl_exec was found in the file framework/utilities/twitteroauth/twitteroauth.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

Line 221: $response = curl_exec($ci);

Dont Worry too much about this warning and submit your theme. If this is going to be the reason for rejection, it will be soft rejection and then you can try using wp_remote_get. but as i have read in some forums here, it(the warnings) has been accepted.

8 posts
  • Sells items exclusively on Envato Market
spyrowebz says
Dont Worry too much about this warning and submit your theme. If this is going to be the reason for rejection, it will be soft rejection and then you can try using wp_remote_get. but as i have read in some forums here, it(the warnings) has been accepted.

yes i know its acceptable i have submitted themes with this warning but this time my client not want this.

8 posts
  • Sells items exclusively on Envato Market
spyrowebz says


i have developed a theme its give me the warning what should i replace instead of these?

WARNING: curl_init was found in the file framework/utilities/twitteroauth/twitteroauth.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

Line 195: $ci = curl_init();

WARNING: curl_exec was found in the file framework/utilities/twitteroauth/twitteroauth.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

Line 221: $response = curl_exec($ci);
Dont Worry too much about this warning and submit your theme. If this is going to be the reason for rejection, it will be soft rejection and then you can try using wp_remote_get. but as i have read in some forums here, it(the warnings) has been accepted.

please can you help me how to use wp_remote_get?

8 posts
  • Sells items exclusively on Envato Market
spyrowebz says

@drsankarl

thanks it work thank you very much love you and your help.

8 posts
  • Sells items exclusively on Envato Market
spyrowebz says

strange when i upload to live server its not working its working only on localhost

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