Post by JustinRH » Fri Jul 24, 2015 4:23 am

I have been testing out OpenCart on a locally hosted XAMPP server, and recently decided to move it over to the actual host with a subdomain to do some live testing & get my coworkers used to the interface, but I am running into a slight problem that I can't seem to figure out...

Whenever I install an extension, I get this error:

Code: Select all

SyntaxError: Unexpected token <OK<b>Warning</b>: ftp_nlist() [<a href='function.ftp-nlist'>function.ftp-nlist</a>]: bind() failed: Permission denied (13) in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>328</b><b>Warning</b>: Invalid argument supplied for foreach() in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>333</b><b>Warning</b>: ftp_mkdir() [<a href='function.ftp-mkdir'>function.ftp-mkdir</a>]: admin: File exists in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>338</b><b>Warning</b>: ftp_nlist() [<a href='function.ftp-nlist'>function.ftp-nlist</a>]: bind() failed: Permission denied (13) in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>328</b><b>Warning</b>: Invalid argument supplied for foreach() in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>333</b><b>Warning</b>: ftp_mkdir() [<a href='function.ftp-mkdir'>function.ftp-mkdir</a>]: system: File exists in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>338</b><b>Warning</b>: ftp_nlist() [<a href='function.ftp-nlist'>function.ftp-nlist</a>]: bind() failed: Permission denied (13) in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin...ion.ftp-nlist</a>]: bind() failed: Permission denied (13) in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>328</b><b>Warning</b>: Invalid argument supplied for foreach() in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>333</b><b>Warning</b>: ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: bind() failed: Permission denied (13) in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>345</b><b>Warning</b>: ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: Type set to I in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>345</b><b>Warning</b>: ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: bind() failed: Permission denied (13) in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>345</b><b>Warning</b>: ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: Type set to I in <b>/hermes/bosweb25b/b806/ipw.rubberhe/public_html/oc/admin/controller/extension/installer.php</b> on line <b>345</b>{"error":"Could not upload file \/hermes\/bosweb25b\/b806\/ipw.rubberhe\/public_html\/oc\/system\/upload\/temp-d04ac449b4256d966eb42b44f0e267ee\/upload\/system\/PHPExcel\/Classes\/PHPExcel\/Shared\/Escher\/DggContainer\/BstoreContainer\/BSE\/Blip.php"}
Any idea what could be going wrong? The extension I am trying to install is the export/import tool.

Newbie

Posts

Joined
Fri Jun 19, 2015 3:35 am

Post by keeleon » Thu Jan 07, 2016 7:27 am

Did you get this solved? I am having the same exact problem, with the same extension.

Newbie

Posts

Joined
Thu Jan 07, 2016 7:26 am

Post by smokepk » Tue Dec 06, 2016 8:57 pm

I am facing similar problem, my site is hosted on "ipage.com", I make backoffice seprate FTP address:
/mainstore = mydomain.com
/backoffice = back.mydomain.com

when I try to upload Export_Import_Bulk extension bar goes to half with status:"Copying Files..." after that javascript alert/error comes up with following message:

SyntaxError: Unexpected token < in JSON at position 0
OK
Warning: ftp_nlist(): bind() failed: Permission denied (13) in /ipg.mydomain/backoffice/controller/extension/installer.php on line 328
Warning: Invalid argument supplied for foreach() in /ipg.mydomain/backoffice/controller/extension/installer.php on line 333
Warning: ftp_mkdir(): backoffice: File exists in /ipg.mydomain/backoffice/controller/extension/installer.php on line 338
Warning: ftp_nlist(): bind() failed: Permission denied (13) in /ipg.mydomain/backoffice/controller/extension/installer.php on line 328
Warning: Invalid argument supplied for foreach() in /ipg.mydomain/backoffice/controller/extension/installer.php on line 333
Warning: ftp_nlist(): bind() failed: Permission denied (13) in /ipg.mydomain/backoffice/controller/extension/installer.php on line 333
Warning: ftp_put(): bind() failed: Permission denied (13) in /ipg.mydomain/backoffice/controller/extension/installer.php on line 345
Warning: ftp_put(): Type set to I in /ipg.mydomain/backoffice/controller/extension/installer.php on line 345
Warning: ftp_put(): bind() failed: Permission denied (13) in /ipg.mydomain/backoffice/controller/extension/installer.php on line 345
Warning: ftp_put(): Type set to I in /hermes/bosnaweb26a/b1880/ipg.mydomain/backoffice/controller/extension/installer.php on line 345
{"error":"Could not upload file \/ipg.mydomain\/mydomain.com\/system\/upload\/temp-ecbf8cd8322053de487758baf4f70b4e\/upload\/system\/PHPExcel\/Classes\/PHPExcel\/Shared\/Escher\/DggContainer\/BstoreContainer\/BSE\/Blip.php"}


I also tried to provide permissions to backoffice and mydomain.com but ipage hosting doesn't allow 777 permission, starts giving 500 server error right after it.

Any solution, really appreciate!

Newbie

Posts

Joined
Wed Nov 24, 2010 7:53 am

Post by opencartmart » Thu Dec 08, 2016 4:07 pm

I often get a very common issue related with firewall configuration which causes ftp_nlists returning wrong result.
You can try inserting following code in the file admin/controller/extension/installer.php

Code: Select all

ftp_pasv($connection, true);
Above line of code should be inserted after following line

Code: Select all

$login = ftp_login($connection, $this->config->get('config_ftp_username'), $this->config->get('config_ftp_password'));

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am
Who is online

Users browsing this forum: No registered users and 6 guests