Post by tatt » Mon May 21, 2018 4:01 am

Hi!

I have OC 3.0.2. And couple day ago after log in in my dasboard, I recived this error:

Code: Select all

Fatal error: Call to undefined function curl_init() in /home/jscwtdjp/storage/modification/admin/model/localisation/currency.php on line 122
In this 122th line:

Code: Select all

$curl = curl_init();
Maybe You have some great idea, how to fix it?

Newbie

Posts

Joined
Thu May 24, 2012 3:12 pm

Post by sw!tch » Mon May 21, 2018 4:08 am

Do you have PHP with Curl support? Check with your web host.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by tatt » Mon May 21, 2018 5:00 am

How can I find out this Curl suuport in my host? Somewhwre in Cpanel?

Newbie

Posts

Joined
Thu May 24, 2012 3:12 pm

Post by sw!tch » Mon May 21, 2018 10:08 am

If you have root access you can look at your php.ini (might not be there if a shared host) or create and upload a temp file with a .php extension and enter

Code: Select all

<?php
// output some PHP information
phpinfo();
?> 
^ then visit that file in the browser. Look for Curl in the output.

I would just contact your web host, ask them if Curl is enabled in PHP and show them the error. Unless you are a developer you may end up breaking stuff if you don't know what you're doing.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by paulfeakins » Mon May 21, 2018 6:59 pm

tatt wrote:
Mon May 21, 2018 5:00 am
How can I find out this Curl suuport in my host? Somewhwre in Cpanel?
Send them a support ticket.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by ocguru » Thu May 24, 2018 1:26 pm

Hi, please upload the attached file to your website root directory to check the curl and other requirements.

Attachments

Check minimum requirements


Regards,
OCGURU - http://www.buy-extensions.com/
Opencart Developer - All My Opencart Extensions
Contact Me - outputwebtech@gmail.com
Skype - ntiersolutions


User avatar
New member

Posts

Joined
Sat Jan 03, 2015 5:09 pm
Location - India

Post by tatt » Fri May 25, 2018 12:26 am

Hello!

Thanks for help and this chek file. I uploaded on server and run. There are no error – http://prntscr.com/jm4czo

Question is – what is wrong at this moment and how can I fix it? Last week there was no problems with any error.

Newbie

Posts

Joined
Thu May 24, 2012 3:12 pm

Post by sw!tch » Fri May 25, 2018 3:32 am

tatt wrote:
Fri May 25, 2018 12:26 am
Question is – what is wrong at this moment and how can I fix it? Last week there was no problems with any error.
I would start here - http://docs.opencart.com/en-gb/requirements/

As outlined in the docs.

""
Curl
ZIP
Zlib
GD Library
Mcrypt
Mbstrings
Xml

The above PHP extensions should be available by almost all hosting providers, during the install process it will check you have them all enabled. You should contact your hosting provider if one is missing. ""

So in short - Open a ticket with your web hosting company and verify that the Required PHP libraries / modules are available in PHP.

Further some web hosts will update PHP globally across a server, which is why it may have worked last week and not this week. You need to contact them to resolve the above. They may have not rebuilt PHP with the same modules.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by ocguru » Fri May 25, 2018 1:13 pm

tatt wrote:
Fri May 25, 2018 12:26 am
Hello!

Thanks for help and this chek file. I uploaded on server and run. There are no error – http://prntscr.com/jm4czo

Question is – what is wrong at this moment and how can I fix it? Last week there was no problems with any error.
There is problem with CURL. Check again its curl = (empty), if curl has installed it will show curl = 1.
Ask hosting to enable CURL on your server.

Thanks

Regards,
OCGURU - http://www.buy-extensions.com/
Opencart Developer - All My Opencart Extensions
Contact Me - outputwebtech@gmail.com
Skype - ntiersolutions


User avatar
New member

Posts

Joined
Sat Jan 03, 2015 5:09 pm
Location - India
Who is online

Users browsing this forum: No registered users and 103 guests