Post by iSenseLabs » Thu Oct 02, 2014 2:26 pm

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.
Last edited by iSenseLabs on Thu Oct 02, 2014 6:20 pm, edited 1 time in total.

Premium OpenCart Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Sat May 19, 2012 7:41 pm

Post by rph » Thu Oct 02, 2014 3:30 pm

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.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by iSenseLabs » Thu Oct 02, 2014 6:19 pm

@rph The issue comes when the server (usually shared-hosting accounts) has the opening of FTP connections disabled.

Premium OpenCart Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Sat May 19, 2012 7:41 pm

Post by OSWorX » Thu Oct 02, 2014 7:01 pm

And this IS a issue if it is a local installation (e.g. xampp) and no FTP server is running.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by rph » Fri Oct 03, 2014 2:11 am

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! :bang: 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.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by MarketInSG » Fri Oct 03, 2014 9:40 am

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 :crazy:


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by imartin_1983 » Fri Mar 20, 2015 10:23 pm

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. :)

Newbie

Posts

Joined
Sun Mar 01, 2015 11:50 pm

Post by OSWorX » Fri Mar 20, 2015 10:59 pm

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

Code: Select all

<id>..</id>
or (not sure which is correct)

Code: Select all

<code>..</code>

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by arjunmpgupta » Mon Feb 06, 2017 1:00 am

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

Newbie

Posts

Joined
Mon Feb 06, 2017 12:54 am

Post by cyclops12 » Mon Feb 06, 2017 3:19 am

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

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am
Who is online

Users browsing this forum: No registered users and 7 guests