Nithya
Nithya

Reputation: 52

Bug on installing plugin in opencart extension installer

On installing rest API in extension installer, got the warning as enable FTP.After enabling the FTP with necessary information, getting warning as

SyntaxError:Unexpected token < in JSON at position 0    
Ok    
<b>Warning</>:ftp_chdir();Failed to change directory. in <b>/var/www/html/admin/controller/extension/installer.php</b> on line<b>298</b>{"error":"Could not set root directory as"}

I have added FTP root as public_html/ and I have transferred the opencart upload folder to /var/www/html. Is FTP root is incorrect?

Upvotes: 0

Views: 462

Answers (1)

Paul Feakins
Paul Feakins

Reputation: 727

Well if your root folder is called just "html" why have you set it to "public_html"?

The FTP root is what appears in "Remote site:" when you log in with those FTP details in Filezilla for example:

enter image description here

So in your case, it may be "/html/" and notice that you should add the trailing slash (/).

Upvotes: 1

Related Questions