clean install Curl issue on WAMP
I have tried to run zc 1.5.6 on a clean install new databases and an WAMP server with PHP 7.2.13 and 7.3
Cannot get front end to load on version 7.3 and cannot get admin to load either
php 7.2.13 I get the front end loaded, but only get login to show on admin.
Looking at the logs I get this error:
PHP Fatal error: Uncaught Error: Call to undefined function curl_init() ....in "admin"\includes\classes\VersionServer.php
this is a local WAMP Curl is on and if I run the extras/curltester/php
Fatal error: Uncaught Error: Call to undefined function curl_init() in .....\extras\curltester.php on line 21
( ! ) Error: Call to undefined function curl_init() in ...\extras\curltester.php on line 21
searching the php code for the whole of the zencart site I do not see a definition for the function curl_init(). If this is designed to call the curl.dll file on the server (in php directory) then I don't know why it is not as the server show that it is running.
Any clues please. Have I missed something obvious.
Re: zc1.5.6 clean install Curl issue
You may need to contact your hoster to have them enable cURL (or perhaps move to another hoster). You'll see in Admin->Version whether it's turned on for your hoster (it sounds like it isn't).
Re: zc1.5.6 clean install Curl issue
He is the host, it is a local installation wampp :cool:
Quote:
Originally Posted by
swguy
You may need to contact your hoster to have them enable cURL (or perhaps move to another hoster). You'll see in Admin->Version whether it's turned on for your hoster (it sounds like it isn't).
Re: clean install Curl issue on WAMP
Okay it is some thing with teh server as I have just gone back to PHP version 7.0.4 and I can now get logged in.
Any clues for how to fix WAMP for php version 7.3 much appreciated.
Re: zc1.5.6 clean install Curl issue
Quote:
Originally Posted by
Design75
He is the host, it is a local installation wampp :cool:
Even though this was in the subject and the body, I somehow missed it. :( LOL.
Re: clean install Curl issue on WAMP
curl_init is a function that PHP provides. But it only provides it if CURL is installed/compiled-into PHP. (Separately for each PHP version you have installed.)
You will need to make sure your WAMP config has CURL enabled in PHP. I'd offer instructions but I don't use WAMP.
Re: clean install Curl issue on WAMP
Just as an aside - the check for new version shows an error: get a bunch of curly brackets and logs give:
PHP Warning: Illegal string offset 'versionMajor' in ....admin\includes\classes\VersionServer.php
and also:
PHP Warning: Illegal string offset 'versionDownloadURI' in ...."admin"\includes\header.php on line 122
Re: clean install Curl issue on WAMP
Quote:
Originally Posted by
MikeyG
Just as an aside - the check for new version shows an error: get a bunch of curly brackets and logs give:
PHP Warning: Illegal string offset 'versionMajor' in ....admin\includes\classes\VersionServer.php
and also:
PHP Warning: Illegal string offset 'versionDownloadURI' in ...."admin"\includes\header.php on line 122
Ya, those are because your CURL problem is causing empty results from the version-check that's being attempted.
Those will go away once your curl issue is fixed.
Re: clean install Curl issue on WAMP
DrByte,
Thank you for reply, I have checked the php extensions and the curl does have a tick next to it in all version when looking at the wampmanager menu from the icon on the start bar.
I have also looked in the php ini and they also have the line uncommented so it appears to be installed. the only difference between the version is the php_curl.dll and curl.dll names for the extension when you go and look for the files in the wamp install directories but the documents say that this has been taken care of in the apache server. So I am continuing to search the web for answers.
Any further ideas of course most appreciated.
Re: clean install Curl issue on WAMP
FYI - a simpler way to test CURL, without loading the core of Zen Cart is to point your browser URL to your /extras/paypal_tlstest.php or /extras/curltester.php file.