-
per our conversation on codecanyon, I can’t verify my plugin. I get this error:
Fatal error: Call to undefined function curl_init() in /users/my name/www/wp-content/plugins/userpro/lib/envato/Envato_marketplaces.php on line 374
You already mentioned that cURL needs to be enabled and the error seems to be about cURL but what do I need to do now? I checked the “Envato_marketplace.php” on line 374 and it says:
$ch = curl_init($url);I presume that this is the line that checks if cURL is active?
I already read articles and tutorials but it’s soo complicated. Some say you need to have a php.ini.
I didn’t have the file, so I created one but what now? I read that you are supposed to add this line in the php.ini to make it work: ;extension=php_curl.dll ,nothing happened. I also read through the comment section on codecanyon and there was a user before that said you need to install it by doing this:I just installed it thus:
sudo apt-get install php5-curl
then restarted apache
sudo service apache2 restart
Do I have to add these lines to the php.ini? I’m confused
I also checked all the server stats from my host with this code in a php file:
<? phpinfo(); ?> There is not one single line about cURL. All I know is that they use Linux.
They however, refuse to do any kind of modifications for individual users. Am I able to solve this problem by creating a php.ini,etc.? I hope you can help me with this AhmedThis is really frustrating, I just want to get started working with this amazing plugin.
Thanks!
Fatal error: Call to undefined function curl_init() in /users/my name/www/wp-content/plugins/userpro/lib/envato/Envato_marketplaces.php on line 374
Means curl must be enabled and activated first. Please ask your host to enable. It’s indeed frustrating to have curl disabled. Here’s a source to confirm the issue is from webhost.
That’s not the plugin error I am sorry.
Would I need to enable curl constantly to run this plugin or is it just necessary for the activation process?
I could switch to an alternative server for a limited amount of time. (which is an incredible amount of work and time but if this is the only solution then I’m willing to do so) Would I be able to use the plugin on the old server without curl after activation?It’s necessary to activate the plugin one time. 🙂
You can verify it manually without cURL!
Execute that code in functions.php and make sure it’s run
PHP12global $userpro;$userpro->validate_license('activate');Ahmed thank you so very much! This worked 🙂
Thank you for this solution, you saved me so much time and work, I really appreciate it 🙂You can mark this thread as solved
Thanks again!
You must be logged in to reply to this topic.