Page 1 of 1
[OC 2.0] How to solve issue when FTP support disabled
Posted: Thu Oct 02, 2014 2:26 pm
by iSenseLabs
Hi all, this is a mini free extension, which we decided to post here and not in the free contributions since its under OpenCart 2.0 thread.
The issue:
Could not connect as opencart.opencartdemo.com:21
If you get an error below saying "Could not connect as ......" while uploading your zipped extensions via the Extension Installer, you probably have the FTP support disabled from your hosting.
This tiny ocmod extension code fixes this.
http://www.opencart.com/index.php?route ... n_id=18892
This is a mod for the new OCMOD modification system in OpenCart 2.0. It allows you to install zipped extensions without the need for FTP support on your server.
How to apply this fix?
You need to download and unzip this mod first. Then, to install this mod go to your OpenCart admin panel > Extensions > Extension Installer. Click the Upload button and select the .xml file that you previously unzipped. You should get a green message saying: "Success: You have installed your extension!”. Now navigate to Extensions > Modifications and click on the Refresh button at the top right corner of the screen. This is it.
Re: [OC 2.0] How to solve issue when FTP support disabled
Posted: Thu Oct 02, 2014 3:30 pm
by rph
I think the second search should be a replace from the looks of the add operation.
It isn't explained anywhere but to get the feature working you need to set up an FTP connection for your store in System -> Settings -> Edit -> FTP. The settings that are in there now are presumably from testing which is why the extension installer always throws a fit.
Re: [OC 2.0] How to solve issue when FTP support disabled
Posted: Thu Oct 02, 2014 6:19 pm
by iSenseLabs
@rph The issue comes when the server (usually shared-hosting accounts) has the opening of FTP connections disabled.
Re: [OC 2.0] How to solve issue when FTP support disabled
Posted: Thu Oct 02, 2014 7:01 pm
by OSWorX
And this IS a issue if it is a local installation (e.g. xampp) and no FTP server is running.
Re: [OC 2.0] How to solve issue when FTP support disabled
Posted: Fri Oct 03, 2014 2:11 am
by rph
MStoychev wrote:@rph The issue comes when the server (usually shared-hosting accounts) has the opening of FTP connections disabled.
I probably should have read the thread title closer.
So I finally figured out why the mod was working with the fatal bug in it: the position attribute (replace, before, after) was moved from the <search> element in vQmod to the <add> element in OCMod. That's going to throw off a lot of developers used to vQmod. Not to mention all the fun repetition converting vQmod scripts.
I also just noticed that OCMods are loaded from the database. So if a mod hoses your admin good luck disabling it!

Edit: Looks like you can work around it by manually purging the /system/modification directory then going to Admin to disable the problem script and rebuild the mod cache. Talk about nuclear option.
Re: [OC 2.0] How to solve issue when FTP support disabled
Posted: Fri Oct 03, 2014 9:40 am
by MarketInSG
OCMod is still not ready for use, so is the installer feature

The manual upload using a FTP client and using vQmod is still the safer choice for everyone
Having those comments under your extensions asking if OC 2.0 is supported for the extension is pretty crazy. They expect devs to release updates for a version that didn't give us enough time to patch things up

Re: [OC 2.0] How to solve issue when FTP support disabled
Posted: Fri Mar 20, 2015 10:23 pm
by imartin_1983
This mod didn't work for me.

It cycled around with a warning that there is an ID thats the same as OC has. So I couldn't install it. I solved this issue simply, by going to my FTP client and Unlocking the FTP primary account (it should be an option if you have acces to the administration).
Anyway. Cheers.

Re: [OC 2.0] How to solve issue when FTP support disabled
Posted: Fri Mar 20, 2015 10:59 pm
by OSWorX
imartin_1983 wrote:This mod didn't work for me.

It cycled around with a warning that there is an ID thats the same as OC has. So I couldn't install it. I solved this issue simply, by going to my FTP client and Unlocking the FTP primary account (it should be an option if you have acces to the administration).
Anyway. Cheers.

If a warning about ' .. ID is already in use ..' (or similiar), the modification has in ID which is already used.
Simply open the xml-file and change the term inside
or (not sure which is correct)
extension installation error
Posted: Mon Feb 06, 2017 1:00 am
by arjunmpgupta
hi, i tried to install extension through extension installer but every time i am getting an error as 'Could not login as admin' please guide me on thisand my cart verison is 2.3.0.2
Re: extension installation error
Posted: Mon Feb 06, 2017 3:19 am
by cyclops12
arjunmpgupta wrote:hi, i tried to install extension through extension installer but every time i am getting an error as 'Could not login as admin' please guide me on thisand my cart verison is 2.3.0.2
Did you install the free extension from ......
https://www.opencart.com/index.php?rout ... n_id=18892